@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Quicksand:wght@400;500;700&display=swap');

:root {
    --primary-purple: #9b59b6;
    --secondary-pink: #e91e63;
    --accent-teal: #26c6da;
    --dark-navy: #1a1a2e;
    --light-purple: #d4a5ff;
    --off-white: #f8f9fa;
    --soft-gray: #e8e8e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(to right, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary-purple) 0%, var(--secondary-pink) 100%);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    padding: 2rem 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    margin-bottom: 2rem;
}

.sidebar-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
}

.sidebar-logo:hover {
    color: var(--accent-teal);
    transition: color 0.3s ease;
}

.cat-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav a {
    display: block;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar nav a:hover {
    background: rgba(255,255,255,0.15);
    border-left-color: var(--accent-teal);
    padding-left: 2.5rem;
}

/* Mobile Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-purple);
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sidebar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-pink));
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(155, 89, 182, 0.3);
}

.hero-section h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(155, 89, 182, 0.2);
    border-color: var(--primary-purple);
}

.info-card h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-purple);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.info-card h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-pink);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
}

.info-card p {
    line-height: 1.8;
    color: #555;
}

.info-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.info-card li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #555;
}

/* Alert Boxes */
.alert-box {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    display: flex;
    align-items: start;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-box.purple {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(155, 89, 182, 0.05));
    border-left: 5px solid var(--primary-purple);
}

.alert-box.pink {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(233, 30, 99, 0.05));
    border-left: 5px solid var(--secondary-pink);
}

.alert-box.teal {
    background: linear-gradient(135deg, rgba(38, 198, 218, 0.15), rgba(38, 198, 218, 0.05));
    border-left: 5px solid var(--accent-teal);
}

.alert-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.alert-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 700;
}

.alert-content p {
    line-height: 1.7;
    color: #555;
}

/* Game Section */
.game-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.game-section h2 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    color: var(--primary-purple);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.game-section .subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.game-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 2rem;
}

.game-frame iframe {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
    background: var(--dark-navy);
    color: white;
    padding: 3rem 2rem 1.5rem;
    margin-top: 5rem;
    border-radius: 20px 20px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--accent-teal);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p {
    line-height: 1.7;
    color: #ccc;
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-teal);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Age Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
}

.age-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    max-width: 500px;
    margin: 1rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 5px solid var(--primary-purple);
}

.modal-box h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-purple);
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.modal-box p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-box .emphasis {
    font-weight: 700;
    color: var(--secondary-pink);
    font-size: 1.2rem;
    margin: 1.5rem 0;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-btn.yes {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-pink));
    color: white;
}

.modal-btn.yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.4);
}

.modal-btn.no {
    background: #e0e0e0;
    color: #666;
}

.modal-btn.no:hover {
    background: #d0d0d0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .game-frame {
        min-height: 400px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }

    .hero-section {
        padding: 2rem 1.5rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .game-section {
        padding: 1.5rem;
    }

    .modal-box {
        padding: 2rem;
    }

    .modal-buttons {
        flex-direction: column;
    }
}
