/* Estilos do Olika Links (Bio Link & Micro Landing Page) */

:root {
    --bio-cor-fundo: #1A1412;
    --bio-cor-botao: #b85032;
    --bio-cor-texto: #FFFFFF;
    --bio-fonte: 'Plus Jakarta Sans', sans-serif;
    --bio-overlay: 0.65;
    --bio-blur: 3px;
    --bio-fundo-imagem: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

.bio-body {
    background: #0A0706;
    color: #FAF7F2;
    font-family: var(--bio-fonte);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- Camadas de fundo ---------- */

.bio-fundo {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bio-fundo--gradiente {
    background:
        radial-gradient(circle at top, rgba(184, 80, 50, 0.22), transparent 55%),
        linear-gradient(180deg, #251A14 0%, #16100E 55%, #0A0706 100%);
}

.bio-fundo--solido {
    background-color: var(--bio-cor-fundo);
}

.bio-fundo--imagem {
    background-image: var(--bio-fundo-imagem);
    background-size: cover;
    background-position: center;
    filter: blur(var(--bio-blur));
    transform: scale(1.06);
}

.bio-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(28, 21, 18, var(--bio-overlay)) 0%,
        rgba(18, 13, 11, var(--bio-overlay)) 55%,
        rgba(10, 7, 6, 0.92) 100%
    );
}

/* ---------- Estrutura ---------- */

.bio-main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding: 2rem 1rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bio-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.bio-avatar-wrap {
    margin-bottom: 0.75rem;
}

.bio-avatar-ring {
    width: 7rem;
    height: 7rem;
    padding: 3px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #b85032, #c89238 55%, #f5efeb);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.bio-avatar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    object-fit: cover;
    background: #201B18;
}

.bio-avatar--inicial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #c89238;
}

.bio-titulo {
    margin: 0.25rem 0 0;
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #FAF7F2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.bio-selo {
    color: #c89238;
    font-size: 0.9rem;
}

.bio-bio {
    margin: 0.4rem 0 0;
    max-width: 20rem;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #EBE3D5;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Social bar ---------- */

.bio-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1rem;
}

.bio-social-icon {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #EBE3D5;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bio-social-icon:hover,
.bio-social-icon:focus-visible {
    background: var(--bio-cor-botao);
    color: #ffffff;
    transform: translateY(-1px);
}

.bio-social-icon:focus-visible,
.bio-banner:focus-visible,
.bio-produto:focus-visible {
    outline: 2px solid #c89238;
    outline-offset: 2px;
}

/* ---------- Lista e botões ---------- */

.bio-lista {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bio-btn {
    position: relative;
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bio-btn:active {
    transform: scale(0.985);
}

.bio-btn:focus-visible {
    outline: 2px solid #c89238;
    outline-offset: 2px;
}

.bio-btn--arredondado {
    border-radius: 1rem;
}

.bio-btn--pilula {
    border-radius: 9999px;
}

.bio-btn--retangular {
    border-radius: 0;
}

.bio-btn--solido {
    background: var(--bio-cor-botao);
    color: var(--bio-cor-texto);
    border-color: rgba(200, 146, 56, 0.3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.bio-btn--outline {
    background: transparent;
    border: 2px solid var(--bio-cor-botao);
    color: var(--bio-cor-texto);
}

.bio-btn--sombra {
    background: rgba(32, 27, 24, 0.92);
    color: var(--bio-cor-texto);
    border-color: #382F2A;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.bio-btn--glass,
.bio-glass {
    background: rgba(255, 255, 255, 0.08);
    color: var(--bio-cor-texto);
    border-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bio-btn--destaque {
    box-shadow: 0 0 0 2px #c89238, 0 12px 30px rgba(0, 0, 0, 0.45);
}

.bio-btn-icone {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
}

.bio-btn--outline .bio-btn-icone {
    background: rgba(184, 80, 50, 0.16);
    border-color: rgba(184, 80, 50, 0.35);
}

.bio-btn-conteudo {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.bio-btn-texto {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bio-btn-sub {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    line-height: 1.35;
    opacity: 0.82;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bio-btn-seta {
    flex: 0 0 auto;
    font-size: 0.7rem;
    opacity: 0.75;
}

.bio-btn-base {
    min-height: 52px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Divisor ---------- */

.bio-divisor {
    padding: 0.75rem 0 0.15rem;
    text-align: center;
}

.bio-divisor-texto {
    display: inline-block;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    background: rgba(56, 36, 23, 0.8);
    border: 1px solid rgba(200, 146, 56, 0.3);
    color: #c89238;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Banner ---------- */

.bio-banner {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.bio-banner:hover {
    transform: translateY(-2px);
}

.bio-banner-img {
    display: block;
    width: 100%;
    height: 9rem;
    object-fit: cover;
}

.bio-banner-conteudo {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem;
    background: rgba(32, 27, 24, 0.95);
    text-align: center;
    backdrop-filter: blur(8px);
}

.bio-banner-titulo {
    font-family: 'Fraunces', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #FAF7F2;
}

.bio-banner-sub {
    font-size: 0.75rem;
    color: #EBE3D5;
}

/* ---------- Estado vazio ---------- */

.bio-vazio {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.bio-vazio-texto {
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
    color: #D8CDC1;
}

/* ---------- Vitrine de destaques ---------- */

.bio-destaques {
    width: 100%;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bio-destaques-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.bio-destaques-titulo {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #FAF7F2;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.bio-destaques-titulo i {
    color: #c89238;
    font-size: 0.75rem;
}

.bio-destaques-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: #c89238;
    text-decoration: none;
    white-space: nowrap;
}

.bio-destaques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.625rem;
}

.bio-produto {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.625rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    color: #FAF7F2;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bio-produto:hover {
    border-color: rgba(200, 146, 56, 0.6);
    transform: translateY(-1px);
}

.bio-produto-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 6rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #201B18;
}

.bio-produto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bio-produto:hover .bio-produto-img {
    transform: scale(1.05);
}

.bio-produto-sem-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(200, 146, 56, 0.4);
}

.bio-produto-preco {
    position: absolute;
    right: 0.375rem;
    bottom: 0.375rem;
    padding: 0.15rem 0.5rem;
    border-radius: 0.375rem;
    background: rgba(32, 27, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c89238;
    font-size: 0.65rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.bio-produto-nome {
    font-size: 0.78rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bio-produto-cta {
    font-size: 0.65rem;
    color: #D8CDC1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Footer ---------- */

.bio-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: #A89C8F;
}

.bio-footer p {
    margin: 0;
}

.bio-pixel {
    display: none;
    width: 1px;
    height: 1px;
}

/* ---------- Micro-animações do Spotlight ---------- */

@keyframes aika-pulse-subtle {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(226, 106, 44, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(226, 106, 44, 0);
    }
}

@keyframes aika-shake-subtle {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
}

@keyframes aika-glow-subtle {
    0%, 100% { box-shadow: 0 0 15px rgba(226, 106, 44, 0.3); }
    50% { box-shadow: 0 0 25px rgba(226, 106, 44, 0.7); }
}

.anim-spotlight-pulse {
    animation: aika-pulse-subtle 2.5s infinite ease-in-out;
}

.anim-spotlight-shake {
    animation: aika-shake-subtle 4s infinite ease-in-out;
}

.anim-spotlight-glow {
    animation: aika-glow-subtle 3s infinite ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .anim-spotlight-pulse,
    .anim-spotlight-shake,
    .anim-spotlight-glow {
        animation: none !important;
    }
}

@media (min-width: 480px) {
    .bio-main {
        padding: 2.5rem 1.25rem;
    }

    .bio-titulo {
        font-size: 1.75rem;
    }
}
