@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cosmic-purple: #6B2DD8;
    --nebula-blue: #2E5EFF;
    --star-cyan: #00D9FF;
    --deep-space: #0A0A1F;
    --galaxy-dark: #151530;
    --text-white: #FFFFFF;
    --text-gray: #B8B8D1;
    --card-bg: #1A1A3E;
    --accent-pink: #FF2E97;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(180deg, var(--deep-space) 0%, var(--galaxy-dark) 100%);
    color: var(--text-white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Starfield Background Effect */
body::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #eee, transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--deep-space) 100%);
    border-right: 2px solid var(--cosmic-purple);
    padding: 2rem 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 0 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.sidebar-logo a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2.5rem;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-weight: 500;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(107, 45, 216, 0.2);
    border-left-color: var(--cosmic-purple);
    color: var(--text-white);
}

/* Mobile Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--cosmic-purple);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-white);
    font-size: 1.5rem;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--nebula-blue) 100%);
    border-radius: 20px;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(107, 45, 216, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '✨';
    position: absolute;
    font-size: 10rem;
    right: -2rem;
    top: -2rem;
    opacity: 0.15;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 800px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

/* Alert Box */
.alert-box {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(107, 45, 216, 0.2) 100%);
    border: 2px solid var(--accent-pink);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.alert-box h3 {
    color: var(--star-cyan);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.alert-box ul {
    list-style: none;
    padding-left: 0;
}

.alert-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.alert-box li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-pink);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(107, 45, 216, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cosmic-purple) 0%, var(--nebula-blue) 100%);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--cosmic-purple);
    box-shadow: 0 15px 40px rgba(107, 45, 216, 0.4);
}

.feature-card h3 {
    color: var(--star-cyan);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Game Section */
.game-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    border: 2px solid var(--cosmic-purple);
}

.game-section h2 {
    color: var(--star-cyan);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.game-frame {
    width: 100%;
    max-width: 900px;
    height: 600px;
    border: none;
    border-radius: 12px;
    margin: 0 auto;
    display: block;
    background: var(--deep-space);
}

/* Content Section */
.content-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 3rem;
    margin: 3rem 0;
    border-left: 4px solid var(--cosmic-purple);
}

.content-section h2 {
    color: var(--star-cyan);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.content-section h3 {
    color: var(--nebula-blue);
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-section p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    color: var(--text-gray);
    margin: 0.5rem 0;
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--deep-space);
    border-top: 2px solid var(--cosmic-purple);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 900px;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--star-cyan);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin: 0.5rem 0;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--star-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(107, 45, 216, 0.3);
    color: var(--text-gray);
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 31, 0.97);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-modal.active {
    display: flex;
}

.age-modal-content {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--galaxy-dark) 100%);
    border: 2px solid var(--cosmic-purple);
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(107, 45, 216, 0.6);
}

.age-modal-content h2 {
    color: var(--star-cyan);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.age-modal-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-yes {
    background: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--nebula-blue) 100%);
    color: var(--text-white);
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 45, 216, 0.5);
}

.btn-no {
    background: var(--galaxy-dark);
    color: var(--text-gray);
    border: 1px solid var(--cosmic-purple);
}

.btn-no:hover {
    background: var(--deep-space);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 5rem 1.5rem 2rem;
    }

    .hero-section {
        padding: 2.5rem 1.5rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .game-frame {
        height: 400px;
    }

    .age-modal-content {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .age-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
