/* Estilos para site de historinhas infantis */

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #FEC260;
    --success-color: #4ECDC4;
    --info-color: #95E1D3;
    --light-bg: #FFF8F3;
    --dark-text: #2C3E50;
    --purple: #9B59B6;
    --blue: #3498DB;
    --green: #2ECC71;
    --orange: #E67E22;
}

body {
    font-family: 'Segoe UI', 'Comic Sans MS', 'Roboto', 'Arial', sans-serif;
    background: linear-gradient(135deg, #FFF8F3 0%, #FFE8F0 100%);
    background-attachment: fixed;
    color: var(--dark-text);
    min-height: 100vh;
    position: relative;
}

/* Elementos decorativos de fundo */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

body::before {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

body::after {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -80px;
    left: -80px;
    animation: float 15s ease-in-out infinite reverse;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #C44569 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 8px 16px !important;
    margin: 0 4px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    background: white;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(254, 194, 96, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.card-body {
    position: relative;
    z-index: 1;
}

/* Card com gradiente de fundo quando não há imagem */
.card .bg-gradient {
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(135deg, #FF6B9D 0%, #FEC260 100%); }
    25% { background: linear-gradient(135deg, #4ECDC4 0%, #95E1D3 100%); }
    50% { background: linear-gradient(135deg, #9B59B6 0%, #E74C3C 100%); }
    75% { background: linear-gradient(135deg, #3498DB 0%, #2ECC71 100%); }
}

/* Botões */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #C44569 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-outline-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-outline-secondary:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-secondary:hover::before {
    left: 0;
}

/* Botões com ícones animados */
.btn i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Títulos — cor escurecida (#B5174E) para contraste mínimo 4.5:1 no fundo branco */
h1, h2, h3 {
    color: #B5174E;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

/* Conteúdo do historia */
.conteudo {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #34495E;
    overflow-wrap: break-word;
    word-break: break-word;
}

.conteudo p {
    margin-bottom: 1.5rem;
}

.conteudo img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #F5F7FA 0%, #E8EBF0 100%);
    border-top: 4px solid var(--secondary-color);
    margin-top: 60px;
}

/* Tags */
.badge {
    font-size: 0.9rem;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    margin: 8px;
    display: inline-block;
}

.badge-tag {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.badge-tag:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.5);
    text-decoration: none;
    color: white;
}

/* Animações */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Formulário de busca */
#formulario-busca-container {
    background: linear-gradient(135deg, #FFD4E5 0%, #FFF1C9 100%);
    border-top: 2px solid rgba(255, 107, 157, 0.25);
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 8px 18px rgba(44, 62, 80, 0.12);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#formulario-busca-container .form-control {
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 157, 0.4);
    background-color: rgba(255, 255, 255, 0.96);
    color: #2C3E50;
    transition: all 0.3s ease;
}

#formulario-busca-container .form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.2);
    color: #2C3E50;
}

#formulario-busca-container .form-control::placeholder {
    color: rgba(44, 62, 80, 0.65);
}

#formulario-busca-container .btn-light {
    border: 1px solid rgba(255, 107, 157, 0.35);
    border-radius: 4px;
    color: #2C3E50;
    transition: all 0.3s ease;
}

#formulario-busca-container .btn-light:hover {
    background-color: #ffe8f0;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.25);
}

#formulario-busca-container .btn-outline-light {
    border: 1px solid rgba(44, 62, 80, 0.3);
    color: #2C3E50;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#formulario-busca-container .btn-outline-light:hover {
    background-color: rgba(44, 62, 80, 0.08);
    border-color: rgba(44, 62, 80, 0.5);
}

.btn-busca {
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-busca:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Tema escuro - Ajustes para o formulário de busca */
[data-tema="escuro"] #formulario-busca-container {
    background: linear-gradient(135deg, #1b2430 0%, #2a2f45 100%) !important;
    border-top-color: rgba(255, 255, 255, 0.14) !important;
}

[data-tema="escuro"] #formulario-busca-container .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e8e8e8;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-tema="escuro"] #formulario-busca-container .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #e8e8e8;
}

[data-tema="escuro"] #formulario-busca-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

[data-tema="escuro"] #formulario-busca-container .btn-light {
    background-color: rgba(255, 255, 255, 0.12);
    color: #f2f3f5;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-tema="escuro"] #formulario-busca-container .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

[data-tema="escuro"] #formulario-busca-container .btn-outline-light {
    color: #f2f3f5;
    border-color: rgba(255, 255, 255, 0.3);
}

[data-tema="escuro"] #formulario-busca-container .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
}


.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Breadcrumbs */
.breadcrumb {
    background: white;
    border-radius: 20px;
    padding: 15px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.breadcrumb-item {
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.3rem;
    color: var(--primary-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #C44569;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--dark-text);
}

/* Responsividade */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .card-img-top {
        height: 150px;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }
}

/* Lista de categorias/tags */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-item {
    background: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(254, 194, 96, 0.15) 100%);
    border-radius: 30px;
    padding: 50px 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--success-color), var(--info-color));
    border-radius: 30px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

@keyframes textShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.hero-section p {
    font-size: 1.3rem;
    color: #5A6C7D;
    font-weight: 500;
}

.hero-section i {
    font-size: 3.5rem;
    animation: float 3s ease-in-out infinite;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    position: sticky;
    top: 90px;
}

.sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    color: #B5174E;
}

