/* ======================================
   Classic Slots M — Green Theme
   ====================================== */
:root {
  --primary: #0a8f3c;          /* emerald green */
  --primary-dark: #066b2c;
  --primary-light: #22c55e;
  --accent: #facc15;            /* gold */
  --accent-dark: #ca8a04;
  --bg: #052e14;                /* deep forest */
  --bg-soft: #0a3d1d;
  --surface: #0e5027;
  --surface-light: #127236;
  --text: #f0fdf4;
  --text-muted: #bbf7d0;
  --text-dim: #86efac;
  --border: #14532d;
  --danger: #ef4444;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .4);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, .5);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html[dir="rtl"] body { font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif; }
html[dir="rtl"] .game-meta, html[dir="rtl"] .section-link, html[dir="rtl"] .hero-stats, html[dir="rtl"] .game-hero-meta { direction: rtl; }
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .footer-inner { direction: rtl; }
body {
  font-family: 'Plus Jakarta Sans', 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at top left, rgba(34, 197, 94, .15), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(250, 204, 21, .08), transparent 50%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(5, 46, 20, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; max-width: 1280px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; color: var(--text);
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(34, 197, 94, .4);
  font-size: 22px;
}
.logo-text span { color: var(--accent); }
.nav-links {
  display: flex; gap: 6px; list-style: none;
}
.nav-links a {
  color: var(--text-muted); font-weight: 600; font-size: 15px;
  padding: 10px 16px; border-radius: var(--radius-full);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: var(--surface-light);
}
.header-cta {
  display: flex; gap: 10px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; font-size: 14px; font-weight: 700;
  border-radius: var(--radius-full); border: none; cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, .45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34, 197, 94, .6); color: #fff; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a1200;
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(250, 204, 21, .5); color: #1a1200; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 28px; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  padding: 80px 20px 60px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(250, 204, 21, .12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(34, 197, 94, .18), transparent 40%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; background: rgba(250, 204, 21, .15); color: var(--accent);
  border: 1px solid rgba(250, 204, 21, .3); border-radius: var(--radius-full);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800; line-height: 1.1; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 20%, var(--accent) 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted); max-width: 720px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: 780px; margin: 60px auto 0;
}
.stat-card {
  background: rgba(14, 80, 39, .6); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px; text-align: center;
  backdrop-filter: blur(10px);
}
.stat-val { font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 60px 20px; }
.section-header {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.section-title {
  font-size: clamp(26px, 3vw, 36px); font-weight: 800;
  display: flex; align-items: center; gap: 12px;
}
.section-title::before {
  content: ''; width: 6px; height: 32px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  border-radius: 3px;
}
.section-sub { color: var(--text-muted); font-size: 15px; margin-top: 6px; }
.section-link { color: var(--accent); font-weight: 700; font-size: 14px; }

/* ===== Game Grid ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
  position: relative;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: 0 14px 36px rgba(10, 143, 60, .4);
}
.game-thumb {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--surface-light));
}
.game-thumb svg { width: 100%; height: 100%; }
.game-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: .5px;
  background: var(--accent); color: #1a1200;
}
.game-badge.hot { background: #ef4444; color: #fff; }
.game-badge.new { background: var(--primary-light); color: #fff; }
.game-info { padding: 14px 16px; }
.game-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.game-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
.game-rtp { color: var(--accent); font-weight: 700; }

/* Filter Chips */
.chip-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px;
  overflow-x: auto;
}
.chip {
  padding: 8px 18px; background: var(--surface); color: var(--text-muted);
  border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s; border: 1px solid var(--border);
  white-space: nowrap;
}
.chip:hover, .chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Game Detail ===== */
.game-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 60px 20px 40px; align-items: center;
}
.game-hero-thumb {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow-lg);
}
.game-hero h1 {
  font-size: clamp(30px, 4vw, 48px); font-weight: 800; margin-bottom: 12px;
}
.game-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 24px; }
.pill {
  padding: 6px 14px; background: var(--surface-light); border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border);
}
.pill strong { color: var(--accent); }
.game-hero p { color: var(--text-muted); font-size: 17px; margin-bottom: 28px; }

.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin: 40px 0;
}
.info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.info-card h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
  color: var(--accent);
}
.info-card p { color: var(--text-muted); font-size: 15px; }
.info-card ul { padding-left: 20px; margin-top: 8px; color: var(--text-muted); }
.info-card ul li { margin-bottom: 6px; }

/* Screenshot gallery */
.screenshot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin: 30px 0;
}
.screenshot {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/10; border: 1px solid var(--border);
}

