/* ============================================
   HOME.CSS - Classes customizadas da Home e globais
   Consciência Monetária - Projeto 11ty
   Migrado do CSS inline do index.html original
   ============================================ */

/* ===== Botão "Ver todos os artigos no Blog" ===== */
        .recent-article-pillars-section .bg-accent {
            background-color: #0b7a56 !important;
        }

        .recent-article-pillars-section .bg-accent:hover {
            background-color: #096545 !important;
        }

/* ===== Botão "Ver todos os livros na Estante" (se descomentado) ===== */
        .books-carousel-section .bg-accent {
            background-color: #0b7a56 !important;
        }

        .books-carousel-section .bg-accent:hover {
            background-color: #096545 !important;
        }

/* ===== Botão do Quiz ===== */
        .quiz-hero-card .bg-accent {
            background-color: #0b7a56 !important;
        }

        .quiz-hero-card .bg-accent:hover {
            background-color: #096545 !important;
        }

/* ===== Flip Cards - fundo ===== */
        .flip-back {
            background: #0b7a56 !important;
            color: #ffffff !important;
        }

/* ===== Books Carousel ===== */
        .books-carousel-section {
            background: #0c1814;
            overflow: visible;
            padding-bottom: 2rem;
        }

        .books-swiper {
            min-height: 480px; /* reserva de espaço (CLS fix): mesma altura do .book-card, vale para quando esta seção for reativada */
        }

        .ebook-swiper {
            min-height: 480px; /* reserva de espaço (CLS fix): equivalente ao carrossel de e-books referenciado em main.js (initEbookCarousel) */
        }

        .book-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 1.5rem;
            padding: 1.75rem 1.5rem;
            transition: all 0.4s ease;
            backdrop-filter: blur(4px);
            height: 100%;
            display: flex;
            flex-direction: column;
            min-height: 480px;
            position: relative;
        }

        .swiper-slide {
            height: auto;
        }

        .book-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: white;
            text-align: center;
            margin-bottom: 0.75rem;
            line-height: 1.4;
            min-height: 3rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .book-editorial {
            text-align: center;
            font-size: 0.8rem;
            color: #34d399;
            font-style: italic;
            margin-bottom: 1rem;
            line-height: 1.5;
            font-weight: 400;
            min-height: 2.5rem;
        }

        .book-image-wrapper {
            display: flex;
            justify-content: center;
            margin-bottom: 1.25rem;
            min-height: 180px;
            align-items: center;
        }

        .book-image {
            width: 140px;
            height: auto;
            max-height: 180px;
            border-radius: 0.75rem;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease;
            object-fit: contain;
        }

        .book-card:hover .book-image {
            transform: scale(1.02);
        }

        .book-description {
            text-align: center;
            font-size: 0.8rem;
            color: #9ca3af;
            margin-bottom: 1.25rem;
            line-height: 1.5;
            flex: 1;
        }

        .book-button {
            display: inline-block;
            width: 100%;
            text-align: center;
            background: rgba(11, 122, 86, 0.15);
            border: 1px solid rgba(11, 122, 86, 0.4);
            color: #34d399;
            font-weight: 600;
            font-size: 0.8rem;
            padding: 0.7rem 1rem;
            border-radius: 2rem;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: auto;
            cursor: pointer;
            text-decoration: none;
        }

        .book-button:hover {
            background: #0b7a56;
            color: white;
            border-color: #0b7a56;
        }

        .books-swiper-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: rgba(11, 122, 86, 0.15);
            border: 1px solid rgba(11, 122, 86, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .books-swiper-nav:hover {
            background: #0b7a56;
            border-color: #0b7a56;
        }

        .books-swiper-nav:hover svg {
            stroke: #0c1814;
        }

        .books-swiper-prev {
            left: -20px;
        }

        .books-swiper-next {
            right: -20px;
        }

        .books-swiper .swiper-pagination.books-pagination {
            position: relative !important;
            bottom: auto !important;
            margin-top: 1.5rem;
            display: flex !important;
            justify-content: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .books-swiper .swiper-pagination.books-pagination .swiper-pagination-bullet {
            position: static !important;
            display: inline-block;
            margin: 0 4px !important;
            width: 10px;
            height: 10px;
        }

        .swiper-pagination-bullet {
            background: rgba(11, 122, 86, 0.5);
            opacity: 1;
        }

        .swiper-pagination-bullet-active {
            background: #0b7a56;
        }

        @media (max-width: 768px) {
            .books-swiper-prev {
                left: -10px;
            }
            .books-swiper-next {
                right: -10px;
            }
            .books-swiper-nav {
                width: 32px;
                height: 32px;
            }
            .book-card {
                padding: 1.25rem;
                min-height: 440px;
            }
            .book-image {
                width: 100px;
                max-height: 140px;
            }
        }

/* ===== Flip Cards ===== */
        .flip-card {
            background-color: transparent;
            perspective: 1000px;
            cursor: pointer;
        }

        .flip-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            transition: transform 0.6s;
            transform-style: preserve-3d;
        }

        .flip-card:hover .flip-inner {
            transform: rotateY(180deg);
        }

        .flip-front,
        .flip-back {
            position: relative;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            border-radius: 1rem;
        }

        .flip-back {
            position: absolute;
            top: 0;
            left: 0;
            transform: rotateY(180deg);
            background: #0b7a56 !important;
            color: #ffffff !important;
        }

/* ===== Recent Article & Pillars ===== */
        .recent-article-pillars-section {
            background: #1f2937;
            padding: 4rem 1.5rem;
        }

        .recent-article-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 1.5rem;
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
            min-height: 460px; /* reserva de espaço (CLS fix): cobre imagem 220px + bloco de texto antes do JS injetar o artigo */
        }

        .recent-article-card:hover {
            border-color: rgba(11, 122, 86, 0.3);
            transform: translateY(-4px);
        }

        .recent-article-image {
            width: 100%;
            height: 220px;
            object-fit: cover;
        }

        .recent-article-content {
            padding: 1.5rem;
        }

        .recent-article-meta {
            font-size: 0.7rem;
            color: #34d399;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.75rem;
        }

        .recent-article-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: white;
            margin-bottom: 0.75rem;
            line-height: 1.3;
        }

        .recent-article-excerpt {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            line-height: 1.5;
            margin-bottom: 1.25rem;
        }

        .recent-article-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: #34d399;
            font-weight: 500;
            text-decoration: none;
            transition: gap 0.2s ease;
        }

        .recent-article-link:hover {
            gap: 0.75rem;
            color: #10b981;
        }