.sidebar-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-text);
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
}

.sidebar-item:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #C44569 100%);
    color: white;
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.sidebar-item i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.sidebar-item .count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Container geral do formulário */
#formEmail {
    max-width: 600px;
    margin: 60px auto; /* centraliza horizontalmente */
    padding: 30px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fafafa;
}

/* Cada linha do formulário (simula linha de tabela) */
#formEmail p {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

/* Labels */
#formEmail label {
    text-align: right;
    font-weight: 600;
    color: #333;
}

/* Campos de input, textarea, select */
#formEmail input[type="text"],
#formEmail input[type="email"],
#formEmail input[type="password"],
#formEmail textarea,
#formEmail select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Botões de compartilhamento */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.share-btn {
    border: 0;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.share-x {
    background: #111827;
}

.share-whatsapp {
    background: #25D366;
}

.share-email {
    background: #2563EB;
}

.share-print {
    background: #6B7280;
}

[data-tema="escuro"] .share-x {
    background: #0b0f19;
}

[data-tema="escuro"] .share-email {
    background: #1D4ED8;
}

[data-tema="escuro"] .share-print {
    background: #4B5563;
}

@media print {
    @page {
        margin: 8mm;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    main.container,
    .container,
    article,
    .conteudo {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .conteudo p,
    .conteudo li {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .no-print {
        display: none !important;
    }
}

/* Textarea mais confortável */
#formEmail textarea {
    min-height: 120px;
    resize: vertical;
}

/* Help text */
#formEmail .small {
    grid-column: 2;
    margin-top: -8px;
}

/* Mensagens de erro */
#formEmail .errorlist {
    grid-column: 2;
    color: #c00;
    font-size: 13px;
}

/* Botão centralizado */
#formEmail input[type="submit"] {
    grid-column: 1 / 3;
    padding: 10px 30px;
    font-size: 15px;
    cursor: pointer;
}

/* Alerts (messages framework) */
[class^="alert-"] {
    max-width: 600px;
    margin: 20px auto;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

.alert-error {
    background: #ffecec;
    color: #900;
    border: 1px solid #f5c2c2;
}

.alert-success {
    background: #e7f7e7;
    color: #0a5;
    border: 1px solid #bde5bd;
}

/* Responsivo (mobile) */
@media (max-width: 640px) {
    #formEmail p {
        grid-template-columns: 1fr;
    }

    #formEmail label {
        text-align: left;
    }

    #formEmail input[type="submit"] {
        grid-column: 1;
    }
}

section {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.hero-section .title-page {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite;
}

.hero-section h1 {
    font-size: 1.3rem;
    line-height: 1.3;
    color: #5A6C7D;
    font-weight: 500;
    -webkit-text-fill-color: unset;
    background: none;
}

/* ========================================
   Botão de alternância de tema (claro/escuro)
   ======================================== */
.botao-tema {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
    padding: 0;
    margin-left: 12px;
}

.botao-tema:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(20deg) scale(1.1);
}

.botao-tema .icone-sol { display: none; }
.botao-tema .icone-lua { display: inline; }

/* Texto do tema: oculto no desktop, visível no mobile */
.botao-tema .texto-tema {
    display: none;
}

/* Mobile: botão de tema como item de menu */
@media (max-width: 991.98px) {
    .botao-tema {
        background: transparent;
        border: none;
        border-radius: 20px;
        width: auto;
        height: auto;
        padding: 8px 16px !important;
        margin: 0 4px;
        font-weight: 600;
        font-size: 1rem;
        justify-content: flex-start;
        gap: 8px;
    }

    .botao-tema:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: none;
    }

    .botao-tema .texto-tema {
        display: inline;
        font-size: 1rem;
    }
}

/* ========================================
   Tema Escuro
   ======================================== */
[data-tema="escuro"] body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #d4d4d4;
}

[data-tema="escuro"] body::before {
    background: #4a3f6b;
    opacity: 0.08;
}

[data-tema="escuro"] body::after {
    background: #3a506b;
    opacity: 0.08;
}

/* Header no tema escuro */
[data-tema="escuro"] header {
    background: linear-gradient(135deg, #2d1b3d 0%, #1a1a2e 100%);
}

/* Cards */
[data-tema="escuro"] .card {
    background: #2a2a3e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

[data-tema="escuro"] .card::before {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05) 0%, rgba(254, 194, 96, 0.05) 100%);
}

[data-tema="escuro"] .card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

[data-tema="escuro"] .card-title {
    color: #FF8BB5;
}

[data-tema="escuro"] .card-text {
    color: #b0b0b0 !important;
}

/* Conteúdo da história */
[data-tema="escuro"] .conteudo {
    color: #c8c8d0;
    background: #2a2a3e !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-tema="escuro"] .conteudo.bg-white {
    background: #2a2a3e !important;
}

