/*
Theme Name: Real11 India Pro
Author: Universal Prompt Factory V8
Version: 2.0.0
Description: App-focused fantasy cricket website for real11india.com.
*/

:root {
  --ink: #111827;
  --muted: #586174;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --line: #d9e1ec;
  --green: #0f8f4d;
  --green-dark: #086234;
  --gold: #f3b61f;
  --blue: #2463eb;
  --soft: #eaf7f0;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.menu a {
  text-decoration: none;
  white-space: nowrap;
}

.menu a:hover { color: var(--green-dark); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--green-dark);
  background: var(--soft);
  border: 1px solid rgba(15, 143, 77, 0.24);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle:focus-visible { outline: 3px solid rgba(15, 143, 77, 0.28); outline-offset: 2px; }

.hero {
  padding: 62px 0 42px;
  background:
    linear-gradient(118deg, rgba(15, 143, 77, 0.16), rgba(36, 99, 235, 0.08)),
    radial-gradient(circle at 84% 18%, rgba(243, 182, 31, 0.24), transparent 34%);
  border-bottom: 1px solid var(--line);
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  color: var(--green-dark);
  background: rgba(15, 143, 77, 0.1);
  border: 1px solid rgba(15, 143, 77, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

h1 {
  margin: 16px 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--green);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  color: var(--green-dark);
  background: #fff;
}

.media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero .media { aspect-ratio: 16 / 10; }

.section { padding: 58px 0; }

.section.alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip,
.cards,
.post-grid,
.stat-grid {
  display: grid;
  gap: 16px;
}

.trust-strip { grid-template-columns: repeat(4, 1fr); }
.cards { grid-template-columns: repeat(3, 1fr); }
.post-grid { grid-template-columns: repeat(3, 1fr); }
.stat-grid { grid-template-columns: repeat(2, 1fr); }

.card,
.post-card,
.trust-item,
.notice,
.article-shell,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card,
.post-card,
.trust-item {
  padding: 20px;
}

.card,
.post-card {
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover,
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 14px;
}

.label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-item strong { display: block; }
.trust-item span,
.card p,
.post-card p,
.muted { color: var(--muted); }

.notice {
  padding: 16px;
  color: #3d3212;
  background: #fff6d7;
  border-color: #f5d36e;
}

.article-shell {
  margin: 34px auto;
  padding: 34px;
}

.article-banner {
  margin: 16px 0 26px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.toc a {
  padding: 8px 10px;
  color: var(--green-dark);
  background: var(--soft);
  border-radius: 7px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

th,
td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: #f1f5f9;
  font-size: 13px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.footer {
  padding: 46px 0 92px;
  color: #dce6f5;
  background: #101827;
}

.footer a { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
}

.mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr;
  padding: 10px;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .nav {
    position: relative;
    align-items: center;
    flex-direction: row;
    min-height: 64px;
    padding: 10px 0;
  }

  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: -16px;
    left: -16px;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    color: var(--ink);
    background: rgba(255,255,255,0.99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(17,24,39,0.14);
  }

  .menu.is-open { display: flex; }
  .menu a { padding: 11px 12px; border-radius: var(--radius); }
  .menu a:hover, .menu a:focus-visible { color: var(--green-dark); background: var(--soft); }
  .menu-toggle { display: inline-flex; }
  body.nav-open { overflow: hidden; }
  body.nav-open .mobile-cta { visibility: hidden; pointer-events: none; }

  .hero-grid,
  .split,
  .trust-strip,
  .cards,
  .post-grid,
  .stat-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-shell { padding: 22px; }
  .article-shell table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mobile-cta { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span { transition: none; }
}
