/* =========================================================
   CARTÃO DIGITAL PROFISSIONAL — ETAPA 1
   Tema base: Luxury
   ========================================================= */

:root {
    --bg-primary: #080808;
    --bg-secondary: #101010;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(212, 175, 55, 0.08);
    --text-primary: #f5f5f7;
    --text-secondary: rgba(245, 245, 247, 0.66);
    --text-muted: rgba(245, 245, 247, 0.38);
    --accent: #d4af37;
    --accent-soft: rgba(212, 175, 55, 0.24);
    --border: rgba(255, 255, 255, 0.13);
    --border-accent: rgba(212, 175, 55, 0.32);
    --radius-card: 22px;
    --radius-button: 12px;
    --max-width: 480px;
    --shadow-card: 0 30px 70px rgba(0, 0, 0, 0.58);
    --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08), transparent 34%),
        linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
a {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

.page-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 16px;
}

.profile-card {
    width: min(100%, var(--max-width));
    padding: 34px 22px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.045),
        transparent 35%,
        transparent 70%,
        rgba(212, 175, 55, 0.025)
    );
}

.profile-header,
.links-area,
.content-section,
.utility-actions,
.profile-footer {
    position: relative;
    z-index: 1;
}

.profile-header {
    margin-bottom: 28px;
}

.profile-image-wrap {
    display: inline-flex;
    padding: 3px;
    margin-bottom: 16px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.22);
}

.profile-image {
    display: block;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    background: #161616;
}

h1 {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 5vw, 1.8rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.profile-profession {
    margin-top: 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.profile-description {
    max-width: 390px;
    margin: 14px auto 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.links-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-link {
    min-height: 56px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-button);
    background: rgba(255, 255, 255, 0.015);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.btn-link:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: var(--surface-hover);
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.12);
}

.btn-link:focus-visible,
.utility-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn-primary {
    border-color: rgba(212, 175, 55, 0.64);
    animation: subtlePulse 2.8s infinite;
}

.btn-icon {
    color: var(--accent);
    font-size: 0.92rem;
}

.content-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.section-heading {
    margin-bottom: 14px;
}

.section-kicker {
    color: var(--accent);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.services-list,
.articles-list {
    display: grid;
    gap: 10px;
}

.service-item,
.article-item {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.service-item h3 {
    font-size: 0.92rem;
}

.service-item p,
.article-item p {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.article-item a {
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.article-item a:hover {
    color: var(--accent);
}


.social-section {
    margin-top: 22px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-link:hover {
    color: #fff;
    border-color: var(--accent-soft);
    background: rgba(212, 175, 55, 0.06);
}

.utility-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.utility-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.72rem;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.utility-button:hover {
    color: #fff;
    border-color: var(--accent-soft);
    background: rgba(212, 175, 55, 0.06);
}

.profile-footer {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.62rem;
    letter-spacing: 0.13em;
    line-height: 1.5;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 20;
    transform: translate(-50%, 18px);
    opacity: 0;
    pointer-events: none;
    max-width: calc(100% - 32px);
    padding: 10px 14px;
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    background: rgba(15, 15, 15, 0.94);
    color: #fff;
    font-size: 0.78rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.noscript-message {
    position: fixed;
    inset: 16px;
    z-index: 100;
    padding: 16px;
    border: 1px solid #c99b22;
    border-radius: 12px;
    background: #111;
    color: #fff;
}

/* Reduz animações para usuários que preferem menos movimento. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes subtlePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.22);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@media (max-width: 420px) {
    .page-shell {
        padding: 14px 10px;
    }

    .profile-card {
        padding: 28px 16px 20px;
        border-radius: 18px;
    }

    .btn-link {
        min-height: 54px;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .page-shell {
        padding: 40px 24px;
    }

    .profile-card {
        padding: 42px 30px 28px;
    }
}


/* =========================================================
   ETAPA 3 — links personalizados
   ========================================================= */

.custom-links-area {
    margin-top: 12px;
}

.custom-links-area .btn-link {
    margin-top: 0;
}

/* =========================================================
   ETAPA 4 — SISTEMA DE TEMAS
   Quatro identidades visuais selecionáveis pelo painel.
   ========================================================= */

body[data-theme="luxury"] {
    --bg-primary: #080808;
    --bg-secondary: #101010;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(212, 175, 55, 0.08);
    --text-primary: #f5f5f7;
    --text-secondary: rgba(245, 245, 247, 0.66);
    --text-muted: rgba(245, 245, 247, 0.38);
    --accent: #d4af37;
    --accent-soft: rgba(212, 175, 55, 0.24);
    --border: rgba(255, 255, 255, 0.13);
    --border-accent: rgba(212, 175, 55, 0.32);
    --radius-card: 22px;
    --radius-button: 12px;
    --shadow-card: 0 30px 70px rgba(0, 0, 0, 0.58);
    --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

body[data-theme="dark"] {
    --bg-primary: #05070b;
    --bg-secondary: #10141d;
    --surface: rgba(20, 27, 39, 0.82);
    --surface-hover: rgba(96, 165, 250, 0.10);
    --text-primary: #f8fafc;
    --text-secondary: rgba(226, 232, 240, 0.70);
    --text-muted: rgba(226, 232, 240, 0.42);
    --accent: #60a5fa;
    --accent-soft: rgba(96, 165, 250, 0.22);
    --border: rgba(148, 163, 184, 0.18);
    --border-accent: rgba(96, 165, 250, 0.38);
    --radius-card: 20px;
    --radius-button: 10px;
    --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.62);
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Inter, ui-sans-serif, system-ui, sans-serif;
}

body[data-theme="clean"] {
    --bg-primary: #f4f7fb;
    --bg-secondary: #ffffff;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-hover: rgba(37, 99, 235, 0.06);
    --text-primary: #172033;
    --text-secondary: #536176;
    --text-muted: #8b96a8;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.12);
    --border: rgba(15, 23, 42, 0.10);
    --border-accent: rgba(37, 99, 235, 0.20);
    --radius-card: 18px;
    --radius-button: 10px;
    --shadow-card: 0 24px 60px rgba(30, 41, 59, 0.14);
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Inter, ui-sans-serif, system-ui, sans-serif;
}

body[data-theme="business"] {
    --bg-primary: #07111f;
    --bg-secondary: #10253d;
    --surface: rgba(9, 24, 42, 0.90);
    --surface-hover: rgba(45, 212, 191, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: rgba(226, 232, 240, 0.72);
    --text-muted: rgba(226, 232, 240, 0.42);
    --accent: #2dd4bf;
    --accent-soft: rgba(45, 212, 191, 0.20);
    --border: rgba(148, 163, 184, 0.18);
    --border-accent: rgba(45, 212, 191, 0.34);
    --radius-card: 14px;
    --radius-button: 8px;
    --shadow-card: 0 28px 70px rgba(0, 0, 0, 0.46);
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Inter, ui-sans-serif, system-ui, sans-serif;
}

body[data-theme="luxury"] {
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08), transparent 34%),
        linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
}

body[data-theme="dark"] {
    background:
        radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.10), transparent 34%),
        linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
}

body[data-theme="clean"] {
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08), transparent 36%),
        linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
}

body[data-theme="business"] {
    background:
        radial-gradient(circle at 50% 0%, rgba(45, 212, 191, 0.10), transparent 34%),
        linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
}

body[data-theme="clean"] .profile-card {
    border-color: var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body[data-theme="clean"] h1 {
    color: var(--text-primary);
    letter-spacing: 0.01em;
    font-weight: 700;
}

body[data-theme="clean"] .profile-image-wrap {
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.06);
}

body[data-theme="clean"] .profile-card::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.025), transparent 45%);
}

