/* 1. RESET PROFISSIONAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    justify-content: center; /* Centraliza o site na tela */
    min-height: 100vh;
}

/* 2. CONTAINER PRINCIPAL (O segredo do layout) */
.profile-wrapper {
    width: 100%;
    max-width: 500px; /* Largura ideal para Mobile/QR Code */
    padding: 40px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 3. CABEÇALHO (Foto e Nome) */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px solid #000;
    padding: 5px;
    background: #fff;
    overflow: hidden;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover; /* Faz a foto preencher o círculo sem deformar */
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 4. MENU DE ABAS (Estilo Moderno) */
.tabs-nav {
    display: flex;
    width: 100%;
    justify-content: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    position: sticky;
    top: 0;
    background: #fff;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.tab-btn.active {
    color: #000;
    border-bottom: 2px solid #000;
}

/* 5. ÁREAS DE CONTEÚDO */
.tab-pane {
    display: none; /* Escondido por padrão */
    width: 100%;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
    display: block; /* Mostra apenas a ativa */
}

.bio-text {
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

/* Grid de Fotos */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.gallery-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%);
    transition: 0.3s;
}

.gallery-item img:hover {
    filter: grayscale(0%);
}

/* Vídeos Responsivos */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- ESTILOS DA HOME PAGE --- */
.home-page {
    display: block; /* Diferente do profile que é flex center */
    background-color: #fff;
}

.home-header {
    padding: 80px 20px 40px;
    text-align: center;
    background: #000;
    color: #fff;
}

.home-header h1 {
    font-size: 3rem;
    letter-spacing: -2px;
    font-weight: 900;
}

.home-header p {
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 10px;
}

/* Busca na Home */
.home-search {
    margin-top: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.home-search input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

/* Grid de Personalidades */
.legacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.legacy-card {
    text-decoration: none;
    color: #000;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.legacy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #000;
}

.card-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.legacy-card:hover .card-thumb img {
    filter: grayscale(0%);
}

.card-info {
    padding: 20px;
    text-align: center;
}

.card-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.card-info span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
}

.home-footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #666;
}

/* Responsividade */
@media (max-width: 600px) {
    .legacy-grid {
        grid-template-columns: 1fr 1fr; /* Duas colunas no celular */
        gap: 10px;
    }
    .home-header h1 { font-size: 2rem; }
}
/* Container do Perfil Responsivo */
.profile-container {
    max-width: 600px; /* Estilo 'feed' de rede social */
    margin: 0 auto;
    padding: 20px;
}

/* Ajuste do vídeo para não quebrar no celular */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Grid de Fotos Inteligente */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas padrão */
    gap: 5px;
}

.gallery-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsividade para telas muito pequenas */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas no celular pequeno */
    }
    .profile-header h1 { font-size: 1.5rem; }
}

.empty-msg { text-align: center; color: #999; padding: 40px 0; font-style: italic; }
/* AJUSTE DA FOTO DE PERFIL (Para não ficar gigante) */
.avatar-circle {
    width: 150px;       /* Tamanho fixo menor */
    height: 150px;      /* Tamanho fixo menor */
    margin: 0 auto 15px; /* Centraliza a div e dá margem inferior */
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #000;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Corta a imagem para preencher o círculo sem esticar */
}

/* MARGIN NO TEXTO DA BIOGRAFIA (Para não colar nas bordas) */
.bio-content {
    margin: 30px auto;  /* Margem superior/inferior */
    padding: 0 20px;    /* Margem interna lateral para o texto não encostar no celular */
    line-height: 1.8;   /* Melhora a leitura */
    text-align: justify;
    max-width: 600px;   /* Mantém o texto em uma largura confortável para leitura */
}

/* CENTRALIZAR E DAR MARGIN NO VÍDEO */
.video-wrapper {
    max-width: 560px;   /* Largura máxima padrão do YouTube */
    margin: 30px auto;  /* Centraliza horizontalmente e dá margem vertical */
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px; /* Opcional: cantos arredondados no vídeo */
}

/* RESPONSIVIDADE (Celular) */
@media (max-width: 600px) {
    .avatar-circle {
        width: 120px;
        height: 120px;
    }
    .bio-content {
        padding: 0 15px;
        font-size: 0.95rem;
    }
}