* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #09090b;
    color: white;
}


/* NAVBAR */

.navbar {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    border-bottom: 1px solid #222;

    background: #09090b;
}

.logo {
    font-size: 24px;
    font-weight: 800;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    transition: .3s;
}

nav a:hover {
    color: white;
}

.login-btn {
    padding: 10px 22px;

    border: 0;
    border-radius: 8px;

    background: #7c3aed;
    color: white;

    cursor: pointer;
}


/* HERO */

.hero {
    min-height: 600px;

    display: flex;
    align-items: center;

    padding: 80px 8%;

    background:
        radial-gradient(
            circle at 70% 40%,
            #4c1d95,
            transparent 40%
        );
}

.hero-content {
    max-width: 750px;
}

.hero-tag {
    color: #a78bfa;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(50px, 7vw, 90px);
    line-height: 1;
    margin: 20px 0;
}

.hero h1 span {
    color: #8b5cf6;
}

.hero p {
    color: #aaa;
    font-size: 20px;
    line-height: 1.6;

    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.primary-btn,
.secondary-btn {
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
}

.primary-btn {
    background: #7c3aed;
    color: white;
}

.secondary-btn {
    border: 1px solid #444;
    color: white;
}


/* SECTION */

.section {
    padding: 80px 8%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 35px;
}

.section-heading span {
    color: #8b5cf6;
    font-size: 12px;
    font-weight: bold;
}

.section-heading h2 {
    font-size: 38px;
    margin-top: 8px;
}

.section-heading a {
    color: #aaa;
    text-decoration: none;
}


/* GAME GRID */

.game-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.game-card {
    background: #111113;

    border: 1px solid #242426;

    border-radius: 15px;

    overflow: hidden;

    transition: .3s;
}

.game-card:hover {
    transform: translateY(-7px);
    border-color: #7c3aed;
}

.game-image {
    height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 75px;
}

.snake-bg {
    background: linear-gradient(
        135deg,
        #064e3b,
        #16a34a
    );
}

.tic-bg {
    background: linear-gradient(
        135deg,
        #312e81,
        #7c3aed
    );
}

.pong-bg {
    background: linear-gradient(
        135deg,
        #111827,
        #2563eb
    );
}

.game-info {
    padding: 22px;
}

.game-info h3 {
    font-size: 22px;
}

.game-info p {
    color: #888;
    margin: 8px 0 20px;
}

.play-btn {
    display: inline-block;

    padding: 10px 18px;

    background: #7c3aed;

    color: white;

    text-decoration: none;

    border-radius: 7px;
}


/* CATEGORIES */

.categories {
    padding: 80px 8%;

    background: #0d0d0f;
}

.categories h2 {
    text-align: center;

    font-size: 40px;

    margin-bottom: 40px;
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.category {
    padding: 35px;

    text-align: center;

    border: 1px solid #242426;

    border-radius: 15px;

    background: #111113;

    font-size: 35px;
}

.category h3 {
    margin-top: 12px;

    font-size: 18px;
}


/* FOOTER */

footer {
    padding: 50px 8%;

    border-top: 1px solid #222;

    text-align: center;
}

footer p {
    margin-top: 15px;

    color: #777;
}


/* MOBILE */

@media(max-width: 800px) {

    nav {
        display: none;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 55px;
    }

}
/* ========================================
   GAMES LIBRARY
======================================== */


.navbar nav a.active {
    color: white;
}


/* PAGE HERO */

.games-hero {

    padding: 90px 8% 70px;

    background:
        radial-gradient(
            circle at 80% 30%,
            #4c1d95,
            transparent 35%
        );

    border-bottom: 1px solid #222;

}

.games-hero span {

    color: #8b5cf6;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

}

.games-hero h1 {

    font-size: clamp(
        45px,
        6vw,
        75px
    );

    margin: 15px 0;

}

.games-hero p {

    color: #888;

    font-size: 18px;

}


/* MAIN */

.games-section {

    padding: 60px 8% 100px;

}


/* SEARCH */

.search-box {

    max-width: 650px;

    margin: 0 auto 35px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px 20px;

    border: 1px solid #29292c;

    border-radius: 12px;

    background: #111113;

}

.search-box span {

    font-size: 20px;

}

.search-box input {

    width: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: white;

    font-size: 16px;

}

.search-box input::placeholder {

    color: #666;

}


/* FILTER */

.categories-filter {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    justify-content: center;

    margin-bottom: 55px;

}

.category-btn {

    padding: 10px 17px;

    border: 1px solid #29292c;

    border-radius: 30px;

    background: #111113;

    color: #aaa;

    cursor: pointer;

    transition: .25s;

    font-size: 14px;

}

.category-btn:hover {

    border-color: #7c3aed;

    color: white;

}

.category-btn.active {

    background: #7c3aed;

    color: white;

    border-color: #7c3aed;

}


/* RESULT HEADING */

.games-result {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

}

.games-result h2 {

    font-size: 30px;

}

.games-result span {

    color: #777;

}


/* GAME GRID */

.library-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

}


/* CARD */

.library-card {

    background: #111113;

    border: 1px solid #242426;

    border-radius: 16px;

    overflow: hidden;

    transition: .3s;

}

.library-card:hover {

    transform: translateY(-7px);

    border-color: #7c3aed;

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.35);

}


