/* ======================================================
   Só Encomenda Links - Estilos Globais e Temas
   ====================================================== */

:root {
    --primary: #4361ee;
    --primary-hover: #3a56d4;
    --secondary: #7209b7;
    --accent: #f72585;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 16px 50px;
    background-color: #0b0f19;
    color: #f8fafc;
    overflow-x: hidden;
}

/* ---------------- Temas ---------------- */
/* 1. Modern Dark (Padrão) */
body.theme-modern_dark {
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #090d16 65%, #05070c 100%);
    color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-text: #ffffff;
    --card-hover-bg: rgba(255, 255, 255, 0.14);
    --card-hover-border: rgba(99, 102, 241, 0.5);
    --bio-color: #94a3b8;
    --brand-badge-bg: rgba(255, 255, 255, 0.05);
}

/* 2. Só Encomenda Brand (Azul & Roxo) */
body.theme-soencomenda {
    background: linear-gradient(145deg, #1e1b4b 0%, #3a0ca3 45%, #4361ee 100%);
    color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.12);
    --card-border: rgba(255, 255, 255, 0.25);
    --card-text: #ffffff;
    --card-hover-bg: rgba(255, 255, 255, 0.24);
    --card-hover-border: #ffffff;
    --bio-color: #e2e8f0;
    --brand-badge-bg: rgba(255, 255, 255, 0.15);
}

/* 3. Sunset Vibrante (Magenta / Laranja) */
body.theme-sunset {
    background: linear-gradient(135deg, #3a0ca3 0%, #7209b7 40%, #f72585 85%, #ff7b00 100%);
    color: #ffffff;
    --card-bg: rgba(0, 0, 0, 0.25);
    --card-border: rgba(255, 255, 255, 0.2);
    --card-text: #ffffff;
    --card-hover-bg: rgba(0, 0, 0, 0.4);
    --card-hover-border: rgba(255, 255, 255, 0.6);
    --bio-color: #f1f5f9;
    --brand-badge-bg: rgba(0, 0, 0, 0.2);
}

/* 4. Ocean Blue */
body.theme-ocean {
    background: linear-gradient(135deg, #03045e 0%, #0077b6 60%, #00b4d8 100%);
    color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.12);
    --card-border: rgba(255, 255, 255, 0.25);
    --card-text: #ffffff;
    --card-hover-bg: rgba(255, 255, 255, 0.25);
    --card-hover-border: #90e0ef;
    --bio-color: #caf0f8;
    --brand-badge-bg: rgba(0, 0, 0, 0.2);
}

/* 5. Emerald Forest */
body.theme-emerald {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 60%, #059669 100%);
    color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
    --card-text: #ffffff;
    --card-hover-bg: rgba(255, 255, 255, 0.2);
    --card-hover-border: #6ee7b7;
    --bio-color: #d1fae5;
    --brand-badge-bg: rgba(0, 0, 0, 0.25);
}

/* 6. Minimal Clean (Claro) */
body.theme-minimal_white {
    background-color: #f8fafc;
    color: #0f172a;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-text: #1e293b;
    --card-hover-bg: #f1f5f9;
    --card-hover-border: #94a3b8;
    --bio-color: #64748b;
    --brand-badge-bg: #e2e8f0;
}

/* ---------------- Container Principal ---------------- */
.profile-container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Botão Flutuante de Compartilhar */
.share-float-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: inherit;
    z-index: 100;
}

.share-float-btn:hover {
    transform: scale(1.1);
    background: var(--card-hover-bg);
}

/* ---------------- Cabeçalho ---------------- */
.profile-header {
    text-align: center;
    margin-bottom: 28px;
    width: 100%;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--card-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    background-color: var(--card-bg);
}

.verified-badge {
    position: absolute;
    bottom: 2px;
    right: 4px;
    color: #38bdf8;
    background: #0f172a;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.profile-username {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.75;
    display: block;
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--bio-color);
    max-width: 460px;
    margin: 0 auto 18px;
    white-space: pre-line;
}

/* Barra de Redes Sociais */
.social-links-bar {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    font-size: 1.15rem;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.08);
    background: var(--card-hover-bg);
}

.social-icon.whatsapp:hover { color: #25d366; }
.social-icon.instagram:hover { color: #e1306c; }
.social-icon.tiktok:hover { color: #00f2fe; }
.social-icon.youtube:hover { color: #ff0000; }
.social-icon.email:hover { color: #38bdf8; }

/* ---------------- Lista de Links ---------------- */
.links-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--card-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.link-card:hover {
    transform: translateY(-2px) scale(1.01);
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.link-icon {
    width: 32px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.link-title {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.link-arrow {
    width: 24px;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: var(--transition);
    display: flex;
    justify-content: flex-end;
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Formatos de Botão */
.btn-style-rounded .link-card { border-radius: 14px; }
.btn-style-pill .link-card { border-radius: 50px; }
.btn-style-square .link-card { border-radius: 4px; }
.btn-style-glass .link-card {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* Destaque Pulsante */
.pulse-highlight {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(67, 97, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

/* ---------------- Rodapé do Perfil ---------------- */
.profile-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 15px;
    font-size: 0.85rem;
}

.badge-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 30px;
    background: var(--brand-badge-bg);
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.badge-brand:hover {
    transform: scale(1.05);
}

.cta-create {
    margin-top: 10px;
    opacity: 0.7;
}

.cta-create a {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
}

.cta-create a:hover {
    opacity: 1;
}

/* ---------------- Estado Vazio / 404 ---------------- */
.not-found-card {
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    backdrop-filter: blur(12px);
}

.not-found-card .empty-icon {
    font-size: 3.5rem;
    color: #6366f1;
    margin-bottom: 20px;
}

.not-found-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.not-found-card p {
    color: #94a3b8;
    margin-bottom: 25px;
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    transition: var(--transition);
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.6);
}

.brand-footer {
    margin-top: 30px;
    font-size: 0.85rem;
    opacity: 0.6;
}

.brand-footer a {
    color: inherit;
    text-decoration: none;
}

/* ---------------- Toast ---------------- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}
