/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light mode (default) */
    --bg-primary: #FAFAFA;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --border-color: #E5E5E5;
    --accent-color: #2563EB;
    --accent-hover: #1D4ED8;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode */
        --bg-primary: #0E0E13;
        --bg-card: #1A1A1F;
        --text-primary: #F5F5F5;
        --text-secondary: #A0A0A0;
        --border-color: #2A2A30;
        --accent-color: #3B82F6;
        --accent-hover: #60A5FA;
        --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-card-hover: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.hero-credit {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.hero-credit a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.hero-credit a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Sponsor Placeholder */
.sponsor-placeholder {
    margin: 2rem 0 3rem;
}

.sponsor-box {
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background-color: var(--bg-card);
}

.sponsor-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Directories Section */
.directories-section {
    margin: 3rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.directories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.directory-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.directory-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent-color);
}

.directory-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.directory-name:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.directory-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.footer-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-text a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .directories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .directories-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .directory-card {
        padding: 1.25rem;
    }
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--bg-primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1rem;
    }
}