/* ==============================================
ESTILOS GERAIS E LAYOUT BASE
==============================================
*/
body {
    font-family: 'Inter', sans-serif;
    background-color: #0c0a09;
}

.gradient-text {
    background: linear-gradient(90deg, #4ade80, #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-gradient {
    background: radial-gradient(ellipse at top, rgba(34, 197, 94, 0.15), transparent 70%);
}

/* ==============================================
CONTAINERS DE VÍDEO RESPONSIVOS
==============================================
*/
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 0.75rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-container-16-9 {
    position: relative;
    padding-top: 56.25%;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
}

.video-container-16-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Otimizações para mobile */
@media (max-width: 640px) {
    .video-container,
    .video-container-16-9 {
        margin: 0 -1rem; /* Expande para as bordas em mobile */
        border-radius: 0;
    }
    
    .video-container iframe,
    .video-container-16-9 iframe {
        border-radius: 0;
    }
}

.nav-button.active {
    background-color: #f59e0b;
    color: #ffffff;
    font-weight: 700;
}

/* ==============================================
LINHA DO TEMPO ANIMADA - RESPONSIVA
==============================================
*/
.timeline-container {
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px; /* Posição para mobile, alinhada com o ícone */
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: #374151;
    z-index: 1;
}

/* Centraliza a linha no desktop */
@media (min-width: 768px) {
    .timeline-container::before {
        left: 50%; 
    }
}

/* Animação de entrada para os itens da timeline */
.timeline-item { 
    opacity: 0; 
    transform: translateY(50px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .timeline-item {
        margin-bottom: 3rem;
    }
}

.timeline-item.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.timeline-icon { 
    background: #1f2937; 
    border: 3px solid #374151; 
    transition: all 0.3s ease-out;
    position: relative;
    z-index: 2;
}

.timeline-item.is-visible .timeline-icon { 
    border-color: #4ade80; 
    transform: scale(1.1); 
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.5); 
}

/* Melhorias para mobile na timeline */
@media (max-width: 767px) {
    .timeline-content {
        margin-left: 1rem !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-item .md\\:w-1\\/2 {
        width: 100% !important;
    }
    
    .timeline-item .md\\:flex {
        display: block !important;
    }
}

/* ==============================================
CARROSSEL DE LIVROS (SWIPER) - RESPONSIVO
==============================================
*/
.swiper-container { 
    width: 100%; 
    padding-top: 20px; 
    padding-bottom: 50px;
    overflow: hidden;
}

.swiper-slide { 
    width: 200px; /* Largura base para cada card */
    height: auto; /* Altura automática para se ajustar ao conteúdo */
}

/* Ajustes responsivos para o carrossel */
@media (max-width: 640px) {
    .swiper-slide {
        width: 160px; /* Menor em mobile */
    }
    
    .swiper-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        width: 140px; /* Ainda menor em telas muito pequenas */
    }
}

.book-card {
    background-color: #ffffff; /* Fundo branco como na referência */
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.book-card img { 
    height: 250px; /* Altura da imagem da capa */
    width: 100%;
    object-fit: cover; 
}

@media (max-width: 640px) {
    .book-card img {
        height: 200px; /* Menor em mobile */
    }
}

@media (max-width: 480px) {
    .book-card img {
        height: 180px; /* Ainda menor em telas muito pequenas */
    }
}

.book-card-content {
    padding: 1rem;
    text-align: center;
}

@media (max-width: 640px) {
    .book-card-content {
        padding: 0.75rem;
    }
    
    .book-card-content h4 {
        font-size: 0.875rem;
    }
}

.book-card-content h4 {
    color: #111827; /* Texto escuro */
    font-weight: 600;
    font-size: 1rem;
}

.swiper-button-next, .swiper-button-prev { 
    color: #4ade80;
}

/* Ajustes dos botões de navegação para mobile */
@media (max-width: 640px) {
    .swiper-button-next, .swiper-button-prev {
        width: 35px;
        height: 35px;
        margin-top: -17.5px;
    }
    
    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 16px;
    }
}

.swiper-pagination-bullet-active { 
    background: #4ade80; 
}

/* ==============================================
GRID LAYOUTS RESPONSIVOS
==============================================
*/
/* Melhorias para grids de tutoriais */
@media (max-width: 640px) {
    .grid.grid-cols-1.sm\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .grid.grid-cols-1.sm\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* Grid para outros produtos */
@media (max-width: 767px) {
    .grid.grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* ==============================================
CARDS DE VÍDEO RESPONSIVOS
==============================================
*/
.video-card {
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .video-card .h-48 {
        height: 12rem !important; /* h-48 equivale a 12rem */
    }
    
    .video-card .absolute.bottom-0.left-0.p-4 {
        padding: 0.75rem !important;
    }
    
    .video-card h4 {
        font-size: 1rem !important;
        line-height: 1.25 !important;
    }
    
    .video-card p {
        font-size: 0.875rem !important;
    }
}

/* ==============================================
BOTÕES E INTERAÇÕES TOUCH-FRIENDLY
==============================================
*/
/* Melhorias para botões em dispositivos touch */
@media (max-width: 768px) {
    .bg-green-500.hover\\:bg-green-400 {
        min-height: 44px; /* Tamanho mínimo recomendado para touch */
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* ==============================================
TIPOGRAFIA RESPONSIVA
==============================================
*/
/* Ajustes de tipografia para mobile */
@media (max-width: 640px) {
    .text-4xl.sm\\:text-5xl.lg\\:text-7xl {
        font-size: 2rem !important; /* text-4xl em mobile */
        line-height: 1.1 !important;
    }
    
    .text-3xl.sm\\:text-4xl {
        font-size: 1.875rem !important; /* text-3xl em mobile */
        line-height: 1.2 !important;
    }
    
    .text-lg.md\\:text-xl {
        font-size: 1rem !important; /* text-base em mobile */
        line-height: 1.5 !important;
    }
    
    .text-lg {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
}

/* ==============================================
ESPAÇAMENTOS RESPONSIVOS
==============================================
*/
/* Ajustes de padding e margin para mobile */
@media (max-width: 640px) {
    .py-20.sm\\:py-24.lg\\:py-32 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-16.sm\\:py-20 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .py-20.sm\\:py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .p-8.md\\:p-12 {
        padding: 1.5rem !important;
    }
    
    .gap-8.lg\\:gap-12 {
        gap: 1.5rem !important;
    }
    
    .space-y-20.sm\\:space-y-24 > * + * {
        margin-top: 3rem !important;
    }
}

/* ==============================================
FLEXBOX RESPONSIVO
==============================================
*/
/* Melhorias para layouts flex */
@media (max-width: 1023px) {
    .flex.flex-col.lg\\:flex-row {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .lg\\:w-1\\/2,
    .lg\\:w-1\\/3,
    .lg\\:w-2\\/3 {
        width: 100% !important;
    }
    
    .lg\\:text-left {
        text-align: center !important;
    }
}

/* ==============================================
MODAL DE VÍDEO (LIGHTBOX) E CARDS
==============================================
*/
.lightbox { 
    transition: opacity 0.3s ease-in-out; 
}

.lightbox-content { 
    transition: all 0.3s ease-in-out; 
}

@media (max-width: 640px) {
    .lightbox-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .lightbox .p-6 {
        padding: 1rem !important;
    }
    
    .lightbox h3 {
        font-size: 1.25rem !important;
    }
    
    .lightbox .mt-6 {
        margin-top: 1rem !important;
    }
}

.video-card .play-icon { 
    transition: all 0.3s ease-in-out; 
    opacity: 0; 
    transform: scale(0.8); 
}

.video-card:hover .play-icon { 
    opacity: 1; 
    transform: scale(1); 
}

.video-card:hover .card-image { 
    transform: scale(1.05); 
}

.card-image { 
    transition: all 0.3s ease-in-out; 
}

/* ==============================================
ACORDEÃO DE PERGUNTAS FREQUENTES (FAQ)
==============================================
*/
.accordion-item { 
    border: 1px solid #374151; 
    border-radius: 0.75rem; 
    margin-bottom: 1rem; 
    overflow: hidden; 
}

.accordion-header { 
    background-color: #1f2937; 
    padding: 1.25rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

@media (max-width: 640px) {
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-header h3 {
        font-size: 1rem !important;
    }
}

.accordion-header h3 { 
    color: #fff; 
    font-size: 1.125rem; 
    font-weight: 600; 
}

.accordion-header .header-icon { 
    margin-right: 1rem; 
    color: #4ade80; 
}

.accordion-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out; 
    padding: 0 1.25rem; 
    background-color: #111827; 
}

@media (max-width: 640px) {
    .accordion-content {
        padding: 0 1rem;
    }
}

.accordion-item.active .accordion-content { 
    max-height: 5000px; 
    padding: 1.25rem; 
}

@media (max-width: 640px) {
    .accordion-item.active .accordion-content {
        padding: 1rem;
    }
}

.accordion-header::after { 
    content: '\f078'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900; 
    transition: transform 0.3s ease; 
}

.accordion-item.active .accordion-header::after { 
    transform: rotate(180deg); 
}

.faq-item { 
    border-top: 1px solid #374151; 
    padding: 1.25rem 0; 
}

@media (max-width: 640px) {
    .faq-item {
        padding: 1rem 0;
    }
}

.faq-item:first-child { 
    border-top: none; 
    padding-top: 0; 
}

.faq-question { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    font-weight: 600; 
    cursor: pointer; 
    gap: 1rem; 
}

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease, margin-top 0.4s ease; 
    color: #d1d5db; 
}

.faq-item.open .faq-answer { 
    max-height: 1000px; 
    margin-top: 1rem; 
}

.faq-question::after { 
    content: '\f067'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900; 
    margin-left: auto; 
    transition: transform 0.3s ease; 
}

.faq-item.open .faq-question::after { 
    content: '\f068'; 
    transform: rotate(90deg); 
}

/* ==============================================
BOTÃO FLUTUANTE DO WHATSAPP
==============================================
*/
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px #00000040;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==============================================
MELHORIAS GERAIS DE RESPONSIVIDADE
==============================================
*/
/* Garantir que imagens sejam responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Melhorar overflow em containers pequenos */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .max-w-4xl,
    .max-w-3xl,
    .max-w-2xl {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
}

/* Melhorar legibilidade em telas pequenas */
@media (max-width: 640px) {
    .text-gray-400,
    .text-gray-300 {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Ajustes para badges e elementos pequenos */
@media (max-width: 640px) {
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .video-btn {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }
}



/* ==============================================
SEÇÃO "POR QUE MILHARES" - NOVA SEÇÃO
==============================================
*/
.benefit-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.benefit-card:hover::before {
    left: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.1);
}

/* Responsividade específica para a seção de benefícios */
@media (max-width: 640px) {
    .benefit-card {
        padding: 1.25rem !important;
    }
    
    .benefit-card h3 {
        font-size: 1.125rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .benefit-card p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    .benefit-card .w-16.h-16 {
        width: 3.5rem !important;
        height: 3.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .benefit-card .text-2xl {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .grid.grid-cols-1.sm\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* Animação de entrada para os cards de benefícios */
.benefit-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }
.benefit-card:nth-child(7) { animation-delay: 0.7s; }
.benefit-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de pulso nos ícones */
.benefit-card .fas {
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.benefit-card:hover .fas {
    animation: none;
    transform: scale(1.1);
}

