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

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ================= HEADER ================= */
header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 15px 0;
    border-bottom: 1px solid #475569;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.nav-links a {
    text-decoration: none;
    color: #e2e8f0;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

/* ================= HERO ================= */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: heroFadeIn 1.5s ease-out;
}

.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(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.page-hero p {
    color: #e2e8f0;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ================= SEARCH SECTION ================= */
.game-controls {
    padding: 50px 0;
    text-align: center;
}

.controls-container {
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    gap: 12px;
    background: rgba(30, 41, 59, 0.5);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-box input {
    width: 350px;
    padding: 14px 16px;
    border: 1px solid #475569;
    outline: none;
    border-radius: 10px;
    background: #1e293b;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.search-box button {
    padding: 14px 24px;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #000;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.search-box button:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

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

#search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state p {
    font-size: 1.2rem;
}

/* ================= GAME CARD ================= */
.game-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.3);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-card h4 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
    margin: 0;
    color: #f8fafc;
}

.game-card p {
    padding: 0 20px;
    color: #cbd5e1;
    font-size: 14px;
    margin: 5px 0;
    line-height: 1.5;
}

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

/* Buttons */
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #000;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* ================= FOOTER ================= */
footer {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 40px 0;
    border-top: 1px solid #475569;
    text-align: center;
    margin-top: 60px;
}

.footer-links a {
    color: #e2e8f0;
    margin: 0 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.footer-links a:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

footer p {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 20px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }

    .search-box input {
        width: 250px;
    }

    #search-results {
        grid-template-columns: 1fr;
    }
}

.btn:hover {
    background: #0ea5e9;
}

/* ================= FOOTER ================= */
footer {
    background: #020617;
    padding: 30px 0;
    margin-top: 40px;
}

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

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

.footer-links a {
    color: #94a3b8;
    margin: 0 10px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-bottom {
    font-size: 14px;
    color: #64748b;
}