/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f1115 0%, #1a1f35 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= CONTAINER ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= HEADER ================= */
header {
    background: rgba(20, 24, 36, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(31, 36, 54, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #00e5ff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #00e5ff;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ================= HERO ================= */
.page-hero {
    background: linear-gradient(135deg, #1b2040, #0f1115);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(0,229,255,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #00e5ff;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
    }

    to {
        text-shadow: 0 0 40px rgba(0, 229, 255, 0.8);
    }
}

.page-hero p {
    color: #b5b5b5;
}

/* ================= SEARCH & FILTER ================= */
.game-controls {
    background: rgba(20, 24, 36, 0.8);
    padding: 25px 0;
    border-bottom: 1px solid rgba(31, 36, 54, 0.5);
}

.controls-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    display: flex;
    max-width: 500px;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    outline: none;
    background: rgba(15, 17, 21, 0.8);
    color: #fff;
    border-radius: 6px 0 0 6px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.search-box button {
    padding: 12px 18px;
    border: none;
    background: linear-gradient(135deg, #00e5ff 0%, #0ea5e9 100%);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    transition: all 0.3s;
}

.search-box button:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    transform: translateY(-2px);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    padding: 8px 15px;
    background: rgba(31, 36, 54, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-buttons button:hover {
    background: #00e5ff;
    color: #000;
    border-color: #00e5ff;
}

/* ================= GAME SECTION ================= */
.games-section {
    padding: 60px 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(20, 24, 36, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.empty-state h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #00e5ff;
}

.empty-state p {
    color: #b5b5b5;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #00e5ff 0%, #0ea5e9 100%);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
}

/* ================= GAME CARDS ================= */
.game-card {
    background: rgba(20, 24, 36, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    border: 1px solid rgba(0, 229, 255, 0.15);
    margin-bottom: 20px;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.2);
    border-color: #00e5ff;
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card h4 {
    padding: 15px 15px 5px;
    font-size: 18px;
    margin: 0;
    color: #ffffff;
}

.game-card p {
    padding: 0 15px;
    color: #b5b5b5;
    font-size: 14px;
    margin: 5px 0;
}

.game-card .btn {
    margin: 15px;
    display: inline-block;
}

/* ================= GAMES GRID ================= */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ================= INSTALL GUIDE ================= */
.install-guide {
    background: rgba(20, 24, 36, 0.8);
    padding: 60px 0;
    border-top: 1px solid rgba(31, 36, 54, 0.5);
}

.install-guide h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #00e5ff;
}

.install-guide ol {
    max-width: 600px;
    margin: auto;
    color: #cfcfcf;
}

.install-guide li {
    margin-bottom: 15px;
}

/* ================= FOOTER ================= */
footer {
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    border-top: 1px solid rgba(31, 36, 54, 0.5);
}

.footer-container {
    text-align: center;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #b5b5b5;
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.footer-links a:hover {
    color: #00e5ff;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 50%;
    background: #00e5ff;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    color: #777;
    font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */
@media (min-width: 768px) {
    .controls-container {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .game-card {
        margin-bottom: 15px;
    }
}