/* ============================================================
   L.G. Esthétique — Link-in-Bio
   Mobile-first, brand system, accessibile
   ============================================================ */

:root {
    --deep-brown: #412D22;
    --beige-sand: #BFAFA0;
    --warm-white: #F5F0EB;
    --gold: #8B6F47;
    --gold-light: #a8905f;
    --card-shadow: 0 2px 16px rgba(65, 45, 34, 0.08);
}

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

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

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--warm-white);
    color: var(--deep-brown);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 40px;
    -webkit-font-smoothing: antialiased;
}

/* --- Header / Profilo --- */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 36px;
    padding-bottom: 8px;
    width: 100%;
    max-width: 440px;
}

.profile__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(65, 45, 34, 0.12);
}

.profile__name {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--deep-brown);
    margin-top: 14px;
    letter-spacing: 0.02em;
}

.profile__tagline {
    font-size: 0.9rem;
    color: var(--gold);
    margin-top: 4px;
    text-align: center;
    line-height: 1.4;
}

/* --- Contenitore link --- */
.links {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* --- Singolo link / card --- */
.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    background-color: var(--beige-sand);
    border: 1.5px solid transparent;
    border-radius: 14px;
    text-decoration: none;
    color: var(--deep-brown);
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    position: relative;
}

.link-card:hover,
.link-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    border-color: var(--gold);
    outline: none;
}

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

/* CTA evidenziata (Deep Brown con testo bianco) */
.link-card--cta {
    background-color: var(--deep-brown);
    color: #fff;
    font-weight: 600;
    border-color: var(--deep-brown);
}

.link-card--cta:hover,
.link-card--cta:focus-visible {
    background-color: #5a3f30;
    border-color: var(--gold);
}

.link-card--cta .link-card__icon svg {
    stroke: #fff;
}

/* Icona nel link */
.link-card__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-card__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--deep-brown);
    stroke-width: 1.8;
    fill: none;
}

.link-card__label {
    flex: 1;
    line-height: 1.3;
}

.link-card__arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.4;
}

.link-card__arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* --- Footer / branding --- */
.footer {
    margin-top: 36px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--beige-sand);
    padding-bottom: 20px;
}

.footer a {
    color: var(--gold);
    text-decoration: none;
}

/* --- Banner consenso cookie (minimale) --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--deep-brown);
    color: var(--warm-white);
    padding: 14px 16px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 1000;
    flex-wrap: wrap;
    line-height: 1.4;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner button {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    font-weight: 600;
    flex-shrink: 0;
}

.cookie-banner__accept {
    background: var(--gold);
    color: #fff;
}

.cookie-banner__reject {
    background: transparent;
    color: var(--beige-sand);
    border: 1px solid var(--beige-sand);
}

/* --- Loading skeleton --- */
.link-card--skeleton {
    background: var(--beige-sand);
    opacity: 0.5;
    animation: pulse 1.2s ease-in-out infinite;
    min-height: 56px;
    border-radius: 14px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.3; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .link-card {
        transition: none;
    }
    .link-card--skeleton {
        animation: none;
        opacity: 0.4;
    }
}

/* --- Landscape / tablet --- */
@media (min-width: 480px) {
    .profile__photo {
        width: 110px;
        height: 110px;
    }
    .profile__name {
        font-size: 1.85rem;
    }
}
