/* ✅ REMOVIDO: body - Herda do style.css global */
/* Evita conflitos de CSS ao navegar entre páginas */
/* Estilos específicos da página bio aplicados via classe .page-bio */
.page-bio {
    background: #f4f4f4;
    min-height: 100vh;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 0;
    margin: 0;
    overflow-x: hidden;
}

/* ✅ HEADER FULL-WIDTH COM GRADIENT (mesmo padrao do promocoes) */
.bio-header-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, var(--gc1, #ea580c) 0%, var(--gc2, #c2410c) 58%, var(--gc3, #fbbf24) 150%);
    color: #fff;
    padding: 50px 16px 100px;
    text-align: center;
}

.bio-header-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 18%),
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.14), transparent 14%);
    pointer-events: none;
}

.bio-header-content {
    position: relative;
    z-index: 1;
}

/* ✅ CONTAINER PRINCIPAL DA BIO */
.bio-container {
    max-width: 480px;
    width: 100%;
    margin: -70px auto 22px;
    padding: 26px 22px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    position: relative;
}

/* ✅ AVATAR DO PERFIL */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ✅ NOME DO PERFIL */
.profile-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: none;
}

/* ✅ DESCRIÇÃO DO PERFIL */
.profile-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.84);
    text-shadow: none;
}

/* ✅ LINKS DA BIO */
.bio-link {
    display: block;
    text-decoration: none;
    color: white;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

/* ✅ HOVER DOS LINKS */
.bio-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

/* ✅ ESTADO ATIVO DOS LINKS */
.bio-link:active {
    transform: translateY(-1px) scale(1.01);
}

/* ✅ RODAPÉ */
.footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #dee2e6;
    color: #333;
    font-size: 0.9rem;
}

.footer small {
    color: #6c757d;
}

/* ✅ CONTADOR DE LINKS */
.link-count {
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 20px;
    padding: 5px 15px;
    margin-top: 20px;
    display: inline-block;
    font-size: 0.85rem;
    border: 1px solid #e9ecef;
}

/* ✅ RESPONSIVIDADE MOBILE */
@media (max-width: 768px) {
    .bio-container {
        padding: 22px 16px;
        margin: -70px 16px 22px;
        max-width: calc(100% - 32px);
    }
    
    .bio-header-section {
        padding: 40px 16px 90px;
    }

    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .bio-link {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* ===== LINK DO RODAPÉ ===== */
.footer-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #007bff;
    text-decoration: underline;
}

/* === TABLET MEDIUM/IPAD 4:3 OPTIMIZATIONS - BIO === */
/* Target: 2048x1536 (iPad standard) */
/* Added: July 15, 2025 - Safe additions only */

/* ===== TABLET GENERAL OPTIMIZATIONS - BIO ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  /* Bio container: Better width utilization for tablet */
  .bio-container {
    max-width: 500px;
    margin: -70px auto 22px;
    padding: 30px;
  }
  
  /* Profile section: Enhanced spacing */
  .bio-header-section {
    padding: 50px 16px 100px;
  }
  

  
  /* Profile name: Enhanced typography */
  .profile-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
  }
  
  /* Profile description: Better readability */
  .profile-description {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 20px;
  }
  
  /* Bio links: Touch-optimized */
  .bio-link {
    display: block;
    padding: 16px 24px;
    margin-bottom: 15px;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  
  .bio-link:hover,
  .bio-link:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-decoration: none;
  }
  
  /* Social links: Enhanced presentation */
  .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
  }
  
  .social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }
  
  .social-link:hover,
  .social-link:active {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-decoration: none;
    color: white;
  }
  
  /* Statistics section: Enhanced layout */
  .stats-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
  }
  
  .stat-item {
    padding: 15px;
  }
  
  .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
  }
  
  .stat-label {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Contact section: Better presentation */
  .contact-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    text-align: center;
  }
  
  .contact-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }
  
  .contact-button:hover,
  .contact-button:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
    text-decoration: none;
    color: white;
  }
  
  /* Footer: Enhanced styling */
  .bio-footer {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    color: #6c757d;
    font-size: 14px;
  }
  
  .bio-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
  }
  
  .bio-footer a:hover {
    text-decoration: underline;
    color: #5a6fd8;
  }
}

