/* ══════════════════════════════════════════════════════════════
   PornhubStars — Midnight Velvet Design System
   Core tokens, reset, typography, animations, utilities
   ══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    --midnight:     #0D0015;
    --velvet:       #1A0A2E;
    --plum:         #2D1B4E;
    --orchid:       #8B5CF6;
    --orchid-glow:  #A78BFA;
    --orchid-dim:   #6D3FC4;
    --rose:         #F43F8E;
    --rose-glow:    #FF6BA8;
    --blush:        #FBD5E5;
    --champagne:    #F5E6D3;
    --cream:        #FAF5FF;
    --mist:         #C4B5D9;
    --smoke:        #6B5B8D;
    --ember:        #EF4444;
    --sage:         #10B981;
    --amber:        #F59E0B;
    --border:       #3D2A5C;
    --border-light: #4E3870;

    --glass-bg:     rgba(26, 10, 46, 0.75);
    --glass-blur:   blur(16px);

    --shadow-xs:    0 1px 3px rgba(0,0,0,0.2);
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:    0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg:    0 16px 48px rgba(0,0,0,0.5);
    --shadow-orchid:0 0 20px rgba(139,92,246,0.25);
    --shadow-rose:  0 0 20px rgba(244,63,142,0.2);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition:    all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-out;

    --radius-sm:    8px;
    --radius-md:    12px;
    --radius-lg:    16px;
    --radius-xl:    24px;
    --radius-pill:  100px;
    --radius-round: 50%;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    --header-height: 72px;
    --announcement-height: 36px;
    --max-width: 1400px;
}

/* ─── CSS Reset ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--midnight);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul, ol { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    font-size: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--midnight); }
::-webkit-scrollbar-thumb { background: var(--plum); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orchid); }

/* ─── Selection ─── */
::selection { background: rgba(139,92,246,0.3); color: var(--cream); }

/* ─── Keyframe Animations ─── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseOrchid {
    0% { box-shadow: 0 0 0 0 rgba(139,92,246,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(139,92,246,0); }
    100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* ─── Scroll Animation Classes ─── */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

[data-animate="fade-in"] { transform: none; }
[data-animate="slide-left"] { transform: translateX(40px); }
[data-animate="slide-right"] { transform: translateX(-40px); }
[data-animate="scale-in"] { transform: scale(0.92); }

[data-animate].animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ─── Utility Classes ─── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section { padding: 80px 0; }
.section--sm { padding: 40px 0; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-orchid { color: var(--orchid); }
.text-rose { color: var(--rose); }
.text-mist { color: var(--mist); }
.text-smoke { color: var(--smoke); }
.text-sage { color: var(--sage); }
.text-champagne { color: var(--champagne); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-40 { gap: 40px; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.w-full { width: 100%; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cream) 0%, var(--orchid-glow) 50%, var(--rose) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.display-heading {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ─── Loading Spinner ─── */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--plum);
    border-top-color: var(--orchid);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* ─── Hidden State ─── */
.hidden { display: none !important; }