/* ===== Blog ===== */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all .3s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.blog-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--primary-dark); }
.blog-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-category {
  font-size: 11px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.blog-title { font-size: 18px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.blog-excerpt { color: var(--text-muted); font-size: 14px; flex: 1; margin-bottom: 12px; }
.blog-meta { font-size: 12px; color: var(--text-dim); display: flex; gap: 12px; }

/* Article page */
.article-header {
  text-align: center; padding: 80px 20px 40px;
  background: linear-gradient(180deg, rgba(10, 143, 60, .2), transparent);
  border-bottom: 1px solid var(--border);
}
.article-category-badge {
  display: inline-block; padding: 6px 14px;
  background: rgba(250, 204, 21, .15); color: var(--accent);
  border-radius: var(--radius-full); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.article-header h1 {
  font-size: clamp(28px, 4vw, 44px); max-width: 900px; margin: 0 auto 16px;
  line-height: 1.25; font-weight: 800;
}
.article-excerpt { color: var(--text-muted); max-width: 720px; margin: 0 auto 20px; font-size: 17px; }
.article-meta { color: var(--text-dim); font-size: 13px; }
.article-body {
  max-width: 800px; margin: 50px auto; padding: 0 20px;
}
.article-body h2 { font-size: 26px; margin: 32px 0 14px; color: var(--accent); }
.article-body h3 { font-size: 20px; margin: 24px 0 10px; }
.article-body p { color: var(--text-muted); font-size: 17px; line-height: 1.8; margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 28px; color: var(--text-muted); margin-bottom: 18px; }
.article-body ul li, .article-body ol li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--primary-light);
  background: var(--surface); padding: 16px 20px; margin: 20px 0;
  font-style: italic; border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== Promo / Bonus Strip ===== */
.promo-strip {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  position: relative; overflow: hidden;
  border: 1px solid rgba(250, 204, 21, .35);
}
.promo-strip::before {
  content: '🎰'; position: absolute; right: -20px; top: -20px;
  font-size: 200px; opacity: .08;
}
.promo-strip h3 { font-size: 28px; margin-bottom: 8px; }
.promo-strip p { color: #dcfce7; max-width: 600px; }

/* ===== Footer ===== */
.site-footer {
  background: #020f06;
  border-top: 1px solid var(--border);
  padding: 60px 20px 24px;
  margin-top: 80px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; max-width: 1280px; margin: 0 auto;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; }
.footer-col h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px; color: var(--accent);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: 14px; }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px;
  max-width: 1280px; margin-left: auto; margin-right: auto;
  text-align: center; color: var(--text-dim); font-size: 13px;
}
.disclaimer {
  background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3);
  padding: 16px 20px; border-radius: var(--radius);
  max-width: 1240px; margin: 20px auto 0;
  color: #fecaca; font-size: 13px; text-align: center;
}

/* ===== Language Switcher ===== */
.lang-switcher {
  position: fixed; top: 16px; left: 16px; z-index: 1200;
  display: flex; gap: 4px; padding: 4px;
  background: rgba(5, 46, 20, 0.85); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}
html[dir="rtl"] .lang-switcher { left: auto; right: 16px; }
.lang-switcher a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; padding: 6px 12px; font-size: 12px; font-weight: 700;
  color: var(--text-muted); border-radius: var(--radius-full);
  text-decoration: none; transition: all .2s;
}
.lang-switcher a:hover { color: #fff; background: rgba(34, 197, 94, 0.2); }
.lang-switcher a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .game-hero .container { grid-template-columns: 1fr !important; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 14px; }
  .site-header { padding-top: 52px; }
  .header-inner { padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
  .logo-icon { width: 34px; height: 34px; font-size: 18px; }
  .logo-text { font-size: 17px; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(5, 46, 20, 0.98); backdrop-filter: blur(14px);
    padding: 12px; border-bottom: 1px solid var(--border);
  }
  .site-header.open .nav-links li { width: 100%; }
  .site-header.open .nav-links a { display: block; padding: 14px 16px; font-size: 16px; }
  .header-cta .btn-ghost { display: none; }
  .header-cta .btn { padding: 9px 16px; font-size: 13px; }
  .hero { padding: 36px 14px 32px; }
  .hero h1 { font-size: 28px; line-height: 1.25; }
  .hero p { font-size: 15px; }
  .hero-badge { font-size: 12px; padding: 6px 14px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 13px 22px; font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px 10px; }
  .stat-val { font-size: 22px; }
  .stat-label { font-size: 11px; }
  .section { padding: 36px 14px; }
  .section-title { font-size: 22px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-card { border-radius: var(--radius); }
  .game-name { font-size: 13px; }
  .game-meta { font-size: 10px; }
  .game-meta span { white-space: nowrap; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .info-grid { grid-template-columns: 1fr; gap: 14px; }
  .info-card { padding: 18px; }
  .info-card h3 { font-size: 16px; }
  .promo-strip { padding: 24px 18px; }
  .promo-strip h3 { font-size: 20px; }
  .promo-strip p { font-size: 14px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 6px; }
  .footer-col h4 { font-size: 12px; }
  .footer-col ul a { font-size: 13px; }
  .disclaimer { font-size: 12px; padding: 12px 14px; margin: 14px; }
  .game-hero { padding: 30px 14px; }
  .game-hero-meta { gap: 6px; }
  .pill { font-size: 11px; padding: 6px 12px; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .lang-switcher { top: 8px; left: 8px; padding: 3px; }
  html[dir="rtl"] .lang-switcher { left: auto; right: 8px; }
  .lang-switcher a { min-width: 32px; padding: 5px 10px; font-size: 11px; }
}
@media (max-width: 480px) {
  .game-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero h1 { font-size: 24px; }
  .section-title { font-size: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
}
