/* styles.css */
:root {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --primary-color: #6c5ce7;
    --hover-color: #8576f1;
    --card-bg: #2d2d2d;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), #a66efa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.link-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    background: var(--primary-color);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transition: 0.5s;
}

.link-card:hover::before {
    left: 100%;
}

.link-card span {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color);
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

#theme-toggle:hover {
    transform: rotate(180deg);
}

/* Modo claro */
body.light-mode {
    --bg-color: #f8f9fa;
    --text-color: #2d3436;
    --card-bg: #ffffff;
    --primary-color: #6c5ce7;
    --hover-color: #8576f1;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .link-card {
        padding: 1rem;
    }
}