/*
Theme Name: Gamers Gurukul
Description: Premium, SEO-optimized gaming portal theme.
Version: 1.0.0
Author: GamersGurukul
*/

:root {
    --bg-main: #0b0f19;
    --bg-card: #151a28;
    --accent: #E63946;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--bg-main); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar { background: var(--accent); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 0; letter-spacing: 0.5px; }

/* Header & Navigation */
.site-header { background: rgba(11, 15, 25, 0.95); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: #fff; }
.logo span { color: var(--accent); }

/* Desktop Menu */
.main-nav ul { display: flex; gap: 24px; list-style: none; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.main-nav a:hover { color: var(--accent); }
.main-nav li { position: relative; }
.main-nav li ul { display: none; position: absolute; top: 100%; left: 0; background: var(--bg-card); border: 1px solid var(--border); width: 200px; flex-direction: column; gap: 0; padding: 10px 0; }
.main-nav li:hover > ul { display: flex; }
.main-nav li ul a { padding: 10px 20px; display: block; border-bottom: 1px solid var(--border); }

/* Mobile Menu Trigger */
.menu-toggle { display: none; font-size: 24px; background: none; border: none; color: #fff; cursor: pointer; }

/* Hero Section */
.hero { background: linear-gradient(rgba(11, 15, 25, 0.8), rgba(11, 15, 25, 0.9)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2070') center/cover; padding: 100px 0; text-align: center; }
.hero h1 { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; }

/* Ticker */
.ticker-wrap { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 12px 0; white-space: nowrap; display: flex; }
.ticker-title { background: var(--accent); padding: 0 15px; font-weight: 700; font-family: var(--font-heading); text-transform: uppercase; z-index: 2; position: relative; }
.ticker-move { display: inline-block; animation: ticker 20s linear infinite; padding-left: 20px; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Section Titles */
.section-title { font-family: var(--font-heading); font-size: 2rem; border-left: 4px solid var(--accent); padding-left: 15px; margin: 60px 0 30px; text-transform: uppercase; }

/* Grid Layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: transform 0.3s ease; }
.card:hover { transform: translateY(-5px); border-color: var(--accent); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 20px; }
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.card-meta { font-size: 0.85rem; color: var(--text-muted); }

/* Categories Links */
.cat-link { background: var(--bg-card); border: 1px solid var(--border); padding: 20px; text-align: center; border-radius: 8px; font-weight: 600; }
.cat-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Tables/Lists */
.list-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.list-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; }
.rank { color: var(--accent); font-weight: 700; margin-right: 10px; }

/* Scrolling Logos */
.logo-scroll { overflow: hidden; white-space: nowrap; margin: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; background: var(--bg-card); }
.logo-track { display: inline-block; animation: scrollLeft 15s linear infinite; }
.logo-track span { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-muted); margin: 0 40px; text-transform: uppercase; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Text Only Articles */
.text-article { padding: 20px 0; border-bottom: 1px solid var(--border); }
.text-article h3 { font-size: 1.2rem; margin-bottom: 8px; }
.text-article p { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.site-footer { background: #070a10; padding: 60px 0 20px; border-top: 1px solid var(--border); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-title { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 20px; color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; }

/* Mobile Responsive */
@media (max-width: 992px) {
    .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .grid-3, .grid-5, .footer-grid { grid-template-columns: 1fr; }
    .main-nav { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: var(--bg-card); flex-direction: column; padding: 80px 20px; transition: 0.3s; z-index: 999; border-left: 1px solid var(--border); }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; }
    .main-nav li ul { position: relative; width: 100%; border: none; padding-left: 15px; }
    .menu-toggle { display: block; z-index: 1001; }
    .hero h1 { font-size: 2.5rem; }
}