/* Fontes carregadas via HTML para melhor performance */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --card-background: #ffffff;
    --hover-color: #3b82f6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #e2e8f0;
    --sub-hover-bg: #f1f5f9;
}

/* Dark mode colors */
body.dark-mode {
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --background-color: #0f172a;
    --text-color: #e2e8f0;
    --card-background: #1e293b;
    --hover-color: #60a5fa;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: #334155;
    --sub-hover-bg: #334155;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 4px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    width: 100%;
}

.logo-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

#icon {
    height: 2rem;
    width: auto;
}

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

.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-description {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.guide-item {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

.guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.guide-item a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guide-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.guide-item span {
    font-weight: 500;
}

.expandable {
    position: relative;
}

.main-topic {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.toggle-button:hover {
    color: var(--hover-color);
}

.expandable.active .toggle-button i {
    transform: rotate(180deg);
}

.sub-topics {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.expandable.active .sub-topics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sub-topics a {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.sub-topics a:hover {
    background-color: var(--sub-hover-bg);
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .logo h1 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .guide-item {
        padding: 1rem;
    }
}
