/* Global Variables */
:root {
    --bg-color: #0d1117;
    --surface-color: #161b22;
    --surface-light: #21262d;
    --text-color: #c9d1d9;
    --text-title: #ffffff;
    --accent: #ff3366;
    --accent-hover: #e02856;
    --border-color: #30363d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.3s ease;
}
a:hover { color: var(--accent-hover); }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.main-container {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

/* Navbar */
.navbar {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-title);
    letter-spacing: 1px;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links li a:hover { color: var(--accent); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 200px;
    list-style: none;
    display: none;
    box-shadow: 0 10px 15px rgba(0,0,0,0.5);
}
.dropdown:hover .dropdown-menu { display: block; animation: fadeIn 0.3s ease; }
.dropdown-menu li a {
    display: block; padding: 10px 15px; border-bottom: 1px solid var(--border-color);
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background: var(--surface-light); }

/* Search Form */
.search-form { display: flex; position: relative; }
.search-form input {
    background: var(--bg-color); border: 1px solid var(--border-color);
    color: var(--text-color); padding: 8px 15px; padding-right: 40px;
    border-radius: 20px; font-family: inherit; font-size: 0.9rem;
    transition: 0.3s;
}
.search-form input:focus { outline: none; border-color: var(--accent); width: 200px; }
.search-form button {
    background: transparent; border: none; color: var(--text-color);
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    cursor: pointer; transition: 0.3s;
}
.search-form button:hover { color: var(--accent); }

/* Mobile Menu */
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-title); }

@media(max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-menu {
        display: none; position: absolute; top: 70px; left: 0; width: 100%;
        background: var(--surface-color); flex-direction: column;
        padding: 20px; border-bottom: 1px solid var(--border-color);
    }
    .nav-menu.active { display: flex; animation: slideDown 0.3s ease; }
    .nav-links { flex-direction: column; width: 100%; }
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown.active .dropdown-menu { display: block; position: static; box-shadow: none; border:none; padding-left:15px;}
    .search-form { width: 100%; margin-top: 15px; }
    .search-form input { width: 100%; }
}

/* Typography & Titles */
.section-title {
    font-size: 1.8rem;
    color: var(--text-title);
    margin-bottom: 25px;
    display: flex; align-items: center; gap: 10px;
}
.section-title i { color: var(--accent); }

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.game-card {
    background: var(--surface-color);
    border-radius: 8px; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex; flex-direction: column;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--accent);
}
.game-thumb {
    width: 100%; height: 180px; object-fit: cover; display: block;
}
.game-info {
    padding: 15px; flex: 1; display: flex; flex-direction: column;
}
.game-title {
    font-size: 1.1rem; color: var(--text-title); margin-bottom: 5px; font-weight: 600;
}
.game-meta {
    font-size: 0.8rem; color: var(--text-muted, #8b949e); display: flex; justify-content: space-between;
    margin-top: auto;
}
.game-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 4px;
    font-size: 0.75rem; font-weight: bold;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.footer { background: var(--surface-color); border-top: 1px solid var(--border-color); padding-top: 40px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 30px; }
.footer h3 { color: var(--text-title); margin-bottom: 15px; font-size: 1.5rem; }
.footer h4 { color: var(--text-title); margin-bottom: 15px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.footer p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

.footer-bottom { text-align: center; padding: 20px; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* Play Page layout */
.play-container { display: flex; flex-direction: column; gap: 20px; }
.play-embed { background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.play-embed iframe { display: block; width: 100%; border: none; }
.play-info { background: var(--surface-color); padding: 25px; border-radius: 8px; border: 1px solid var(--border-color); }
.play-title { font-size: 2rem; color: var(--text-title); margin-bottom: 10px; }
.play-meta { display: flex; gap: 20px; color: var(--text-muted, #8b949e); margin-bottom: 20px; font-size: 0.9rem; }
.play-desc { line-height: 1.8; color: var(--text-color); }

/* Ads */
.ad-slot { background: var(--surface-color); border: 1px dashed var(--border-color); text-align: center; padding: 15px; margin: 20px 0; color: #555; }