/* IMAGE */

.library-image {

    height: 230px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

}

.library-image > span {

    font-size: 80px;

    filter:
        drop-shadow(
            0 10px 15px
            rgba(0,0,0,.3)
        );

}

.snake-game {

    background:
        linear-gradient(
            135deg,
            #064e3b,
            #16a34a
        );

}

.tic-game {

    background:
        linear-gradient(
            135deg,
            #312e81,
            #7c3aed
        );

}

.pong-game {

    background:
        linear-gradient(
            135deg,
            #111827,
            #2563eb
        );

}


/* BADGE */

.game-badge {

    position: absolute;

    top: 15px;

    left: 15px;

    padding: 7px 12px;

    background:
        rgba(0,0,0,.55);

    backdrop-filter: blur(8px);

    border-radius: 20px;

    font-size: 12px;

    font-weight: bold;

}


/* CONTENT */

.library-content {

    padding: 22px;

}

.game-title {

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.game-title h3 {

    font-size: 22px;

}

.game-title span {

    font-size: 13px;

    color: #fbbf24;

}

.library-content > p {

    color: #888;

    line-height: 1.5;

    margin: 10px 0 18px;

}


/* META */

.game-meta {

    display: flex;

    gap: 15px;

    margin-bottom: 20px;

    color: #777;

    font-size: 12px;

}


/* PLAY */

.library-play {

    display: block;

    text-align: center;

    padding: 12px;

    background: #7c3aed;

    border-radius: 9px;

    color: white;

    text-decoration: none;

    font-weight: bold;

    transition: .2s;

}

.library-play:hover {

    background: #8b5cf6;

}


/* NO RESULTS */

.no-results {

    display: none;

    text-align: center;

    padding: 80px 20px;

    color: #777;

}

.no-results div {

    font-size: 60px;

    margin-bottom: 20px;

}

.no-results h2 {

    color: white;

    margin-bottom: 10px;

}


/* RESPONSIVE */

@media(max-width: 1000px) {

    .library-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media(max-width: 650px) {

    .games-section {

        padding-left: 5%;

        padding-right: 5%;

    }

    .library-grid {

        grid-template-columns: 1fr;

    }

    .games-result h2 {

        font-size: 24px;

    }

    .categories-filter {

        justify-content: flex-start;

    }

}
.user-menu {

    display: flex;

    align-items: center;

    gap: 12px;

}


.user-name {

    color: #e4e4e7;

    font-size: 14px;

    font-weight: 600;

}


.logout-btn {

    padding: 9px 15px;

    border-radius: 8px;

    border: 1px solid #3f3f46;

    background: transparent;

    color: white;

    cursor: pointer;

    font-size: 13px;

}


.logout-btn:hover {

    background: #27272a;

}


@media(max-width:700px) {

    .user-menu {

        gap: 6px;

    }


    .user-name {

        font-size: 12px;

    }

}