/* ===== TABLET LANDSCAPE 4:3 OPTIMIZATIONS - BIO ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  /* Bio container: Wider for landscape */
  .bio-container {
    max-width: 600px;
    padding: 25px 40px;
  }
  
  /* Profile section: Horizontal layout option */
  .profile-section-horizontal {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 30px;
    margin-bottom: 35px;
  }
  
  .profile-avatar-horizontal {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
  }
  
  .profile-info {
    flex: 1;
  }
  
  /* Links: Grid layout for landscape */
  .links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  /* Social links: Horizontal arrangement */
  .social-links {
    justify-content: space-around;
    max-width: 400px;
    margin: 30px auto;
  }
  
  /* Stats: Horizontal layout */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
  
  .stat-item {
    border-right: 1px solid #e9ecef;
  }
  
  .stat-item:last-child {
    border-right: none;
  }
}

/* ===== TABLET PORTRAIT 4:3 OPTIMIZATIONS - BIO ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  /* Bio container: Optimized for portrait */
  .bio-container {
    max-width: 520px;
    padding: 35px 30px;
  }
  
  /* Profile: Centered vertical layout */
  .profile-section {
    text-align: center;
    margin-bottom: 45px;
  }
  

  
  /* Links: Single column, larger spacing */
  .bio-link {
    margin-bottom: 18px;
    padding: 18px 28px;
  }
  
  /* Social links: 2 rows layout */
  .social-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 320px;
    margin: 35px auto;
  }
  
  /* Stats: 2x2 grid for portrait */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-item {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
  }
  
  .stat-item:nth-child(-n+2) {
    border-bottom: 1px solid #e9ecef;
  }
  
  .stat-item:nth-child(n+3) {
    border-bottom: none;
  }
}

/* ===== TABLET TOUCH INTERACTIONS - BIO ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  /* Link touch feedback */
  .bio-link:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  /* Social link feedback */
  .social-link:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  
  /* Contact button feedback */
  .contact-button:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
  
  /* Avatar interaction */
  .profile-avatar:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  /* Enhanced ripple effects for links */
  .bio-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
  }
  
  .bio-link:active::before {
    width: 300px;
    height: 300px;
  }
  
  /* Scroll behavior: Smooth for tablets */
  html {
    scroll-behavior: smooth;
  }
  
  /* Focus states: Enhanced for accessibility */
  .bio-link:focus,
  .social-link:focus,
  .contact-button:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 3px;
  }
  
  /* Performance optimizations */
  .profile-avatar,
  .bio-link,
  .social-link {
    will-change: transform;
  }
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    .profile-avatar,
    .bio-link,
    .social-link,
    .contact-button {
      transition: none;
    }
    
    .bio-link:hover,
    .social-link:hover {
      transform: none;
    }
  }
}

