/* ================= biografias.css ================= */

/* --- VARIÁVEIS LOCAIS E ESTRUTURA GERAL --- */
:root {
    --bio-spacing-mobile: 20px;
    --bio-spacing-desktop: 40px;
}

.bio-container {
    max-width: 1100px;
    margin: 120px auto 50px auto;
    padding: 0 var(--bio-spacing-mobile);
    position: relative;
    z-index: 10;
}

/* --- TÍTULO PRINCIPAL --- */
.bio-main-header {
    text-align: center;
    margin-bottom: 40px;
}

.subtitle-top {
    font-family: var(--font-texto);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cor-acento);
    margin-bottom: 15px;
    font-weight: 600;
}

.bio-main-header h2 {
    font-family: var(--font-titulo);
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    color: var(--cor-texto);
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 1px;
}

.bio-main-header p {
    font-family: var(--font-texto);
    color: #b0a89f;
    max-width: 650px;
    margin: 0 auto;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent);
    margin: 35px 0;
}

.section-title {
    margin-bottom: 25px;
    border-left: 3px solid var(--cor-acento);
    padding-left: 15px;
}

.section-title h3 {
    font-family: var(--font-titulo);
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    color: var(--cor-texto);
    font-weight: 400;
}

/* --- CAPA DO ARTIGO PRINCIPAL (DESTAQUE) --- */
.bio-article {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bio-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.bio-hero {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.bio-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.bio-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: sepia(30%) contrast(110%) brightness(60%);
    transition: transform 10s ease;
}

.bio-article:hover .bio-hero-bg img {
    transform: scale(1.05);
}

.bio-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 9, 8, 1) 0%, rgba(10, 9, 8, 0.6) 40%, transparent 100%);
    z-index: 2;
}

.bio-title-wrapper {
    position: relative;
    z-index: 3;
    padding: var(--bio-spacing-mobile);
    width: 100%;
}

.bio-category-tag {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--cor-acento);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 12px;
    display: inline-block;
}

.bio-title-wrapper h2 {
    font-family: var(--font-titulo);
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    color: var(--cor-texto);
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 10px;
}

/* ==========================================
   A ESTÉTICA DE BIOGRAFIAS (RESTAURADA)
   ========================================== */

/* --- FICHA TÉCNICA RÁPIDA --- */
.ficha-tecnica {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 coluna */
    gap: 15px;
    background-color: rgba(244, 240, 230, 0.03);
    border-top: 1px solid rgba(181, 168, 152, 0.3);
    border-bottom: 1px dashed rgba(181, 168, 152, 0.3);
    padding: 20px 25px;
}

.ficha-item {
    display: flex;
    flex-direction: column;
}

.ficha-label {
    font-family: var(--font-texto);
    font-size: 0.65rem;
    color: var(--cor-acento);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.ficha-value {
    font-family: var(--font-titulo);
    font-size: 1.1rem;
    color: var(--cor-texto);
}

/* --- CORPO DO TEXTO & DROP CAP --- */
.bio-content {
    padding: 30px 20px 40px 20px;
    background-color: rgba(21, 19, 17, 0.8);
}

.bio-content p {
    font-size: clamp(0.95rem, 2vw + 0.5rem, 1.05rem);
    line-height: 1.8;
    color: #e5e0d8;
    margin-bottom: 25px;
    font-weight: 300;
}

.drop-cap::first-letter {
    font-family: var(--font-cursiva);
    font-size: 4.5rem; /* Menor no mobile para não quebrar */
    color: var(--cor-acento);
    float: left;
    line-height: 0.8;
    margin-right: 10px;
    margin-top: 5px;
}

.bio-content h3 {
    font-family: var(--font-titulo);
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--cor-acento);
    margin: 35px 0 15px 0;
    font-weight: 400;
}

/* --- CITAÇÃO DE IMPACTO --- */
.impact-quote {
    font-family: var(--font-titulo);
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    color: var(--cor-texto);
    line-height: 1.3;
    text-align: center;
    margin: 40px 0;
    padding: 0 15px;
    position: relative;
    font-weight: 400;
}

.impact-quote::before,
.impact-quote::after {
    content: '❦';
    font-size: 1.2rem;
    color: var(--cor-acento);
    position: absolute;
    opacity: 0.5;
}

.impact-quote::before {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.impact-quote::after {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.impact-quote cite {
    display: block;
    font-family: var(--font-texto);
    font-size: 0.75rem;
    color: #8c8273;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 25px;
}

/* --- BOTÕES "LER MAIS" --- */
.read-more {
    display: inline-block;
    color: var(--cor-acento);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #fff;
    border-bottom-color: var(--cor-acento);
}

.read-more::after {
    content: ' →';
    transition: margin-left 0.3s ease;
}

.read-more:hover::after {
    margin-left: 8px;
}

/* --- CATÁLOGO DE PERFIS (FILTROS) --- */
.explore-header h2 {
    text-align: center;
    font-family: var(--font-cursiva);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--cor-acento);
    font-weight: 400;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #b0a89f;
    padding: 10px 18px;
    font-family: var(--font-texto);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    flex-grow: 1;
    text-align: center;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--cor-acento);
    color: #111;
    border-color: var(--cor-acento);
    font-weight: 600;
}

/* --- GRID DOS CARDS --- */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 60px;
}

.grid-card.hidden {
    display: none;
}

.bio-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.4);
}

.bio-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.bio-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: sepia(30%) contrast(110%) brightness(70%);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.bio-card:hover .bio-image img {
    transform: scale(1.08);
    filter: sepia(0%) contrast(100%) brightness(100%);
}

.bio-badge {
    position: absolute;
    bottom: 15px; right: 15px;
    background-color: rgba(10, 9, 8, 0.85);
    color: var(--cor-acento);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    backdrop-filter: blur(4px);
}

.bio-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bio-card-content h4 {
    font-family: var(--font-titulo);
    font-size: 1.4rem;
    color: var(--cor-texto);
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 400;
}

.bio-card-content p {
    color: #a39b92;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ==========================================
   MEDIA QUERIES (TABLETS E DESKTOPS)
   ========================================== */

@media (min-width: 768px) {
    .bio-container {
        padding: 0 var(--bio-spacing-desktop);
        margin-top: 150px;
    }

    .bio-hero {
        height: 450px;
    }

    .bio-title-wrapper {
        padding: var(--bio-spacing-desktop);
    }
    
    /* Restaurando Ficha Técnica no PC */
    .ficha-tecnica {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        padding: 25px 40px;
    }

    /* Restaurando Textos no PC */
    .bio-content {
        padding: 40px 60px 60px 60px;
    }

    .drop-cap::first-letter {
        font-size: 6rem;
    }

    .impact-quote {
        padding: 0 40px;
    }

    .filter-container {
        flex-wrap: nowrap;
    }

    .filter-btn {
        flex-grow: 0;
    }

    .bio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .bio-hero {
        height: 500px;
    }
    .bio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; transform: none !important; animation: none !important; }
}