/* ========================================
   BASE STYLES & DESIGN SYSTEM
   Shared across all pages - uses Tailwind utilities + custom tokens
   ======================================== */

/* ========================================
   1. DESIGN TOKENS (CSS Variables)
   ======================================== */
:root {
    /* Colors */
    --mv-bg-dark: #0a0a0a;
    --mv-text-primary: #e5e7eb;
    --mv-text-secondary: #b3b3b3;
    --mv-text-muted: #9ca3af;
    --mv-accent-pink: #ff69b4;
    --mv-accent-gold: #ffd700;
    --mv-accent-yellow: #fbbf24;
    
    /* Glassmorphism */
    --mv-glass-bg: rgba(255, 255, 255, 0.05);
    --mv-glass-bg-hover: rgba(255, 255, 255, 0.08);
    --mv-glass-border: rgba(255, 255, 255, 0.1);
    --mv-glass-border-hover: rgba(255, 105, 180, 0.3);
    
    /* Spacing & Layout */
    --mv-border-radius: 8px;
    --mv-border-radius-lg: 12px;
    --mv-border-radius-xl: 16px;
}

/* ========================================
   2. BASE TYPOGRAPHY & RESETS
   ======================================== */
body {
    background-color: var(--mv-bg-dark);
    color: var(--mv-text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

.font-serif,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* ========================================
   3. SHARED UTILITY CLASSES
   ======================================== */

/* Gradient Text Effect */
.text-gradient {
    background: linear-gradient(90deg, var(--mv-accent-pink), var(--mv-accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Effect */
.glassmorphism {
    background: var(--mv-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--mv-glass-border);
}

/* ========================================
   4. SHARED LAYOUT COMPONENTS
   ======================================== */

/* Page Header Section - used on all content pages */
.mv-page-header {
    text-align: center;
    /* Padding provided by parent <main> */
}

.mv-page-header h1 {
    font-size: 2.25rem;
    font-weight: bold;
    /* text-gradient class applied in HTML */
}

@media (min-width: 768px) {
    .mv-page-header h1 {
        font-size: 3rem;
    }
}

.mv-page-header p {
    color: var(--mv-text-muted);
    font-size: 1.125rem;
    line-height: 1.75;
}

/* ========================================
   SECTION SPACING (Global Design System)
   ======================================== */

/* Main content container with generous section spacing */
.mv-content-main {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 640px) {
    .mv-content-main {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .mv-content-main {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Section spacing - generous spacing between sections */
.mv-section {
    margin-bottom: 6rem; /* 96px - matches space-y-24 from start page */
}

@media (min-width: 768px) {
    .mv-section {
        margin-bottom: 6rem;
    }
}

/* Section heading spacing */
.mv-section h2 {
    margin-bottom: 1rem; /* 16px */
}

/* Section intro paragraph spacing */
.mv-section-intro {
    margin-bottom: 3rem; /* 48px - matches mb-12 from start page */
    max-width: 48rem; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
}

/* Card Base - shared glassmorphism card */
.mv-card {
    background: var(--mv-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--mv-glass-border);
    border-radius: var(--mv-border-radius);
    transition: all 0.3s ease;
}

.mv-card:hover {
    background: var(--mv-glass-bg-hover);
    border-color: var(--mv-glass-border-hover);
}

/* ========================================
   5. ANIMATIONS & EFFECTS
   ======================================== */

/* Aurora Background Animation */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at top, rgba(255, 105, 180, 0.1), transparent 60%),
                radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.1), transparent 60%);
    animation: aurora 20s infinite alternate;
}

@keyframes aurora {
    from {
        transform: rotate(0deg) scale(1.5);
    }
    to {
        transform: rotate(360deg) scale(2);
    }
}

/* Fade-In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card Glow on Hover */
.card-glow-container {
    position: relative;
    overflow: hidden;
}

.card-glow-container:before {
    content: '';
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-image: conic-gradient(transparent, rgba(255, 105, 180, 0.5), transparent 30%);
    animation: rotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card-glow-container:hover:before {
    opacity: 1;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mv-accent-pink), var(--mv-accent-gold));
    width: 0%;
    z-index: 100;
    transition: width 0.1s ease-out;
}

/* ========================================
   6. NAVIGATION (Shared across all pages)
   ======================================== */
#navbar {
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Mobile Menu */
#mobile-menu {
    background-color: rgba(0, 0, 0, 0.5);
}

#mobile-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #d1d5db;
    transition: background-color 0.3s ease;
}

#mobile-menu a:hover {
    background-color: #1f2937;
}

/* ========================================
   7. TOOLTIP
   ======================================== */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(10, 10, 10, 0.9);
    color: #fff;
    text-align: center;
    border-radius: var(--mv-border-radius);
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid rgba(255, 105, 180, 0.5);
    font-size: 0.8rem;
    line-height: 1.2;
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(255, 105, 180, 0.5) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ========================================
   8. BUTTONS
   ======================================== */
.btn {
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: var(--mv-border-radius);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--mv-accent-pink);
    color: white;
    box-shadow: 0 0 1rem rgba(255, 105, 180, 0.2);
}

.btn-primary:hover {
    background-color: #ff4488;
    transform: scale(1.05);
    box-shadow: 0 0 2rem rgba(255, 105, 180, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* ========================================
   9. LINKS
   ======================================== */
a {
    transition: color 0.3s ease;
    position: relative;
}

a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--mv-accent-pink), var(--mv-accent-gold));
    transition: width 0.3s ease;
}

a:not(.btn):hover::after {
    width: 100%;
}

/* ========================================
   10. FOOTER
   ======================================== */
footer {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

footer a {
    color: var(--mv-text-secondary);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--mv-accent-pink);
}

/* ========================================
   11. RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 44px;
    }

    button {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* ========================================
   12. ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   13. FRONT PAGE SPECIFIC (Hero)
   ======================================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* Modal Styles (used on front page) */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

.modal-content {
    text-align: center;
    position: relative;
    border: 1px solid rgba(236, 72, 153, 0.5);
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: white;
}