/* ===== Pillars Grid ===== */
        .pillars-grid-2x2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            grid-auto-rows: 1fr;
            min-height: 364px; /* reserva de espaço (CLS fix): 2 linhas de pillar-card-small (170px) + gap, antes do JS injetar os pilares */
        }

        .pillar-card-small {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 1rem;
            padding: 1.5rem 1.25rem;
            text-align: center;
            transition: all 0.3s ease;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            height: 100%;
            min-height: 170px;
            justify-content: flex-start;
        }

        .pillar-card-small:hover {
            border-color: rgba(11, 122, 86, 0.3);
            background: rgba(255, 255, 255, 0.05);
            transform: translateY(-3px);
        }

        .pillar-icon-small {
            width: 48px;
            height: 48px;
            background: rgba(11, 122, 86, 0.15);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.75rem auto;
            flex-shrink: 0;
        }

        .pillar-icon-small i {
            font-size: 1.5rem;
            color: #34d399;
        }

        .pillar-title-small {
            font-size: 0.9rem;
            font-weight: 600;
            color: white;
            margin-bottom: 0.25rem;
        }

        .pillar-desc-small {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.4;
        }

        @media (max-width: 768px) {
            .pillars-grid-2x2 {
                grid-template-columns: 1fr;
                gap: 0.75rem;
                grid-auto-rows: auto;
                min-height: 716px; /* reserva de espaço (CLS fix): 4 cards empilhados (170px) + gaps, em coluna única */
            }
            .pillar-card-small {
                min-height: auto;
            }
        }

