/* ============================================================
   VIP-DS — Miss XV VIP Design System v1.0
   Shared CSS tokens, components, and utilities
   Import this FIRST in every VIP product
   S127 | 30-Mar-2026

   PRODUCTS:
   - VIP-INV (invitaciones)   → /vip-inv/
   - QR-VIP (album fotos)     → /qr-vip/
   - VIP-SP (seating planner) → /vip-seating-planner/
   - RSVP Dashboard           → /dashboard/

   USAGE:
   <link rel="stylesheet" href="/vip-shared/vip-ds.css">
   Then each product loads its own CSS after this.
   ============================================================ */

/* ==========================================================
   1. DESIGN TOKENS — Colors, fonts, spacing
   Each product can override these in its own :root
   ========================================================== */

:root {
    /* --- Brand Colors (Miss XV VIP signature) --- */
    --vip-gold: #C8A96E;
    --vip-gold-light: #e8d5b0;
    --vip-gold-dark: #a08540;
    --vip-gold-glow: rgba(200, 169, 110, 0.3);

    /* --- Neutral Dark (shared across all products) --- */
    --vip-bg: #0d0d18;
    --vip-bg-card: rgba(255, 255, 255, 0.03);
    --vip-bg-hover: rgba(255, 255, 255, 0.06);
    --vip-bg-glass: rgba(255, 255, 255, 0.04);
    --vip-bg-glass-strong: rgba(255, 255, 255, 0.08);

    /* --- Text --- */
    --vip-text: #f0e6d3;
    --vip-text-muted: #8a7e6a;
    --vip-text-bright: #ffffff;

    /* --- Borders --- */
    --vip-border: rgba(200, 169, 110, 0.12);
    --vip-border-strong: rgba(200, 169, 110, 0.25);

    /* --- Accent (CTA, interactive elements) --- */
    --vip-accent: #C8A96E;
    --vip-accent-hover: #e8d5b0;

    /* --- Status --- */
    --vip-success: #2ecc71;
    --vip-error: #e74c3c;
    --vip-warning: #f39c12;
    --vip-info: #3498db;

    /* --- Typography --- */
    --vip-font-heading: 'Playfair Display', Georgia, serif;
    --vip-font-body: 'DM Sans', 'Segoe UI', sans-serif;
    --vip-font-accent: 'Great Vibes', cursive;

    /* --- Spacing --- */
    --vip-space-xs: 4px;
    --vip-space-sm: 8px;
    --vip-space-md: 16px;
    --vip-space-lg: 24px;
    --vip-space-xl: 40px;
    --vip-space-2xl: 60px;

    /* --- Border Radius --- */
    --vip-radius-sm: 8px;
    --vip-radius-md: 12px;
    --vip-radius-lg: 18px;
    --vip-radius-xl: 24px;
    --vip-radius-pill: 50px;

    /* --- Shadows --- */
    --vip-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --vip-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --vip-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --vip-shadow-glow: 0 0 20px var(--vip-gold-glow);

    /* --- Transitions --- */
    --vip-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --vip-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --vip-duration-fast: 0.15s;
    --vip-duration: 0.3s;
    --vip-duration-slow: 0.5s;

    /* --- Content width --- */
    --vip-content-max: 580px;
    --vip-dashboard-max: 1200px;
}


/* ==========================================================
   2. BASE RESET (minimal, product CSS adds its own)
   ========================================================== */

.vip-ds *, .vip-ds *::before, .vip-ds *::after {
    box-sizing: border-box;
}

.vip-ds {
    font-family: var(--vip-font-body);
    color: var(--vip-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================
   3. TYPOGRAPHY
   ========================================================== */

.vip-ds h1, .vip-ds h2, .vip-ds h3, .vip-ds h4 {
    font-family: var(--vip-font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--vip-gold);
}

.vip-ds h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.vip-ds h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
.vip-ds h3 { font-size: clamp(1rem, 2.5vw, 1.3rem); }

.vip-ds .text-accent {
    font-family: var(--vip-font-accent);
    color: var(--vip-gold);
}

.vip-ds .text-muted { color: var(--vip-text-muted); }
.vip-ds .text-gold { color: var(--vip-gold); }
.vip-ds .text-white { color: var(--vip-text-bright); }
.vip-ds .text-center { text-align: center; }
.vip-ds .text-sm { font-size: 0.85rem; }
.vip-ds .text-xs { font-size: 0.75rem; }
.vip-ds .text-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vip-text-muted);
}


/* ==========================================================
   4. BUTTONS
   ========================================================== */

.vip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--vip-radius-pill);
    font-family: var(--vip-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--vip-duration) var(--vip-ease);
    text-decoration: none;
    line-height: 1.4;
}

.vip-btn-primary {
    background: var(--vip-gold);
    color: #0d0d18;
}
.vip-btn-primary:hover {
    background: var(--vip-gold-light);
    box-shadow: var(--vip-shadow-glow);
}

.vip-btn-outline {
    background: transparent;
    border: 1px solid var(--vip-border-strong);
    color: var(--vip-gold);
}
.vip-btn-outline:hover {
    border-color: var(--vip-gold);
    background: rgba(200, 169, 110, 0.06);
}

.vip-btn-ghost {
    background: transparent;
    border: none;
    color: var(--vip-gold);
    padding: 6px 12px;
}
.vip-btn-ghost:hover {
    background: var(--vip-bg-hover);
}

.vip-btn-danger {
    background: transparent;
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--vip-error);
}

.vip-btn-sm { padding: 6px 16px; font-size: 0.8rem; }
.vip-btn-lg { padding: 14px 32px; font-size: 1rem; }


/* ==========================================================
   5. INPUTS
   ========================================================== */

