/* ========================================
   CSS - PÁGINA DO MENTOR (VERSÃO FINAL)
======================================== */

/* Estilos Gerais */
body {
    background-color: #F4F6F8;
    font-family: 'Poppins', sans-serif;
}

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

.section-title {
    font-family: 'Blinker', sans-serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: #1f2937;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title-left {
    font-family: 'Blinker', sans-serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: left;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-family: 'Blinker', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    text-align: center;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary-mentor {
    background: transparent;
    color: #005a9c;
    border: 2px solid #005a9c;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary-mentor:hover {
    background: #005a9c;
    color: #ffffff;
}

/* Hero Section */
.mentor-hero-section {
    position: relative;
    background-image: linear-gradient(rgba(20, 30, 48, 0.7), rgba(36, 59, 85, 0.7)), url('/home-images/hero.jpg');
    background-size: cover;
    background-position: center 80%;
    background-attachment: fixed;
    color: #ffffff;
    padding: 6rem 0;
    text-align: center;
}

.mentor-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 5rem;
}

.mentor-hero-title {
    font-family: 'Blinker', sans-serif;
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.mentor-hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Seção de Biografia */
.bio-section {
    background-color: #ffffff;
    padding: 5rem 0;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.bio-image-wrapper {
    text-align: center;
}

.bio-image {
    max-width: 400px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.bio-text a {
    color: #005a9c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.bio-text a:hover {
    color: #06b6d4;
}


.social-links-mentor {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links-mentor a img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.social-links-mentor a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Seção Best-Sellers */
.bestsellers-section {
    padding: 5rem 0;
}

.bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.book-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.book-cover {
    width: 100%;
    height: 380px;
    object-fit: scale-down;
    border-radius: 8px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-title {
    font-family: 'Blinker', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.book-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Seção Linha do Tempo */
.timeline-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #06b6d4;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: white;
    border: 4px solid #06b6d4;
    top: 24px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: #F4F6F8;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    font-family: 'Blinker', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #005a9c;
}

/* Seção Estatísticas */
.stats-section {
    padding: 5rem 0;
    background-color: #1f2937;
}

.stats-section .section-title {
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    ALIGN-ITEMS: ANCHOR-CENTER;
}

.stat-card {
    text-align: center;
    color: #ffffff;
}

.stat-number {
    font-family: 'Blinker', sans-serif;
    font-size: clamp(2.5rem, 6vw, 2rem);
    font-weight: 700;
    color: #06b6d4;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
}

.cta-container {
    text-align: center;
    margin-top: 4rem;
}

/* Seção de Contato */
.contact-section {
    padding: 5rem 0;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    width: 100%;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* Seção Newsletter */
.newsletter-section-mentor {
    padding: 5rem 0;
    background-color: #e0e7ff;
}

.newsletter-card {
    background: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-title {
    font-family: 'Blinker', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-description {
    margin-bottom: 2rem;
    color: #4b5563;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.newsletter-form button {
    background-color: #005a9c;
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 992px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .bio-content,
    .section-title-left {
        text-align: center;
    }

    .social-links-mentor {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mentor-hero-section {
        background-attachment: scroll;
        background-position: 80% 20%;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 1rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item::after {
        left: 8px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ESTILOS DO MODAL (VERSÃO FINAL CORRIGIDA)
======================================== */
.modal .modal-content {
    animation: none;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    padding: 0;
    /* Remove padding para controlar internamente */
}

.modal .modal-content .close {
    /* Herda do index.css, mas garantimos a posição sobre o conteúdo */
    z-index: 10;
}

.modal .modal-header,
.modal-book-title {
    padding: 1.5rem 2.5rem 0.5rem;
    flex-shrink: 0;
}

.modal .modal-footer {
    padding: 1.5rem 2.5rem;
    flex-shrink: 0;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: left;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.modal-book-body {
    padding: 1rem 2.5rem;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 20px;
}

.modal-book-subtitle {
    font-family: 'Blinker', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-book-list {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.modal-book-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Dark Mode para o Modal (herdado do index.css, com adições) */
@media (prefers-color-scheme: dark) {
    .modal .modal-footer {
        background-color: #1f2937;
        border-top-color: #374151;
    }

    .modal-book-subtitle {
        color: #ffffff;
    }

    .modal-book-list li {
        color: #d1d5db;
    }
}

/* ========================================
   ESTILOS DO SCROLLBAR DO MODAL
======================================== */

/* Define a aparência geral da barra de rolagem */
.modal-book-body::-webkit-scrollbar {
    width: 8px;
    /* Largura da barra de rolagem */
}

/* Define o fundo (trilha) da barra de rolagem */
.modal-book-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Define o 'polegar' (a parte que você arrasta) */
.modal-book-body::-webkit-scrollbar-thumb {
    background: #0891b2;
    /* Cor principal azul do seu design */
    border-radius: 10px;
    border: 2px solid #f1f1f1;
    /* Cria um pequeno espaçamento */
}

/* Muda a cor do polegar ao passar o mouse */
.modal-book-body::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
    /* Cor de destaque ao passar o mouse */
}

/* Adaptação para o Modo Escuro */
@media (prefers-color-scheme: dark) {
    .modal-book-body::-webkit-scrollbar-track {
        background: #2a374a;
        /* Fundo escuro da trilha */
    }

    .modal-book-body::-webkit-scrollbar-thumb {
        background: #06b6d4;
        /* Cor de destaque do cian */
        border-color: #2a374a;
    }

    .modal-book-body::-webkit-scrollbar-thumb:hover {
        background: #22d3ee;
    }
}