/*
    Vecchia Milano — Link in Bio / QR Landing
    Mobile-first, premium, alinhado à identidade da marca
*/

:root {
    --color-bg-dark: #0a0c10;
    --color-navy: #131A26;
    --color-charcoal: #1d2230;
    --color-text-light: #f4f4f4;
    --color-text-muted: #a8a8b0;
    /* Pantone 644 C — azul da identidade Vecchia Milano */
    --color-accent-gold: #9BB8D3;
    --color-accent-gold-bright: #B7CEE2;
    --color-accent-gold-hover: #7A9CB8;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius-card: 18px;
    --radius-button: 14px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Wrapper com background elegante */
.link-wrapper {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    overflow: hidden;
}

.link-backdrop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(155, 184, 211, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(19, 26, 38, 0.8) 0%, transparent 60%),
        linear-gradient(180deg, #0a0c10 0%, #131A26 100%);
    z-index: -1;
}

.link-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(155, 184, 211, 0.02) 0, rgba(155, 184, 211, 0.02) 1px, transparent 1px, transparent 14px);
    opacity: 0.6;
    pointer-events: none;
}

/* Card principal */
.link-card {
    width: 100%;
    max-width: 440px;
    padding: 44px 28px 28px;
    background: linear-gradient(180deg, rgba(29, 34, 48, 0.6) 0%, rgba(19, 26, 38, 0.75) 100%);
    border: 1px solid rgba(155, 184, 211, 0.2);
    border-radius: var(--radius-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: fadeInUp 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header da marca */
.brand-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    width: 130px;
    max-width: 50%;
    margin: 0 auto 18px;
    filter: drop-shadow(0 4px 20px rgba(155, 184, 211, 0.15));
}

.brand-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px auto 18px;
    max-width: 200px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(155, 184, 211, 0.5), transparent);
}

.divider-icon {
    color: var(--color-accent-gold);
    font-size: 0.7rem;
    opacity: 0.8;
}

.brand-greeting {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.brand-tagline {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.3px;
}

/* Lista de botões */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(155, 184, 211, 0.25);
    border-radius: var(--radius-button);
    color: var(--color-text-light);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.link-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(155, 184, 211, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.link-button:hover,
.link-button:active {
    border-color: var(--color-accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(155, 184, 211, 0.15);
}

.link-button:hover::before,
.link-button:active::before {
    opacity: 1;
}

.link-button:active {
    transform: translateY(0);
}

.link-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-hover) 100%);
    border-radius: 12px;
    color: var(--color-bg-dark);
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(155, 184, 211, 0.25);
    position: relative;
    z-index: 1;
}

.link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.link-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 0.2px;
}

.link-sub {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.2px;
}

.link-arrow {
    flex-shrink: 0;
    color: var(--color-accent-gold);
    font-size: 0.85rem;
    opacity: 0.6;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

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

/* Variações de ícone por canal (fundo) */
.link-whatsapp .link-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.link-instagram .link-icon {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.3);
}

.link-site .link-icon {
    background: linear-gradient(135deg, var(--color-accent-gold-bright) 0%, var(--color-accent-gold-hover) 100%);
    color: var(--color-bg-dark);
}

/* Footer */
.link-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(155, 184, 211, 0.1);
}

.link-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 300;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
}

.link-address i {
    color: var(--color-accent-gold);
    font-size: 0.9rem;
}

.link-address:hover,
.link-address:active {
    color: var(--color-text-light);
    background: rgba(155, 184, 211, 0.06);
}

.link-copy {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-weight: 300;
    letter-spacing: 0.3px;
    opacity: 0.75;
    font-style: italic;
}

/* Telas muito pequenas (iPhone SE, etc.) */
@media (max-width: 360px) {
    .link-card {
        padding: 36px 20px 24px;
    }

    .link-button {
        padding: 16px 16px;
        gap: 12px;
    }

    .link-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .link-title {
        font-size: 1rem;
    }

    .link-sub {
        font-size: 0.75rem;
    }
}

/* Desktop */
@media (min-width: 640px) {
    .link-card {
        padding: 56px 40px 36px;
    }

    .brand-logo {
        width: 150px;
    }

    .link-button {
        padding: 20px 22px;
    }
}

/* Reduz motion para usuários com preferência */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
