/* ==========================================================================
   LINKBIO CSS - LA BELLA PIZZA
   Design: Neo-Elastic Gourmet Brutalism (Unique, Vibrant & Premium)
   ========================================================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --vh: 1vh;
    --color-bg: #F3F3F3;
    --color-primary: #DE4E45;
    /* Vermelho Bella Pizza */
    --color-secondary: #64B95F;
    /* Verde Bella Pizza */
    --color-dark: #333333;
    /* Cinza Escuro Premium */
    --color-white: #FFFFFF;
    --color-shadow: #212121;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-dark);
    color: var(--color-dark);
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blur de fundo Gourmet no Desktop (Usa a própria imagem do Hero desfocada) */
.desktop-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/bg-hero.webp');
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.3);
    z-index: 1;
    pointer-events: none;
}

/* Wrapper principal (100% Full Screen em todos os dispositivos) */
.bio-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background-color: var(--color-bg);
    overflow: hidden;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.desktop-bg-blur {
    display: none;
    /* Desnecessário com o layout full screen */
}

/* Background da Minhoca SVG */
.bio-bg-worm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.bio-minhocao {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.75;
}

.bio-minhoquinha {
    display: none;
    width: 100%;
    height: 100%;
    opacity: 0.75;
}

#bio-stroke-path-desk,
#bio-stroke-path-mob {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    /* Será animado pelo GSAP */
}

@media (max-width: 768px) {
    .bio-minhocao {
        display: none;
    }

    .bio-minhoquinha {
        display: block;
    }
}

/* Container do Conteúdo */
.bio-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 580px;
    /* Largura de leitura confortável no desktop */
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 24px 8px;
    /* Reduzido ligeiramente para garantir 100vh em qualquer celular */
}

/* Header */
.bio-header {
    text-align: center;
    margin-top: 5px;
    /* Economia de altura vertical */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-wrapper {
    width: 160px;
    /* Reduzido exatamente pela metade para visual discreto e perfeito */
    height: auto;
    flex-shrink: 0;
    /* Impede que o flexbox encolha o logo */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    /* Totalmente estática */
}

.bio-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.bio-title {
    font-family: 'Damion', cursive;
    font-size: 38px;
    color: var(--color-dark);
    margin-top: 5px;
    /* Reduzido para economizar altura */
    font-weight: 100;
}

.bio-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    margin-top: 4px;
    background-color: rgba(255, 255, 255, 0.75);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px dashed #cccccc;
    display: inline-block;
}

/* Lista de Links */
.bio-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Gap otimizado para evitar estouros de altura */
    width: 100%;
    margin-top: 10px;
    /* Reduzido para garantir 100vh em qualquer celular */
    margin-bottom: 15px;
    /* Reduzido para garantir 100vh em qualquer celular */
}

/* Botão Base (Estilo Cards - Arredondado 30px, Sombra Macia, Sem Bordas Grossas) */
.bio-btn {
    position: relative;
    display: block;
    width: 100%;
    text-decoration: none;
    padding: 22px 28px;
    /* Altura generosa e muito mais imponente no mobile */
    border-radius: 30px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    /* Sombra super suave e elegante */
    font-weight: 600;
    font-size: 19px;
    /* Leitura imponente e proeminente no mobile */
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.bio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.bio-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    position: relative;
    z-index: 10;
    transition: opacity 0.2s ease;
}

.btn-icon {
    font-size: 22px;
    /* Proporcional ao novo tamanho do texto */
}

.btn-icon-svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Estilos Individuais dos Botões (Cores Sólidas dos Cards) */

/* 1. Delivery (Verde Artesanal com Contraste Acessível WCAG AA > 5.5:1) */
.btn-delivery {
    background-color: #20722E;
    color: var(--color-white);
}

/* 2. WhatsApp (Branco com ícone verde) */
.btn-whatsapp {
    background-color: var(--color-white);
    color: #25D366;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    /* Sombra um pouquinho mais nítida por ser branco */
}

.btn-whatsapp .btn-content {
    color: var(--color-dark);
}

.btn-whatsapp .btn-icon-svg {
    color: #25D366;
}

/* 3. Instagram (Vermelho Bella Pizza com Contraste Acessível WCAG AA > 5.0:1) */
.btn-instagram {
    background-color: #C93B32;
    color: var(--color-white);
}

