
:root {
    --bg: #0b1020;
    --text: #f3f4f6;
    --accent: #6a5acd;
    --highlight: #ec4899;
    --card-bg: #151e34;
    --footer-bg: #0b1320;
    --border: #334155;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); }
a { color: #60a5fa; text-decoration: none; }
header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background: rgba(11,16,32,0.85); position: sticky; top: 0; z-index: 200; backdrop-filter: blur(8px); }
.logo-img { height: 40px; vertical-align: middle; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
nav li + li { margin-left: 1rem; }
nav a { padding: 0.3rem 0; font-weight: 500; font-size: 1rem; }
nav a:hover { color: var(--highlight); border-bottom: 2px solid var(--highlight); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }
@media(max-width:768px) {
    nav ul { display: none; flex-direction: column; position: absolute; top: 60px; right: 0; background: var(--card-bg); width: 230px; border-radius: 8px; padding: 1rem; }
    nav ul.show { display: block; }
    nav li { margin: 0.5rem 0; }
    nav a { border-bottom: none; }
    .menu-toggle { display: block; }
}
.hero {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(120deg, #6224bf, #116fe2);
    overflow: hidden;
    color: white;
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; letter-spacing: 2px; }
.hero p { font-size: 1.2rem; margin-bottom: 1.5rem; }
.btn-group { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.btn { padding: 0.8rem 1.8rem; border: none; border-radius: 9999px; cursor: pointer; font-size: 1rem; transition: transform 0.2s; }
.btn.primary { background: var(--highlight); color: white; }
.btn.secondary { background: var(--accent); color: white; }
.btn:hover { transform: translateY(-3px); }
.category-section { padding: 2rem; }
.category-section h2 { margin-bottom: 1rem; font-size: 2rem; color: var(--highlight); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.card { background: var(--card-bg); border-radius: 0.75rem; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: transform 0.2s; position: relative; }
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 140px; object-fit: cover; }
.card-content { padding: 1rem; display: flex; flex-direction: column; align-items: start; justify-content: space-between; }
.card-content h3 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.play-btn { background: var(--accent); color: white; border: none; padding: 0.4rem 0.8rem; border-radius: 0.5rem; cursor: pointer; transition: background 0.2s; }
.play-btn:hover { background: var(--highlight); }
.ads-placeholder { margin: 2rem auto; width: 90%; height: 90px; background: #334155; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-style: italic; }
/* Blog styles */
.blog-container { padding: 2rem; max-width: 900px; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--card-bg); border-radius: 0.75rem; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: transform 0.2s; }
.blog-card:hover { transform: translateY(-5px); }
.blog-card img { width: 100%; height: 150px; object-fit: cover; }
.blog-card-content { padding: 1rem; }
.blog-card-content h3 { margin: 0 0 0.5rem 0; font-size: 1.2rem; }
.blog-card-content p { font-size: 0.9rem; margin: 0 0 0.5rem 0; color: #94a3b8; }
.blog-card-content a { color: var(--highlight); font-weight: 600; }
article img.blog-img { width: 100%; height: auto; border-radius: 0.5rem; margin: 0 0 1rem 0; }
article h2 { margin-top: 1.5rem; color: var(--highlight); }
article ul { margin: 0 0 1rem 1.5rem; padding: 0; }
article li { margin-bottom: 0.5rem; line-height: 1.4; }
article p { line-height: 1.6; margin-bottom: 1rem; }
footer { background: var(--footer-bg); padding: 2rem 0; color: #94a3b8; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.footer-section h4 { margin-bottom: 0.8rem; color: var(--text); }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-section a { color: #60a5fa; font-size: 0.9rem; }
.footer-bottom { text-align: center; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: #64748b; }
.search-filter { padding: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; background: var(--card-bg); margin-bottom: 1rem; border-radius: 0.5rem; }
#searchInput { padding: 0.5rem 1rem; border-radius: 9999px; border: none; outline: none; width: 240px; }
#categorySelect { padding: 0.5rem 1rem; border-radius: 9999px; border: none; outline: none; width: 160px; }
.game-player { position: relative; }
.game-player iframe { width: 100%; border: none; border-radius: 0.5rem; }
.fullscreen-btn { position: absolute; top: 8px; right: 8px; background: var(--accent); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; justify-content: center; align-items: center; cursor: pointer; color: white; }
.fullscreen-btn:hover { background: var(--highlight); }
.leaderboard { margin-top: 2rem; background: var(--card-bg); padding: 1rem; border-radius: 0.5rem; }
.leaderboard h3 { margin: 0 0 1rem 0; }
.leaderboard ol { margin: 0; padding-left: 1.5rem; }
.leaderboard li { margin-bottom: 0.3rem; }
figure { margin: 0; }
figcaption { font-size: 0.85rem; color: #94a3b8; margin-top: 0.25rem; }