/* ===== Quiz Hero Card ===== */
        .quiz-hero-card {
            background: linear-gradient(160deg, #0d2b1f 0%, #0a1a14 100%);
            border: 2px solid rgba(11, 122, 86, 0.3);
            border-radius: 2rem;
            padding: 3rem 2rem;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .quiz-hero-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 30% 40%, rgba(11, 122, 86, 0.05) 0%, transparent 60%);
            pointer-events: none;
        }

        .quiz-hero-card:hover {
            border-color: rgba(11, 122, 86, 0.6);
            box-shadow: 0 0 60px rgba(11, 122, 86, 0.1);
        }

        @media (max-width: 768px) {
            .quiz-hero-card {
                padding: 2rem 1.25rem;
            }
        }

/* ===== Hope Section ===== */
        .hope-section {
            background: #0e1f18;
            padding: 3.5rem 1.5rem;
            text-align: center;
        }

        .hope-text {
            font-size: 1.5rem;
            color: #d1d9d5;
            max-width: 650px;
            margin: 0 auto;
            line-height: 1.5;
            font-weight: 400;
        }

        .hope-text strong {
            color: #34d399;
            font-weight: 600;
        }

/* ===== Discovery Cards ===== */
        .discovery-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 1.25rem;
            padding: 1.75rem;
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            min-height: 210px; /* reserva de espaço (CLS fix): tag + título + resumo + link, antes do JS injetar os artigos */
        }

        .discovery-card:hover {
            border-color: rgba(11, 122, 86, 0.25);
            background: rgba(11, 122, 86, 0.03);
            transform: translateY(-4px);
        }

        .discovery-tag {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: #34d399;
            margin-bottom: 0.75rem;
            font-weight: 600;
        }

        .discovery-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: white;
            margin-bottom: 0.5rem;
            line-height: 1.3;
        }

        .discovery-excerpt {
            font-size: 0.8rem;
            color: #9ca3af;
            line-height: 1.5;
            flex: 1;
        }

        .discovery-link {
            color: #34d399;
            font-weight: 600;
            font-size: 0.85rem;
            text-decoration: underline;
            text-underline-offset: 2px;
            text-decoration-color: rgba(52, 211, 153, 0.3);
            margin-top: 1rem;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            transition: gap 0.2s ease;
        }

        .discovery-link:hover {
            gap: 0.6rem;
            text-decoration-color: #34d399;
            color: #10b981;
        }

/* ===== Section Spacious ===== */
        .section-spacious {
            padding: 5rem 1.5rem;
        }

        @media (min-width: 768px) {
            .section-spacious {
                padding: 7rem 2rem;
            }
        }

/* ===== Estilos para o texto do quiz ===== */
        .quiz-hero-card .text-emerald-400 {
            color: #34d399 !important;
        }

        .quiz-hero-card .bg-accent {
            background-color: #0b7a56 !important;
        }

        .quiz-hero-card .bg-accent:hover {
            background-color: #096545 !important;
        }

/* ===== Estilos para o botão "Ver todos os artigos" ===== */
        .recent-article-pillars-section .bg-accent {
            background-color: #0b7a56 !important;
            color: #ffffff !important;
        }

        .recent-article-pillars-section .bg-accent:hover {
            background-color: #096545 !important;
        }

/* ===== Bloco do autor ===== */
        .author-credential {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
            transition: all 0.3s ease;
        }

        .author-credential:hover {
            border-color: rgba(11, 122, 86, 0.2);
            background: rgba(11, 122, 86, 0.02);
        }

/* ===== Flip Cards - fundo ===== */
        .flip-back {
            background: #0b7a56 !important;
            color: #ffffff !important;
        }

/* ===== FAQ ícones ===== */
        .faq-icon {
            background: rgba(11, 122, 86, 0.15) !important;
        }

        .faq-icon i {
            color: #34d399 !important;
        }

        .faq-question:hover h3 {
            color: #34d399 !important;
        }

/* ===== HERO CINEMATOGRÁFICO =====*/
.hero-cinematic {
            position: relative;
            background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 55%), #ffffff;
            overflow: hidden;
            min-height: 400px;
        }
        .hero-cinematic::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
            opacity: 0.7;
            pointer-events: none;
            z-index: 1;
            mix-blend-mode: overlay;
        }
        .hero-cinematic .hero-content {
            position: relative;
            z-index: 2;
        }