/* =========================================
   CLASSROOM GAMES - HOME PAGE
   ========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green: #5b9f45;
    --green-dark: #39752d;
    --green-light: #edf7e9;

    --yellow: #f6c945;
    --orange: #f28b30;

    --text: #243323;
    --muted: #6b7568;

    --white: #ffffff;
    --background: #f6f8f2;

    --shadow: 0 12px 30px rgba(50, 80, 40, 0.10);
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, #eef8e8 0, transparent 25%),
        radial-gradient(circle at 90% 20%, #fff5d7 0, transparent 25%),
        var(--background);
}


/* =========================================
   TOP BAR
   ========================================= */

.topbar {
    height: 72px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e4eadf;

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 23px;
    font-weight: 800;
    color: var(--green-dark);
}

.logo span {
    color: #293529;
}

.teacher-badge {
    padding: 9px 16px;

    border-radius: 30px;

    background: var(--green-light);
    color: var(--green-dark);

    font-size: 14px;
    font-weight: 700;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    max-width: 1200px;
    margin: 35px auto 0;
    padding: 70px 30px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(231, 247, 224, 0.95),
            rgba(255, 249, 220, 0.95)
        );

    box-shadow: var(--shadow);

    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 760px;
    margin: auto;
}

.small-title {
    display: inline-block;

    margin-bottom: 15px;
    padding: 8px 15px;

    border-radius: 30px;

    background: white;
    color: var(--green-dark);

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero h1 {
    margin-bottom: 18px;

    font-size: clamp(38px, 6vw, 65px);
    line-height: 1.05;

    font-weight: 900;
}

.hero h1 span {
    display: block;
    color: var(--green);
}

.hero p {
    max-width: 650px;
    margin: auto;

    font-size: 18px;
    line-height: 1.7;

    color: var(--muted);
}


/* =========================================
   GAMES SECTION
   ========================================= */

.games-section {
    max-width: 1200px;
    margin: 55px auto;
    padding: 0 20px;
}

.section-heading {
    margin-bottom: 25px;
}

.section-heading h2 {
    font-size: 30px;
    margin-bottom: 6px;
}

.section-heading p {
    color: var(--muted);
    font-size: 16px;
}


/* =========================================
   GAME GRID
   ========================================= */

.game-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================
   GAME CARD
   ========================================= */

.game-card {
    min-height: 315px;

    padding: 25px;

    border-radius: 22px;

    background: white;

    border: 1px solid #e5eadf;

    box-shadow: 0 8px 25px rgba(40, 70, 35, 0.07);

    text-decoration: none;
    color: inherit;

    display: flex;
    flex-direction: column;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.game-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 18px 35px rgba(40, 70, 35, 0.14);

    border-color: #cbdcc5;
}


/* =========================================
   GAME ICON
   ========================================= */

.game-icon {
    min-height: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 17px;

    background: var(--green-light);

    font-size: 58px;

    letter-spacing: 8px;
}


/* Fruit Match special icon */

.fruit-card .game-icon {
    background: #fff6d9;
}


/* =========================================
   CARD TEXT
   ========================================= */

.game-category {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--green);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 1px;
}

.game-info h3 {
    margin-bottom: 8px;

    font-size: 24px;
}

.game-info p {
    min-height: 52px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================
   PLAY BUTTON
   ========================================= */

.play-button {
    display: inline-block;

    margin-top: 18px;
    padding: 10px 16px;

    width: fit-content;

    border-radius: 10px;

    background: var(--green);
    color: white;

    font-size: 13px;
    font-weight: 800;

    transition: background 0.2s ease;
}

.game-card:hover .play-button {
    background: var(--green-dark);
}


/* =========================================
   COMING SOON
   ========================================= */

.coming-card {
    opacity: 0.82;

    cursor: default;
}

.coming-card:hover {
    transform: translateY(-3px);
}

.coming {
    display: inline-block;

    margin-top: 18px;
    padding: 8px 13px;

    width: fit-content;

    border-radius: 20px;

    background: #f1f3ef;
    color: #7a8175;

    font-size: 12px;
    font-weight: 800;
}


/* =========================================
   CREATE GAME CARD
   ========================================= */

.create-card {
    border: 2px dashed #b7cfaf;

    background: #f7fbf5;
}

.create-card .game-icon {
    background: #e7f4e2;
}

.create-button {
    display: inline-block;

    margin-top: 18px;
    padding: 10px 15px;

    width: fit-content;

    border-radius: 10px;

    background: #e3f1df;
    color: var(--green-dark);

    font-size: 13px;
    font-weight: 800;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    margin-top: 70px;
    padding: 28px 20px;

    text-align: center;

    border-top: 1px solid #e2e8de;

    color: #7a8175;

    font-size: 13px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .game-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hero {
        margin-left: 20px;
        margin-right: 20px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .topbar {
        height: 65px;
        padding: 0 18px;
    }

    .logo {
        font-size: 19px;
    }

    .teacher-badge {
        padding: 7px 10px;
        font-size: 11px;
    }

    .hero {
        margin-top: 20px;
        padding: 50px 20px;

        border-radius: 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 15px;
    }

    .games-section {
        margin-top: 35px;
        padding: 0 15px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        min-height: 290px;
    }
}