.vip-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--vip-bg-glass);
    border: 1px solid var(--vip-border);
    border-radius: var(--vip-radius-sm);
    color: var(--vip-text);
    font-family: var(--vip-font-body);
    font-size: 0.9rem;
    transition: border-color var(--vip-duration) var(--vip-ease);
}

.vip-input:focus {
    outline: none;
    border-color: var(--vip-gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.08);
}

.vip-input::placeholder {
    color: var(--vip-text-muted);
}

select.vip-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a7e6a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

textarea.vip-input {
    resize: vertical;
    min-height: 80px;
}


/* ==========================================================
   6. CARDS
   ========================================================== */

.vip-card {
    background: var(--vip-bg-card);
    border: 1px solid var(--vip-border);
    border-radius: var(--vip-radius-lg);
    padding: 20px;
    transition: border-color var(--vip-duration) var(--vip-ease);
}

.vip-card:hover {
    border-color: var(--vip-border-strong);
}

.vip-card-glass {
    background: var(--vip-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--vip-border);
    border-radius: var(--vip-radius-lg);
    padding: 20px;
}


/* ==========================================================
   7. BADGES
   ========================================================== */

.vip-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--vip-radius-pill);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vip-badge-success { background: rgba(46, 204, 113, 0.12); color: var(--vip-success); }
.vip-badge-warning { background: rgba(243, 156, 18, 0.12); color: var(--vip-warning); }
.vip-badge-error { background: rgba(231, 76, 60, 0.12); color: var(--vip-error); }
.vip-badge-gold { background: rgba(200, 169, 110, 0.12); color: var(--vip-gold); }
.vip-badge-muted { background: var(--vip-bg-card); color: var(--vip-text-muted); }


/* ==========================================================
   8. DIVIDERS
   ========================================================== */

.vip-divider {
    width: 80px;
    height: 2px;
    margin: var(--vip-space-md) auto;
    background: linear-gradient(90deg, transparent, var(--vip-gold), transparent);
    border: none;
}

.vip-divider-ornate {
    width: 180px;
    height: 30px;
    margin: var(--vip-space-md) auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-divider-ornate::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vip-gold-dark) 20%, var(--vip-gold) 50%, var(--vip-gold-dark) 80%, transparent);
}

.vip-divider-ornate::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--vip-gold);
    transform: rotate(45deg);
    position: relative;
    z-index: 1;
    box-shadow: -20px 0 0 -2px var(--vip-gold), 20px 0 0 -2px var(--vip-gold);
}


/* ==========================================================
   9. TOAST NOTIFICATIONS
   ========================================================== */

.vip-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: var(--vip-radius-md);
    font-size: 0.85rem;
    z-index: 9000;
    transition: all var(--vip-duration) var(--vip-ease);
    opacity: 0;
    transform: translateY(10px);
}

.vip-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.vip-toast-success { background: rgba(46, 204, 113, 0.15); border: 1px solid rgba(46, 204, 113, 0.3); color: var(--vip-success); }
.vip-toast-error { background: rgba(231, 76, 60, 0.15); border: 1px solid rgba(231, 76, 60, 0.3); color: var(--vip-error); }


/* ==========================================================
   10. UPLOAD ZONES
   ========================================================== */

.vip-upload {
    border: 2px dashed var(--vip-border);
    border-radius: var(--vip-radius-lg);
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all var(--vip-duration) var(--vip-ease);
    position: relative;
}

.vip-upload:hover {
    border-color: var(--vip-gold);
    background: rgba(200, 169, 110, 0.02);
}

.vip-upload input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}


/* ==========================================================
   11. HEADER / BRANDING BAR
   Shared header for cross-product navigation
   ========================================================== */

.vip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--vip-border);
}

.vip-header-logo {
    font-family: var(--vip-font-heading);
    font-size: 0.9rem;
    color: var(--vip-gold);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.vip-header-nav {
    display: flex;
    gap: 8px;
}

.vip-header-nav a {
    font-size: 0.78rem;
    color: var(--vip-text-muted);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: var(--vip-radius-pill);
    transition: all var(--vip-duration-fast);
}

.vip-header-nav a:hover,
.vip-header-nav a.active {
    color: var(--vip-gold);
    background: var(--vip-bg-hover);
}


/* ==========================================================
   12. FOOTER
   ========================================================== */

.vip-footer {
    text-align: center;
    padding: var(--vip-space-lg) var(--vip-space-md);
    color: var(--vip-text-muted);
    font-size: 0.78rem;
    border-top: 1px solid var(--vip-border);
}

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


/* ==========================================================
   13. STARDUST PARTICLES (shared animation)
   ========================================================== */

.vip-stardust {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.vip-stardust span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--vip-gold);
    border-radius: 50%;
    opacity: 0;
    animation: vip-star var(--vip-duration-slow) ease-in-out infinite alternate;
}

@keyframes vip-star {
    0% { opacity: 0; transform: scale(0.5) translateY(0); }
    100% { opacity: 0.6; transform: scale(1.2) translateY(-10px); }
}


/* ==========================================================
   14. UTILITY CLASSES
   ========================================================== */

.vip-hidden { display: none !important; }
.vip-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.vip-flex { display: flex; }
.vip-flex-center { display: flex; align-items: center; justify-content: center; }
.vip-flex-between { display: flex; align-items: center; justify-content: space-between; }
.vip-gap-sm { gap: var(--vip-space-sm); }
.vip-gap-md { gap: var(--vip-space-md); }
.vip-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--vip-space-md); }
@media (max-width: 600px) { .vip-grid-2 { grid-template-columns: 1fr; } }


/* ==========================================================
   15. GOOGLE FONTS PRECONNECT
   Add this to <head> of every product:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@400;500;600&family=Great+Vibes&display=swap" rel="stylesheet">
   ========================================================== */
