/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* GLOBAL BACKGROUND */
body {
    font-family: system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, #ff4b8b33, transparent 55%),
        radial-gradient(circle at top right, #4bc9ff33, transparent 55%),
        linear-gradient(160deg, #060714, #050811 60%, #04060f);
    color: #f7f7ff;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   LOADING SPINNER
--------------------------------------------------------- */
body.loading {
    overflow: hidden;
}

#loader {
    position: fixed;
    inset: 0;
    background: #05050a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 65px;
    height: 65px;
    border: 6px solid #ffffff44;
    border-top-color: #ff4b8b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

#loader p {
    margin-top: 10px;
    color: #fff;
    font-size: 1rem;
    opacity: 0.8;
}

/* ---------------------------------------------------------
   NAVBAR
--------------------------------------------------------- */
.navbar {
    width: 100%;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #ffffff11;
}

.nav-inner {
    max-width: 1000px;
    margin: auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffd84b;
    text-transform: uppercase;
}

.nav-links a {
    margin-left: 1.5rem;
    color: #eee;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 3px;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #ffd84b;
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #ffd84b;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
.site-header {
    text-align: center;
    padding: 2rem 1rem;
}

.site-header.small {
    padding: 1.2rem 1rem;
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffd84b;
    text-shadow: 0 3px 6px #000;
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */
.card {
    background: rgba(255,255,255,0.04);
    border: 1px solid #ffffff11;
    border-radius: 18px;
    padding: 1.5rem 1.7rem;
    box-shadow: 0 10px 25px #0007;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px #0009;
}

/* ---------------------------------------------------------
   GAMES GRID
--------------------------------------------------------- */
.games-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.game-card {
    padding: 1rem;
    border-radius: 14px;
    text-align: center;
    color: #fff;
    background: linear-gradient(145deg, #1e223d, #0e1122);
    border: 1px solid #ffffff11;
    transition: 0.2s;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px #0008;
    background-position: 80% 0%;
}

/* ---------------------------------------------------------
   BUTTON
--------------------------------------------------------- */
.btn-primary {
    display: inline-block;
    padding: 0.7rem 1.3rem;
    background: #ff4b8b;
    color: white;
    font-size: 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #ff6ca8;
    transform: translateY(-3px);
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    opacity: 0.6;
    font-size: 0.9rem;
}
