/* ========================================
   O Faro de Promo - Link Tree (Dark Theme)
   Paleta: Caçada de Ofertas - Dark Mode
   ======================================== */

:root {
    /* Cores da paleta (Modo Escuro) */
    --orange-alert: #FF6B00;
    --navy-deep: #14213D;
    --mustard-gold: #FCA311;
    --red-discount: #E63946;

    /* Cores ajustadas para dark */
    --bg-main: #0a1120;
    /* Navy muito escuro para fundo */
    --bg-gradient: #14213D;
    /* Navy original para gradiente */
    --card-bg: rgba(20, 33, 61, 0.7);
    /* Transparente navy */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B8C4;
    --decoration-opacity: 0.1;

    /* Tipografia */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-gradient) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    color: var(--text-primary);
}

/* ========================================
   Container Principal
   ======================================== */

.container {
    position: relative;
    width: 100%;
    max-width: 420px;
}

/* Decorações de fundo */
.bg-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--orange-alert) 0%, transparent 70%);
    opacity: 0.08;
    /* Mais sutil no dark */
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.bg-decoration-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--mustard-gold) 0%, transparent 70%);
    opacity: 0.08;
    /* Mais sutil no dark */
    border-radius: 50%;
    bottom: -50px;
    left: -80px;
    z-index: 0;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ========================================
   Card Principal
   ======================================== */

.card {
    position: relative;
    z-index: 1;
    background: rgba(30, 40, 70, 0.6);
    /* Mais escuro */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

/* ========================================
   Avatar
   ======================================== */

.avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-alert), var(--mustard-gold), var(--orange-alert));
    background-size: 200% 200%;
    animation: gradient-spin 3s ease infinite;
    opacity: 0.9;
}

@keyframes gradient-spin {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.avatar-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-deep) 0%, #1d3057 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-main);
    /* Borda escura para integrar */
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   Perfil Info
   ======================================== */

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* ========================================
   Badge
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--red-discount), #ba1b2a);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 4px 20px rgba(230, 57, 70, 0.5);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ========================================
   Links / Botões
   ======================================== */

.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Borda sutil */
}

.link-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-btn:hover::before {
    opacity: 1;
}

.link-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    /* Sombra mais forte no dark */
}

.link-btn:active {
    transform: translateY(-1px) scale(1.01);
}

/* WhatsApp Button */
.link-btn.whatsapp {
    background: linear-gradient(135deg, #1f944a 0%, #0d6359 100%);
    /* Verde mais escuro e profundo */
    box-shadow: 0 6px 20px rgba(31, 148, 74, 0.25);
}

.link-btn.whatsapp:hover {
    box-shadow: 0 12px 30px rgba(31, 148, 74, 0.35);
    background: linear-gradient(135deg, #25b359 0%, #107a6d 100%);
    /* Clareia levemente no hover */
}

/* Telegram Button */
.link-btn.telegram {
    background: linear-gradient(135deg, #006da3 0%, #004d80 100%);
    /* Azul mais profundo */
    box-shadow: 0 6px 20px rgba(0, 109, 163, 0.25);
}

.link-btn.telegram:hover {
    box-shadow: 0 12px 30px rgba(0, 109, 163, 0.35);
    background: linear-gradient(135deg, #0081c2 0%, #005d99 100%);
}

/* Instagram Button */
.link-btn.instagram {
    background: linear-gradient(45deg, #c92f58 0%, #a61c40 100%);
    /* Versão mais escura/profunda */
    box-shadow: 0 6px 20px rgba(200, 40, 70, 0.25);
}

.link-btn.instagram:hover {
    background: linear-gradient(45deg, #e1306c 0%, #c13584 100%);
    box-shadow: 0 12px 30px rgba(220, 39, 67, 0.35);
}

/* TikTok Button */
.link-btn.tiktok {
    background: linear-gradient(135deg, #111111 0%, #222222 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.link-btn.tiktok:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Link Icon */
.link-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.2);
    /* Fundo escuro para ícone */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.link-icon svg {
    width: 24px;
    height: 24px;
}

/* Link Content */
.link-content {
    flex: 1;
    text-align: left;
}

.link-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.link-subtitle {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* Link Arrow */
.link-arrow {
    font-size: 1.3rem;
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.link-btn:hover .link-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    font-size: 0.85rem;
    color: #6d7d93;
    /* Cinza azulado */
}

/* ========================================
   Responsivo
   ======================================== */

@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .profile-bio {
        font-size: 0.9rem;
    }

    .link-btn {
        padding: 14px 16px;
        gap: 12px;
    }

    .link-icon {
        width: 40px;
        height: 40px;
    }

    .link-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}