/* MistyValeHQ.Space - Mystical Gaming Theme */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Cinzel:wght@400;600;700&display=swap');

/* CSS Variables - Mystical Theme */
:root {
    /* Mystical Color Palette */
    --primary-color: #7C3AED;        /* Deep Purple */
    --secondary-color: #A855F7;      /* Purple */
    --accent-color: #F59E0B;         /* Golden */
    --accent-secondary: #EC4899;     /* Pink */
    --background-color: #1F1B24;     /* Dark Purple */
    --surface-color: #2D1B35;        /* Dark Mystic */
    --surface-light: #FFFFFF;        /* White */
    --text-color: #F8FAFC;           /* Light Text */
    --text-dark: #1E293B;            /* Dark Text */
    --text-muted: #94A3B8;           /* Muted Text */
    --border-color: #4C1D95;         /* Purple Border */
    --shadow-color: rgba(124, 58, 237, 0.3);
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #EC4899 100%);
    --gradient-background: linear-gradient(135deg, #1F1B24 0%, #2D1B35 100%);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Cinzel', serif;
    
    /* Spacing & Layout */
    --max-width: 1200px;
    --border-radius: 20px;
    --border-radius-sm: 10px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Transitions */
    /* Make defaults snappier for hover feedback */
    --transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation Styles - Horizontal with Mystical Design */
.navbar {
    background: rgba(47, 27, 53, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 8px 32px var(--shadow-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    left: -10px;
    top: -5px;
    right: -10px;
    bottom: -5px;
    background: var(--gradient-accent);
    border-radius: var(--border-radius-sm);
    z-index: -1;
    opacity: 0.1;
}

.logo-icon {
    font-size: 2.2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px var(--shadow-color));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    margin: 0;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
    display: none;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: white;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--accent-color);
    cursor: pointer;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-cta {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

/* Hero Section - Mystical Design */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-background);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(245, 158, 11, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px var(--shadow-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 8px 24px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 36px var(--shadow-color);
}

/* Section Styles */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Game Section - 3 Row Layout */
.game-section {
    margin-top: var(--spacing-xl);
}

.game-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.game-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.game-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--accent-color);
    text-align: center;
}

.game-iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-md);
    background: var(--background-color);
}

.game-card p {
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

/* Features Section */
.features-section {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    border: 2px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--background-color);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 36px var(--shadow-color);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 8px 24px var(--shadow-color);
    color: white;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.feature-svg {
    width: 44px;
    height: 44px;
    color: white;
}

.feature-card:hover .feature-icon {
    transform: translateY(-6px) scale(1.03);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition: all 0s linear;
    }

    * {
        transition: none !important;
        animation: none !important;
    }

    .nav-link,
    .cta-button,
    .feature-card,
    .game-card,
    .nav-cta {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* About Section */
.about-section {
    background: var(--surface-light);
    color: var(--text-dark);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    margin: var(--spacing-xl) 0;
}

/* Strong contrast overrides for legal / disclaimer pages */
.about-section .feature-card,
.about-section .disclaimer-card,
.about-section .feature-card * {
    color: var(--text-dark) !important;
    opacity: 1 !important; /* override inline opacity if present */
}

.about-section .feature-card {
    background: #f8fafc; /* near white */
    border: 1px solid rgba(0,0,0,0.06);
}

.about-section .feature-card h2,
.about-section .feature-card h3,
.about-section .disclaimer-card h3 {
    color: var(--primary-color) !important;
}

.about-section a {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

.about-section .section-title {
    color: var(--text-dark);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section p {
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.review-card {
    background: var(--surface-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.review-text {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.review-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h4 {
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer - Unique Card-Based Layout */
.footer {
    background: var(--surface-color);
    border-top: 3px solid var(--border-color);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section {
    background: var(--background-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.footer-section h3 {
    font-family: var(--font-display);
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: var(--spacing-xs) 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    transform: translateX(5px);
}

.disclaimer-card {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    border: none !important;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.disclaimer-card h3 {
    color: white !important;
    margin-bottom: var(--spacing-md);
}

.disclaimer-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 27, 36, 0.95);
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-modal-content {
    background: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    max-width: 500px;
    margin: var(--spacing-md);
    border: 2px solid var(--border-color);
    text-align: center;
    box-shadow: 0 20px 50px var(--shadow-color);
}

.age-modal-content h2 {
    font-family: var(--font-display);
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.8rem;
}

.age-modal-content ul {
    text-align: left;
    margin: var(--spacing-md) 0;
    color: var(--text-muted);
}

.age-modal-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.age-confirm-btn,
.age-deny-btn {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.age-confirm-btn {
    background: var(--gradient-primary);
    color: white;
}

.age-confirm-btn:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
}

.age-deny-btn {
    background: #EF4444;
    color: white;
}

.age-deny-btn:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface-color);
        flex-direction: column;
        border-top: 1px solid var(--border-color);
        padding: var(--spacing-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Make navbar more compact on mobile */
    .nav-container {
        padding: 0.4rem var(--spacing-sm);
    }

    .logo {
        font-size: 1.15rem;
        gap: 0.4rem;
    }

    .logo-icon {
        font-size: 1.6rem;
    }

    .nav-actions {
        display: none; /* hide the CTA on small screens to save space */
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.35rem 0.5rem;
        text-align: left;
    }

    .nav-menu {
        gap: 0.5rem;
        padding: 0.6rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .game-iframe {
        height: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .age-modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .game-iframe {
        height: 250px;
    }

    .age-modal-content {
        padding: var(--spacing-lg);
        margin: var(--spacing-sm);
    }
}