/* 
  Estilos CSS base do Site Linktree Dr. Xaxá 
*/
:root {
    --bg-color: #050a12;
    /* Dark blue / black background */
    --text-primary: #ffffff;
    --text-secondary: #8b8e96;

    --brand-blue: #0b2e59;
    --brand-orange: #e08a0d;
    --brand-white: #ffffff;

    --card-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
    --hover-shadow: 0px 15px 40px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Fundo Geral */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* O rosto do Dr de fundo (o arquivo que enviou como fundo de página) */
    background:
        linear-gradient(rgba(5, 10, 18, 0.7), rgba(5, 10, 18, 1) 95%),
        url('assets/bg-page.png') top right / cover no-repeat;
    z-index: -1;
}

/* Sub-grade quadriculada suave */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -2;
}

/* Recipiente Central */
.container {
    width: 100%;
    max-width: 500px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ===== CABEÇALHO DO PERFIL ===== */
.profile-header {
    text-align: center;
    margin-bottom: 35px;
    margin-top: 10px;
}

.profile-picture {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 1.5px solid rgba(224, 138, 13, 0.4);
    box-shadow:
        0 0 8px rgba(224, 138, 13, 0.3),
        0 0 20px rgba(224, 138, 13, 0.15),
        0 0 40px rgba(224, 138, 13, 0.05);
    animation: neon-pulse 3s ease-in-out infinite;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    /* Extra bold */
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.profile-creds {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}


/* ===== CONTAINERS DE BANNER ===== */
.links-container {
    container-type: inline-size;
    /* Container query para os banners */
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: auto;
}

/* Link Cards - Configuração Base */
.link-card {
    display: block;
    width: 100%;
    /* Mantém a proporção exata da imagem exportada (~3.25) */
    aspect-ratio: 358 / 110;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow:
        0 0 8px rgba(224, 138, 13, 0.2),
        0 0 20px rgba(224, 138, 13, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(224, 138, 13, 0.15);
    animation: neon-pulse-card 4s ease-in-out infinite;
}

.link-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 0 15px rgba(224, 138, 13, 0.5),
        0 0 35px rgba(224, 138, 13, 0.25),
        0 0 60px rgba(224, 138, 13, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(224, 138, 13, 0.4);
}

.link-card:focus {
    outline: 2px solid var(--brand-orange);
    outline-offset: 4px;
}


/* ===== TEXTOS COMUNS (CORES) ===== */
.text-orange {
    color: var(--brand-orange);
    font-weight: 800;
}

.text-blue {
    color: var(--brand-blue);
    font-weight: 800;
}

.text-white {
    color: var(--brand-white);
    font-weight: 600;
    /* Medium-bold para o branco na maioria das vezes */
}


/* ===== CARTÃO 1: AGENDA DE CONSULTA ===== */
.card-consulta {
    background-image: url('assets/bg-consulta.png');
}

/* Logo menorzinha da clínica no canto superior */
.card-brand {
    position: absolute;
    top: 10%;
    left: 8%;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-brand img {
    height: 9cqw;
    /* Responsivo baseado na largura do banner */
    width: auto;
}

.card-brand-text {
    color: var(--brand-blue);
    line-height: 1;
}

.card-brand-text strong {
    font-size: 3.5cqw;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.card-brand-text span {
    display: block;
    font-size: 1.4cqw;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 2px;
    color: var(--brand-orange);
}

/* Título de agendar "Agende a sua consulta" */
.card-text-consulta {
    position: absolute;
    bottom: 12%;
    left: 8%;
    line-height: 0.7;
    letter-spacing: -0.06em;
}

.card-text-consulta .text-blue,
.card-text-consulta .text-orange {
    font-size: 6.2cqw;
}


/* ===== CARTÕES 2 e 3: CONSULTÓRIO e EVENTOS ===== */
.card-consultorio {
    background-image: url('assets/bg-consultorio.png');
}

.card-eventos {
    background-image: url('assets/bg-eventos.png');
}

/* Embrulho para alinhar os textos dos blocos escuros */
.card-details {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 8%;
}

.decorative-line {
    width: 30px;
    /* Será escalado com font se deixássemos em (em), mas pixel aqui funciona bem */
    width: 8cqw;
    height: 2px;
    margin-bottom: 8px;
    /* Espaço para o texto */
}

/* Consultório */
.line-consultorio {
    background-color: #d1b181;
    /* O tom de creme dourado da linha no mock */
}

.card-text-consultorio,
.card-text-eventos {
    line-height: 0.7;
    letter-spacing: -0.06em;
}

.card-text-consultorio .text-white,
.card-text-consultorio .text-orange {
    font-size: 6.2cqw;
}

/* Eventos */
.line-eventos {
    background-color: #5c8fc7;
    /* O tom azul claro da linha no mock de eventos */
}

.card-text-eventos .text-white,
.card-text-eventos .text-orange {
    font-size: 6.2cqw;
}


/* ===== ANIMAÇÕES NEON ===== */
@keyframes neon-pulse {

    0%,
    100% {
        box-shadow:
            0 0 8px rgba(224, 138, 13, 0.3),
            0 0 20px rgba(224, 138, 13, 0.15),
            0 0 40px rgba(224, 138, 13, 0.05);
        border-color: rgba(224, 138, 13, 0.4);
    }

    50% {
        box-shadow:
            0 0 12px rgba(224, 138, 13, 0.5),
            0 0 30px rgba(224, 138, 13, 0.25),
            0 0 50px rgba(224, 138, 13, 0.1);
        border-color: rgba(224, 138, 13, 0.6);
    }
}

@keyframes neon-pulse-card {

    0%,
    100% {
        box-shadow:
            0 0 8px rgba(224, 138, 13, 0.2),
            0 0 20px rgba(224, 138, 13, 0.1),
            0 4px 15px rgba(0, 0, 0, 0.4);
        border-color: rgba(224, 138, 13, 0.15);
    }

    50% {
        box-shadow:
            0 0 12px rgba(224, 138, 13, 0.35),
            0 0 28px rgba(224, 138, 13, 0.18),
            0 4px 15px rgba(0, 0, 0, 0.4);
        border-color: rgba(224, 138, 13, 0.3);
    }
}

/* ===== RODAPÉ ===== */
.site-footer {
    width: 100%;
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
}

.footer-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 180, 133, 0.7), transparent);
    margin-bottom: 25px;
}

.site-footer p {
    font-size: 0.7rem;
    color: #4f5564;
    margin: 6px 0;
    letter-spacing: 0.5px;
}

.site-footer p a {
    color: #4f5564;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer p a:hover {
    color: var(--text-primary);
}

/* ... Manter as regras originais ... */

/* Ajuste de Container para suportar largura Total em Desktop */
.container {
    width: 100%;
    /* No desktop a max-width não limita visualmente os componentes tanto quanto o flexbox deles */
    max-width: 1400px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ===== CABEÇALHO DO PERFIL ===== */
.profile-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
    /* Mantém o cabeçalho mais contido ao centro */
}

/* ===== CONTAINERS DE BANNER ===== */
.links-container {
    container-type: inline-size;
    /* Container query para os banners */
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    /* Limita o crescimento exagerado apenas dos botões */
    max-width: 800px;
    margin-bottom: auto;
}

/* Link Cards - Configuração Base */
.link-card {
    /* O hover vai depender muito do comportamento do mouse no desktop */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.link-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.6);
}

/* Ajustes Específicos para a Logo no Cartão Consulta em telas muito grandes */
@container (min-width: 600px) {
    .card-brand img {
        height: 60px;
        /* Tamanho fixo em vez de relativo à container em telas grandes */
    }

    .card-brand-text strong {
        font-size: 24px;
    }

    .card-brand-text span {
        font-size: 9px;
    }

    .card-text-consulta .text-blue,
    .card-text-consulta .text-orange {
        font-size: 40px;
    }

    .decorative-line {
        width: 50px;
        height: 3px;
    }

    .card-text-consultorio .text-white,
    .card-text-eventos .text-white,
    .card-text-consultorio .text-orange,
    .card-text-eventos .text-orange {
        font-size: 40px;
    }
}