/* 4. Website (Cinza Escuro Premium) */
.btn-website {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* ==========================================================================
   ESTILOS DE MICRO-MOTIONS (Ativados via JS no Click)
   ========================================================================== */

/* Bloqueador de interação durante a animação */
.animating {
    pointer-events: none !important;
}

/* 1. Motion do Delivery (Motinha com Rastro Falso) */
.motion-delivery-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #20722E;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.delivery-moto {
    font-size: 32px;
    position: relative;
    z-index: 22;
}

.delivery-rastro {
    position: absolute;
    right: 52%;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-end;
    pointer-events: none;
}

.rastro-line {
    background-color: rgba(255, 255, 255, 0.8);
    height: 3px;
    border-radius: 2px;
    display: block;
    width: 0;
    /* Animado pelo JS */
    transition: width 0.05s linear;
}

.line1 {
    margin-right: 10px;
}

.line2 {
    margin-right: 0px;
}

.line3 {
    margin-right: 15px;
}

/* 2. Motion do WhatsApp (Balão com 3 Pontinhos Digitando) */
.motion-whatsapp-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.whatsapp-dialog {
    background-color: #25D366;
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.whatsapp-dialog::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #25D366 transparent;
    display: block;
    width: 0;
}

.whatsapp-dialog::before {
    display: none;
}

.dialog-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    height: 12px;
}

.dialog-dots .dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: inline-block;
    opacity: 0.3;
}

/* 3. Motion do Instagram (Câmera Pulsando e Corações Flutuando) */
.motion-instagram-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.insta-camera-emoji {
    font-size: 32px;
    transform: scale(0);
}

/* Partícula de Coração Criada Dinamicamente pelo JS */
.heart-particle {
    position: absolute;
    font-size: 24px;
    pointer-events: none;
    z-index: 100;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* 4. Motion do Website (Globo Rotativo) */
.motion-website-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dark);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.web-motion-icon {
    font-size: 32px;
    transform: scale(0);
}

/* Rodapé */
.bio-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(51, 51, 51, 0.15);
}

.footer-sign {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888888;
    line-height: 1.6;
}

.footer-sign a {
    text-decoration: underline;
    color: inherit;
    font-weight: 700;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-sign a:hover {
    opacity: 1;
}

/* Customizações para Widescreen Desktop Viewports - Layout Lado a Lado */
@media (min-width: 769px) {
    .bio-container {
        display: grid;
        grid-template-columns: 4.5fr 5.5fr;
        /* 45% esquerda, 55% direita (mais balanceado) */
        grid-template-rows: 1fr auto;
        max-width: 1100px;
        /* Tela MUITO mais larga para suportar cards gigantes */
        padding: 40px;
        gap: 0 40px;
        /* Gaps otimizados */
        align-items: center;
        /* Centraliza tudo verticalmente na grid */
    }

    .bio-header {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        text-align: center;
        /* Elementos centralizados em sua div pai */
        align-items: center;
        /* Flexbox ao centro */
        justify-content: center;
        margin-top: 0;
        width: 100%;
    }

    .logo-wrapper {
        width: 100%;
        max-width: 360px;
        /* Logo GIGANTESCO */
        justify-content: center;
        /* Alinhado ao centro */
    }

    .bio-title {
        font-size: 52px;
        /* Fonte massiva */
        line-height: 1.1;
        margin-top: 25px;
    }

    .bio-subtitle {
        font-size: 18px;
        /* Título maior */
        margin-top: 15px;
        text-align: center;
        /* Centralizado */
        padding: 0;
    }

    /* Grid de Links na Direita */
    .bio-links {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        /* Mais espaço para os cards enormes */
        margin-top: 0;
        margin-bottom: 0;
        place-items: center;
        /* Centraliza o conteúdo da grid em suas colunas */
        width: 100%;
    }

    /* Transformando em Cards Quadrados Compactos Premium */
    .bio-btn {
        aspect-ratio: 1 / 1;
        width: 100%;
        max-width: 290px;
        /* CARDS GIGANTESCOS */
        padding: 30px;
        /* Área de clique enorme e visual Apple/App */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 40px;
        /* Bordas extremamente arredondadas e amigáveis */
    }

    /* Empilhamento de Conteúdo no Card */
    .btn-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 20px;
        /* Mais espaço entre ícone e texto */
        height: 100%;
        width: 100%;
    }

    .btn-icon {
        font-size: 52px;
        /* Ícones super imponentes */
    }

    .btn-icon-svg {
        width: 52px;
        height: 52px;
    }

    .bio-btn .btn-text {
        font-size: 20px;
        /* Textos muito mais legíveis e presentes */
        line-height: 1.3;
    }

    .bio-footer {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        margin-top: 40px;
        padding-top: 15px;
    }
}