/* ============================================
   Diddy Party — Modern Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #0a0a12;
    --bg-2: #12121f;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f4f8;
    --muted: #9b9bb0;
    --pink: #ff3d8d;
    --violet: #8b5cf6;
    --gold: #fbbf24;
    --green: #34d399;
    --red: #f87171;
    --grad: linear-gradient(135deg, #ff3d8d 0%, #8b5cf6 100%);
    --grad-green: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --grad-red: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow-pink: 0 8px 30px rgba(255, 61, 141, 0.35);
    --shadow-glow-violet: 0 8px 30px rgba(139, 92, 246, 0.35);
    --radius: 20px;
    --radius-sm: 12px;
    --body-bg: var(--bg);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--body-bg);
    background-image:
        radial-gradient(ellipse 70% 50% at 15% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 45% at 90% 0%, rgba(255, 61, 141, 0.13), transparent 55%),
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(139, 92, 246, 0.08), transparent 60%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.6s ease;
}

h1, h2, h3, .display {
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a { color: var(--violet); }

/* ---------- Reusable surfaces ---------- */

.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn:active:not(:disabled) { transform: translateY(0); }

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--grad);
    box-shadow: var(--shadow-glow-pink);
}

.btn-green {
    background: var(--grad-green);
    box-shadow: 0 8px 30px rgba(52, 211, 153, 0.3);
}

.btn-red {
    background: var(--grad-red);
    box-shadow: 0 8px 30px rgba(248, 113, 113, 0.3);
}

.btn-ghost {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    box-shadow: none;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.88rem;
}

/* ---------- Inputs ---------- */

.field { margin-bottom: 18px; }

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder { color: #5d5d72; }

input:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

/* ---------- Badges / pills ---------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--muted);
    white-space: nowrap;
}

.pill strong { color: var(--text); font-weight: 700; }

/* ---------- Modal ---------- */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: var(--bg-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 32px;
    text-align: center;
    animation: modalAppear 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes modalAppear {
    from { transform: translateY(16px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal h2, .modal h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.modal p {
    color: var(--muted);
    margin-bottom: 22px;
}

.modal input { margin-bottom: 20px; }

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ---------- Messages ---------- */

.error-message {
    color: var(--red);
    margin-top: 10px;
    font-size: 0.9rem;
    display: none;
}

.success-message {
    color: var(--green);
    margin-top: 10px;
    font-size: 0.9rem;
    display: none;
}

.validation-message {
    font-size: 0.82rem;
    margin-top: 5px;
    display: none;
}

.validation-message.error { color: var(--red); display: block; }
.validation-message.success { color: var(--green); display: block; }

/* ---------- Decorative card fan ---------- */

.card-fan {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 190px;
    pointer-events: none;
    user-select: none;
}

.card-fan img {
    width: 110px;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
    position: absolute;
    bottom: 0;
    transform-origin: bottom center;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-fan img:nth-child(1) { transform: rotate(-22deg) translateX(-58px); }
.card-fan img:nth-child(2) { transform: rotate(-8deg) translateX(-20px) translateY(-10px); }
.card-fan img:nth-child(3) { transform: rotate(8deg) translateX(20px) translateY(-10px); z-index: 1; }
.card-fan img:nth-child(4) { transform: rotate(22deg) translateX(58px); }

@keyframes floaty {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