/* Títulos */
[data-tema="escuro"] h1,
[data-tema="escuro"] h2,
[data-tema="escuro"] h3 {
    color: #FF8BB5;
}

/* Hero section */
[data-tema="escuro"] .hero-section {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(254, 194, 96, 0.08) 100%);
}

[data-tema="escuro"] .hero-section::before {
    opacity: 0.15;
}

[data-tema="escuro"] .hero-section p,
[data-tema="escuro"] .hero-section h1 {
    color: #b0b8c4;
}

[data-tema="escuro"] .hero-section .title-page {
    background: linear-gradient(135deg, #FF8BB5 0%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Footer */
[data-tema="escuro"] footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top-color: #4a3f6b;
}

[data-tema="escuro"] footer a,
[data-tema="escuro"] footer .text-dark {
    color: #b0b8c4 !important;
}

/* Breadcrumb */
[data-tema="escuro"] .breadcrumb {
    background: #2a2a3e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-tema="escuro"] .breadcrumb-item.active {
    color: #d4d4d4;
}

/* Sidebar */
[data-tema="escuro"] .sidebar {
    background: #2a2a3e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

[data-tema="escuro"] .sidebar-item {
    background: linear-gradient(135deg, #353550 0%, #2e2e45 100%);
    color: #d4d4d4;
}

[data-tema="escuro"] .sidebar-item:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #C44569 100%);
    color: white;
}

/* Sections */
[data-tema="escuro"] section {
    background: #2a2a3e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Category items */
[data-tema="escuro"] .category-item {
    background: #2a2a3e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Textos auxiliares */
[data-tema="escuro"] .text-muted {
    color: #9a9ab0 !important;
}

[data-tema="escuro"] .text-dark {
    color: #d4d4d4 !important;
}

/* Links */
[data-tema="escuro"] a {
    color: #FF8BB5;
}

[data-tema="escuro"] a:hover {
    color: #ffaed0;
}

[data-tema="escuro"] .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

[data-tema="escuro"] .nav-link:hover {
    color: white;
}

/* Botões */
[data-tema="escuro"] .btn-outline-secondary {
    border-color: #FF8BB5;
    color: #FF8BB5;
}

[data-tema="escuro"] .btn-outline-secondary:hover {
    color: white;
}

/* Botão primário (Ler) */
[data-tema="escuro"] .btn-primary {
    background: linear-gradient(135deg, #c44569 0%, #8e2044 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-tema="escuro"] .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
}

/* Badges / Tags */
[data-tema="escuro"] .badge-tag {
    background: linear-gradient(135deg, #c44569 0%, #e6a030 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-tema="escuro"] .badge-tag:hover {
    color: #fff;
}

/* Formulários */
[data-tema="escuro"] #formEmail {
    background-color: #2a2a3e;
    border-color: #3a3a50;
}

[data-tema="escuro"] #formEmail label {
    color: #d4d4d4;
}

[data-tema="escuro"] #formEmail input[type="text"],
[data-tema="escuro"] #formEmail input[type="email"],
[data-tema="escuro"] #formEmail input[type="password"],
[data-tema="escuro"] #formEmail textarea,
[data-tema="escuro"] #formEmail select {
    background: #353550;
    border-color: #4a4a60;
    color: #d4d4d4;
}

/* Alertas */
[data-tema="escuro"] .alert {
    background: #2d2a1e;
    border-color: #4a4530;
    color: #d4c88a;
}

[data-tema="escuro"] .alert-warning {
    background: #2d2a1e;
    border-color: #4a4530;
    color: #d4c88a;
}

/* Imagens com bordas suaves no modo escuro */
[data-tema="escuro"] .img-fluid {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Ícone do botão de tema no modo escuro */
[data-tema="escuro"] .botao-tema .icone-sol { display: inline; }
[data-tema="escuro"] .botao-tema .icone-lua { display: none; }

[data-tema="escuro"] .botao-tema {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Scrollbar no tema escuro */
[data-tema="escuro"] ::-webkit-scrollbar {
    width: 10px;
}

[data-tema="escuro"] ::-webkit-scrollbar-track {
    background: #1a1a2e;
}

[data-tema="escuro"] ::-webkit-scrollbar-thumb {
    background: #4a4a60;
    border-radius: 5px;
}

[data-tema="escuro"] ::-webkit-scrollbar-thumb:hover {
    background: #5a5a70;
}

/* Transição suave ao mudar de tema */
html {
    transition: background-color 0.4s ease;
}

body,
.card,
.conteudo,
footer,
.breadcrumb,
.sidebar,
section,
.category-item,
.hero-section,
#formEmail,
.alert {
    transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* ===========================
   FAQ - Perguntas e Respostas
   =========================== */
.faq-section {
    background: var(--bg-white, #fff);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    padding: 2rem 2.5rem;
}

.faq-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--heading-color, inherit);
}

.faq-item {
    border-bottom: 1px solid var(--border-color, #e9ecef);
    padding: 1rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-pergunta {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--heading-color, inherit);
}

.faq-resposta {
    margin: 0;
    font-size: .97rem;
    line-height: 1.6;
    color: var(--text-muted, #6c757d);
}
