/* ================= GLOBAL ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #f5f7ff;
  color: #111827;
  overflow-x: hidden;
}

a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ================= ACCESSIBILITY & FOCUS ================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

button,
.play-btn {
  min-height: 44px;
}

a:focus,
button:focus,
select:focus {
  outline: 3px solid #4338ca;
  outline-offset: 2px;
}

/* ================= CONTAINERS & LAYOUT ================= */
#header-container {
  min-height: 70px;
}

#sidebar-container {
  min-width: 300px;
}

.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 20px;
  padding: 20px 15px 30px;
}

.main {
  flex: 3;
}

.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 68px;
}

/* ================= HEADER & NAV ================= */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
  transition: 0.2s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.nav a:hover {
  color: #6366f1;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* ================= TOPBAR & OFFER BAR ================= */
.topbar {
  background: linear-gradient(90deg, #eef2ff, #e0f2fe);
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.offer-bar {
  background: linear-gradient(90deg, #ff9800, #ff3d00);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  animation: pulseBar 2s infinite;
}

.offer-bar a {
  color: #fff;
  font-weight: bold;
  margin-left: 10px;
}

.offer-badge {
  background: #fff;
  color: #ff3d00;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  margin-left: 8px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  display: inline-block;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.badge-top {
  background: #4338ca;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
}

@keyframes pulseBar {
  0% { opacity: 1; }
  50% { opacity: 0.85; }
  100% { opacity: 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ================= HERO ================= */
.hero {
  background: linear-gradient(90deg, #eef2ff, #dbeafe);
  text-align: center;
  padding: 30px;
  position: relative;
}

.hero h1 {
  font-size: 26px;
  font-weight: 700;
}

.wave {
  position: absolute;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ================= INFO BOX ================= */

/* ================= INFO BOX ================= */
.info-box {
  max-width: 1150px;
  margin: 10px auto -5px;
  padding: 18px 20px;

  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #6366f1;

  box-shadow: 0 6px 18px rgba(0,0,0,0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  gap: 6px;

  position: relative;
  overflow: hidden;

  animation: boxPulse 2.5s infinite;
}

/* TEXT */
#cta-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  transition: all 0.35s ease;
}

#cta-sub {
  font-size: 14px;
  color: #6b7280;
  transition: all 0.35s ease;
}

/* highlight */
.highlight {
  color: #6366f1;
  font-weight: 800;
}

/* 🔥 SINGLE CLEAN ANIMATION (FIXED) */
.fade-out {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
}

.fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 🔥 LIGHT SWEEP EFFECT */
.info-box::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(99,102,241,0.18),
    transparent
  );

  transform: translateX(-100%);
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes shine {
  100% {
    transform: translateX(100%);
  }
}

/* 🔥 SOFT GLOW */
.info-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent);
  opacity: 0;
  animation: pulseGlow 2.5s infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* 🔥 BOX PULSE */
@keyframes boxPulse {
  0% { box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
  50% { box-shadow: 0 12px 28px rgba(99,102,241,0.25); }
  100% { box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
}


.info-click {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  width: 100%;
}

.info-box:hover {
  transform: translateY(-2px);
  cursor: pointer;
}


#live-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;

  background: #111827;
  color: #fff;

  padding: 10px 14px;
  border-radius: 10px;

  font-size: 13px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.3);

  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;

  z-index: 9999;
}

#live-popup.show {
  opacity: 1;
  transform: translateY(0);
}


/* ================= GAMES GRID ================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 16px;
  margin-top: 10px;
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: 0.25s;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.thumb-wrap {
  position: relative;
}

.thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: 0.25s;
}

.thumb:hover {
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 700;
}

.hot {
  background: #dc2626;
}

.new {
  background: #1d4ed8;
}

.play-btn {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #6366f1, #2563eb);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
  min-height: 44px;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(99,102,241,0.3);
}

.live-count {
  font-size: 11px;
  text-align: center;
  color: #4b5563;
}

/* ================= FILTERS ================= */
.filters {
  gap: 12px;
}

.filters button,
.filters select {
  min-height: 44px;
  padding: 10px 14px;
}

/* ================= ADS ================= */
/* ================= AD BOX FIX ================= */

.ad-box {
  width: 300px;              /* FIXED WIDTH */
  height: 250px;             /* FIXED HEIGHT */
  min-width: 300px;
  min-height: 250px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  border: 1px dashed #c7d2fe;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);

  color: #6366f1;
  font-size: 13px;
  font-weight: 500;

  position: relative;
  overflow: hidden;

  margin: 0 auto 12px;       /* REMOVE NEGATIVE SHIFT */
}

/* shimmer safe (optional) */
.ad-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* ================= SIDEBAR FIX ================= */

.sidebar {
  width: 300px;              /* LOCK SIDEBAR WIDTH */
  flex-shrink: 0;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .ad-box {
    width: 100%;
    max-width: 100%;
    height: 250px;
  }

  .sidebar {
    width: 100%;
  }

}
.sidebar-section h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #111827;
}

.side-card {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  margin-bottom: 8px;
  transition: 0.2s ease;
}

.side-card:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.side-btn {
  padding: 12px;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 10px;
  font-weight: 600;
}

.category-box {
  background: #ffffff;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* ================= COLORS ================= */
.blue { background: #2563eb; }
.purple { background: #7c3aed; }
.indigo { background: #4f46e5; }
.green { background: #16a34a; }
.red { background: #dc2626; }
.dark, .black { background: #111827; }
.teal { background: #0d9488; }
.violet { background: #6d28d9; }
.cyan { background: #0891b2; }
.lime { background: #65a30d; }
.reddit { background: #b91c1c; }
.orange { background: #c2410c; }
.pink { background: #7e22ce; }

/* ================= POST CONTENT & CTA ================= */
.post-hero {
  text-align: center;
  padding: 20px 10px;
}

.post-hero h1 {
  font-size: 26px;
  color: #111827;
  margin-bottom: 8px;
}

.post-meta {
  font-size: 14px;
  color: #4338ca;
}

.trust-line {
  font-size: 13px;
  color: #4b5563;
  margin: 8px 0;
}

.post-image-wrap {
  margin: 20px 0;
}

.post-image {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.feature-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.feature-box h2 {
  margin-bottom: 10px;
  color: #111827;
}

.feature-box li {
  color: #374151;
  margin: 6px 0;
}

.post-content {
  line-height: 1.6;
}

.post-content h2 {
  color: #111827;
  margin-top: 18px;
}

.post-content p {
  color: #374151;
  margin-top: 6px;
}

.cta-box {
  margin-top: 10px;
  max-width: 100%;
}

.cta-main {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 28px;
  border-radius: 10px;
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
  max-width: 100%;
}

.cta-main:hover {
  transform: scale(1.04);
}

.cta-main.big {
  width: 100%;
  text-align: center;
  display: block;
}

.cta-mid {
  text-align: center;
  margin: 18px 0;
}

.cta-mid a {
  background: #eef2ff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #4f46e5;
  font-weight: 500;
}

/* ================= SEO CONTENT ================= */
.seo-content {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 15px;
}

.seo-content h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #111827;
}

.seo-scroll {
  max-height: 260px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 15px;
}

.seo-scroll::-webkit-scrollbar {
  width: 6px;
}

.seo-scroll::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 6px;
}

.seo-scroll h3 {
  margin-top: 12px;
  color: #111827;
}

.seo-scroll p {
  font-size: 14px;
  color: #374151;
  margin-top: 6px;
}

.seo-scroll ul {
  margin-top: 6px;
  padding-left: 18px;
  color: #374151;
}

.seo-columns {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
}

/* ================= FOOTER ================= */
.footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 15px 10px;
  text-align: center;
}

.ad-728 {
  height: 90px;
  max-width: 728px;
  margin: 0 auto;
}

.footer-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.ad-label {
  font-size: 12px;
  color: #ff2e63;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-banner {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.footer-banner:hover {
  transform: scale(1.02);
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-top: 8px;
}

.footer-bottom {
  font-size: 11px;
  color: #4b5563;
  margin-top: 25px;
  line-height: 1.6;
}

.footer-grid {
  gap: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col p {
  color: #4b5563;
}

.footer-col a {
  display: flex;
  font-size: 13px;
  margin: 8px 0;
  padding: 8px 6px;
  color: #4f46e5;
  text-decoration: none;
  border-radius: 6px;
}

.footer-col a:hover,
.footer-col a:focus {
  background: #eef2ff;
  outline: none;
}

/* ================= MOBILE STYLES (Grouped) ================= */
@media (max-width: 768px) {
  .header {
    padding: 12px 18px;
  }

  .logo-img {
    height: 48px;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 15px;
    width: 220px;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.25s ease;
  }

  .nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav a {
    padding: 10px 0;
    width: 100%;
  }

  .container {
    flex-direction: column;
  }

  .sidebar {
    display: none;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-main,
  .cta-main.big {
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-col a {
    padding: 10px 8px;
    margin: 10px 0;
    font-size: 14px;
  }

  .seo-columns {
    grid-template-columns: 1fr;
  }

  .seo-scroll {
    max-height: 220px;
  }
}