body[data-theme="dark"] h1,
body[data-theme="business"] h1 {
    letter-spacing: 0.02em;
}

body[data-theme="dark"] .profile-card::before,
body[data-theme="business"] .profile-card::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 42%, rgba(255, 255, 255, 0.01));
}

body[data-theme="business"] .profile-card {
    border-width: 1px;
}

body[data-theme="business"] .profile-profession {
    letter-spacing: 0.08em;
}

body[data-theme="business"] .profile-image-wrap {
    border-radius: 18px;
}

body[data-theme="business"] .profile-image {
    border-radius: 14px;
}

/* =========================================================
   ETAPA 5 — CONEXÕES SOCIAIS + QR CODE
   ========================================================= */
.social-heading {
    text-align: center;
    margin-bottom: 12px;
}

.social-link {
    gap: 6px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid var(--accent-soft);
    font-size: 0.58rem;
    letter-spacing: 0;
}

.qr-section {
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

.qr-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,0.025);
    text-align: center;
}

.qr-copy h2 {
    margin-top: 5px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.02rem;
}

.qr-copy p {
    margin: 7px auto 14px;
    max-width: 310px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
}

.qr-code {
    width: 180px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
}

.qr-code img,
.qr-code canvas {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.qr-fallback {
    color: #111;
    font-weight: 700;
    text-decoration: underline;
}

.qr-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

body[data-theme="clean"] .qr-card,
body[data-theme="business"] .qr-card {
    background: rgba(255,255,255,0.55);
}
