/* ----------------------------------------------------
   ESTILO FAVELA - LINK NA BIO
   Premium Streetwear Design System
---------------------------------------------------- */

/* Reset & Base Rules */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font-primary: 'Outfit', sans-serif;
    
    /* Premium Color Palette */
    --color-bg-dark: #0a0a0c;
    --color-text-white: #ffffff;
    --color-text-gray: #a0a0a8;
    --color-text-muted: #6e6e77;
    
    /* Brand Accents */
    --color-whatsapp: #25D366;
    --color-whatsapp-glow: rgba(37, 211, 102, 0.15);
    --color-instagram: #E1306C;
    --color-instagram-glow: rgba(225, 48, 108, 0.15);
    
    /* Glassmorphism Defaults */
    --glass-bg: rgba(10, 10, 12, 0.78);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.6);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 20px 20px;
    -webkit-font-smoothing: antialiased;
}

/* Background image & Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('BG.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Cobertura leve para manter o fundo perfeitamente nítido e visível */
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

/* Ambient soft breathing glow behind the card (around the overlay) */
.container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle,
        rgba(37, 211, 102, 0.18) 0%,
        rgba(225, 48, 108, 0.18) 35%,
        transparent 65%
    );
    filter: blur(55px);
    z-index: -1;
    pointer-events: none;
    animation: ambientGlow 6s infinite ease-in-out;
}

@keyframes ambientGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.95;
    }
}

/* Main Profile Card */
.profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 40px var(--glass-shadow);
    border-radius: 28px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Logo Section */
.logo-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #000000;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.logo-wrapper:hover .logo-circle {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 255, 255, 0.2);
}

.logo-wrapper:hover img {
    transform: rotate(3deg);
}

/* Active Online Indicator Dot */
.online-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background-color: var(--color-whatsapp);
    border: 3px solid #0f0f13;
    border-radius: 50%;
}

/* Profile Typography */
#store-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}



/* Online Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-whatsapp);
    margin-bottom: 20px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--color-whatsapp);
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.bio {
    font-size: 14px;
    color: var(--color-text-gray);
    line-height: 1.6;
    margin-bottom: 28px;
    font-weight: 400;
    padding: 0 10px;
}

.bio strong {
    color: var(--color-text-white);
    font-weight: 600;
}

/* Links Layout */
.links-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

/* Glass Link Items */
.link-item {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-white);
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    
    /* Conter animações dentro do botão (especial para Shimmer e Ripple) */
    overflow: hidden;
    
    /* Correções de renderização e recorte de bordas para Safari no celular */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

/* Glow Accent Behind Buttons on Hover (Dynamic Spotlight) */
.link-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: radial-gradient(
        120px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
        rgba(255, 255, 255, 0.08),
        transparent 80%
    );
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.link-item:hover::before {
    opacity: 1;
}

.whatsapp-btn::before {
    background: radial-gradient(
        120px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
        rgba(37, 211, 102, 0.15),
        transparent 80%
    ) !important;
}

.instagram-btn::before {
    background: radial-gradient(
        120px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
        rgba(225, 48, 108, 0.15),
        transparent 80%
    ) !important;
}

.link-icon {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    color: var(--color-text-white);
    transition: var(--transition-smooth);
}

.link-icon svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

.link-text {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.link-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: var(--transition-smooth);
}

.link-subtitle {
    font-size: 12px;
    color: var(--color-text-gray);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-tag {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #0a0a0c;
    transition: var(--transition-smooth);
}

/* Tactile Click Ripple Wave Effect */
.ripple-wave {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.65s ease-out;
    background-color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 3;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Shimmer Shine Sweep (Automatic Mobile Animation) */
.link-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 30%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-25deg);
    z-index: 1;
    pointer-events: none;
}

#link-whatsapp-1::after {
    animation: shineSweep 4.5s infinite ease-in-out;
    animation-delay: 0s;
}

#link-whatsapp-2::after {
    animation: shineSweep 4.5s infinite ease-in-out;
    animation-delay: 1.5s;
}

#link-instagram::after {
    animation: shineSweep 4.5s infinite ease-in-out;
    animation-delay: 3s;
}

@keyframes shineSweep {
    0% {
        left: -50%;
    }
    30% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* Button Customizations */

/* WhatsApp Button Specifics */
.whatsapp-btn:hover {
    transform: translateY(-3px);
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 8px 24px var(--color-whatsapp-glow), 0 0 0 1px rgba(37, 211, 102, 0.1);
}

.whatsapp-btn:hover .link-icon {
    background: var(--color-whatsapp);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover .action-tag {
    background: var(--color-whatsapp);
    color: #ffffff;
}

.whatsapp-btn .link-icon {
    color: var(--color-whatsapp);
}

/* Instagram Button Specifics */
.instagram-btn:hover {
    transform: translateY(-3px);
    background: rgba(225, 48, 108, 0.08);
    border-color: rgba(225, 48, 108, 0.4);
    box-shadow: 0 8px 24px var(--color-instagram-glow), 0 0 0 1px rgba(225, 48, 108, 0.1);
}

.instagram-btn:hover .link-icon {
    background: linear-gradient(45deg, #f9ed32 0%, #ee2a7b 50%, #002aff 100%);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(225, 48, 108, 0.3);
}

.instagram-btn:hover .action-tag {
    background: var(--color-instagram);
    color: #ffffff;
}

.instagram-btn .link-icon {
    color: var(--color-instagram);
}

/* Active Pressed States */
.link-item:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Compact Footer Info */
.compact-footer {
    width: 100%;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Entry Animations */
.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

/* Responsive adjustments */
@media (max-width: 480px) {
    body {
        padding: 12px;
        align-items: center;
    }
    
    .profile-card {
        padding: 20px 16px;
        border-radius: 22px;
    }
    
    .logo-circle {
        width: 80px;
        height: 80px;
    }
    
    #store-name {
        font-size: 1.4rem;
    }
    
    .logo-wrapper {
        margin-bottom: 14px;
    }
    
    .links-grid {
        gap: 12px;
        margin-bottom: 0;
    }
    
    .link-item {
        padding: 12px 14px;
    }
    
    .link-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        margin-right: 10px;
    }
    
    .link-title {
        font-size: 13px;
    }
    
    .action-tag {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .bio {
        font-size: 12px;
        margin-bottom: 16px;
    }
}