/* ✅ ANIMAÇÕES E TRANSIÇÕES */
.bio-link {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.bio-link:nth-child(1) {
    animation-delay: 0.1s;
}

.bio-link:nth-child(2) {
    animation-delay: 0.2s;
}

.bio-link:nth-child(3) {
    animation-delay: 0.3s;
}

.bio-link:nth-child(4) {
    animation-delay: 0.4s;
}

.bio-link:nth-child(5) {
    animation-delay: 0.5s;
}

.bio-link:nth-child(n+6) {
    animation-delay: 0.6s;
}

/* ✅ KEYFRAMES PARA ANIMAÇÕES */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ✅ ESTADOS DE LOADING */
.bio-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.bio-container.loading .bio-link {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ✅ ESTILOS PARA LINKS SEM CONTEÚDO */
.bio-link.empty-state {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: default;
    border: 1px solid #e9ecef;
}

.bio-link.empty-state:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ✅ MELHORIAS DE ACESSIBILIDADE */
.bio-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.bio-link:focus:not(:focus-visible) {
    outline: none;
}

/* ✅ ESTILOS PARA IMPRESSÃO */
@media print {
    body {
        background: white;
        padding-top: 0;
    }
    
    .bio-container {
        margin-top: 0;
        box-shadow: none;
    }
    
    .bio-link {
        box-shadow: none;
        border: 1px solid #ccc;
        color: #333 !important;
        background: white !important;
    }
    
    .footer {
        margin-top: 20px;
        font-size: 0.8rem;
    }
}

/* ========================================= */
/* 🍪 COOKIE CONSENT CUSTOMIZATION */
/* ========================================= */
/* Vanilla Cookie Consent - Customizado para Bio */
/* Adicionado: Novembro 2025 */

:root {
    --cc-bg: #ffffff;
    --cc-text: #2d3748;
    --cc-btn-primary-bg: #18293C;
    --cc-btn-primary-text: #ffffff;
    --cc-btn-primary-hover-bg: #1abc9c;
    --cc-btn-secondary-bg: #e2e8f0;
    --cc-btn-secondary-text: #2d3748;
    --cc-btn-secondary-hover-bg: #cbd5e0;
    --cc-toggle-bg-off: #cbd5e0;
    --cc-toggle-bg-on: #1abc9c;
    --cc-toggle-bg-readonly: #cbd5e0;
    --cc-toggle-knob-bg: #ffffff;
    --cc-toggle-knob-icon-color: #2d3748;
    --cc-cookie-category-block-bg: #f7fafc;
    --cc-cookie-category-block-bg-hover: #edf2f7;
    --cc-section-border: #e2e8f0;
    --cc-cookie-table-border: #e2e8f0;
    --cc-overlay-bg: rgba(0, 0, 0, 0.6);
    --cc-webkit-scrollbar-bg: #cbd5e0;
    --cc-webkit-scrollbar-bg-hover: #a0aec0;
}

/* Bordas arredondadas nos modais */
#cc-main .cm, 
#cc-main .pm {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Botões mais modernos */
#cc-main button {
    border-radius: 8px;
    font-weight: 500;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    padding: 12px 24px;
}

#cc-main button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#cc-main button:active {
    transform: translateY(0);
}

/* Animação suave de entrada */
#cc-main .cm, 
#cc-main .pm {
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay escurecido */
#cc-main .pm__overlay {
    backdrop-filter: blur(3px);
}

/* Títulos mais destacados */
#cc-main .cm__title,
#cc-main .pm__title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #2d3748;
}

/* Descrição mais legível */
#cc-main .cm__desc,
#cc-main .pm__text {
    line-height: 1.6;
    color: #4a5568;
}

/* Links customizados */
#cc-main .cc-link {
    color: #1abc9c;
    text-decoration: underline;
    font-weight: 500;
}

#cc-main .cc-link:hover {
    color: #18293C;
}

/* Toggle switch personalizado */
#cc-main .section__toggle {
    transition: all 0.3s ease;
}

/* Botão de fechar (X) no modal de preferências */
#cc-main .pm__close-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    cursor: pointer;
    border: none;
}

#cc-main .pm__close-btn:hover {
    background: #cbd5e0;
}

#cc-main .pm__close-btn::before,
#cc-main .pm__close-btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #2d3748;
    border-radius: 2px;
}

#cc-main .pm__close-btn::before {
    transform: rotate(45deg);
}

#cc-main .pm__close-btn::after {
    transform: rotate(-45deg);
}

/* Alternativa: usar o SVG do Cookie Consent se disponível */
#cc-main .pm__close-btn svg {
    width: 16px;
    height: 16px;
    fill: #2d3748;
}

/* Tabela de cookies estilizada */
#cc-main .cookie-table {
    border-collapse: collapse;
    width: 100%;
}

#cc-main .cookie-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    padding: 12px;
    text-align: left;
}

#cc-main .cookie-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    #cc-main .cm {
        margin: 10px;
        border-radius: 10px;
    }
    
    #cc-main button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    #cc-main .cm__title,
    #cc-main .pm__title {
        font-size: 1.1rem;
    }
}

/* Tablet optimizations */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #cc-main .cm {
        max-width: 600px;
        margin: 20px auto;
    }
    
    #cc-main .pm {
        max-width: 700px;
    }
    
    #cc-main button {
        padding: 14px 28px;
        font-size: 16px;
        min-height: 50px;
    }
}

/* ========================================= */
/* 🍪 FIM - COOKIE CONSENT */
/* ========================================= */
