/* CricPulse – navy / white / cyan theme */
:root {
  --bg: #0a1224;
  --bg-2: #0f1a33;
  --card: #132143;
  --line: #1f3260;
  --text: #ffffff;
  --muted: #a9b6d3;
  --cyan: #00c8f5;
  --cyan-dark: #009dc2;
  --live: #ff3b5c;
  --win: #2ee59d;
  --radius: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .brand, .btn, .tag, .nav a {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; text-transform: uppercase; margin-bottom: .75rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; }
p + p { margin-top: .9rem; }
.accent { color: var(--cyan); }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--cyan); color: #000; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 18, 36, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-size: 1.9rem; font-weight: 900; color: var(--text); text-transform: uppercase; line-height: 1; }
.brand span { color: var(--cyan); }
.brand:hover { text-decoration: none; }
.nav ul { display: flex; gap: 4px; list-style: none; }
.nav a { color: var(--text); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--card); color: var(--cyan); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 20px 16px; }
}

/* Breadcrumb */
.breadcrumb { font-size: .9rem; color: var(--muted); padding-top: 22px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }

/* Hero */
.hero { padding: 56px 0 40px; background: radial-gradient(ellipse at top right, rgba(0, 200, 245, .18), transparent 60%); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin-top: 14px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn { display: inline-block; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; padding: 11px 22px; border-radius: 10px; border: 2px solid var(--cyan); cursor: pointer; }
.btn-primary { background: var(--cyan); color: #04111f; }
.btn-primary:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--cyan); }
.btn-ghost:hover { background: rgba(0, 200, 245, .1); text-decoration: none; }

/* Grids & cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card:hover { border-color: var(--cyan-dark); }
.card a.stretched { color: var(--text); }
.tag { display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase; padding: 2px 9px; border-radius: 6px; background: rgba(0, 200, 245, .15); color: var(--cyan); }
.tag.live { background: rgba(255, 59, 92, .18); color: var(--live); }
.tag.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 6px; vertical-align: middle; animation: pulse 1.2s infinite; }
.tag.done { background: rgba(46, 229, 157, .15); color: var(--win); }
@keyframes pulse { 50% { opacity: .25; } }

/* Match cards */
.match-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .85rem; color: var(--muted); }
.team-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.team-row .team { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.team-row img { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); }
.team-row .score { font-family: "Barlow Condensed", sans-serif; font-size: 1.35rem; font-weight: 800; }
.team-row .overs { font-size: .85rem; color: var(--muted); margin-left: 6px; font-family: "Inter", sans-serif; font-weight: 400; }
.match-status { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--cyan); font-size: .92rem; font-weight: 600; }
.match-venue { font-size: .82rem; color: var(--muted); margin-top: 4px; }

.widget-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; }
.filters button.active, .filters button:hover { border-color: var(--cyan); color: var(--cyan); }
.notice { background: rgba(0, 200, 245, .08); border: 1px dashed var(--cyan-dark); border-radius: 10px; padding: 12px 16px; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.updated { font-size: .85rem; color: var(--muted); }
.empty { color: var(--muted); padding: 30px; text-align: center; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-2); color: var(--cyan); font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; font-size: 1rem; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: center; }
table.facts { min-width: 0; }
.facts th { width: 36%; font-size: .95rem; }
.prose .table-wrap { margin: 1rem 0 1.4rem; }
.prose h2[id] { scroll-margin-top: 90px; }
.prose .actions { margin: 1.2rem 0; }

/* Blog */
.post-list { display: grid; gap: 18px; }
.post-list .card h2 { font-size: 1.45rem; margin: 6px 0 8px; }
.post-list .card h2 a { color: var(--text); }
.post-list .card h2 a:hover { color: var(--cyan); }

/* WhatsApp support button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #062b14; font-weight: 800; padding: 11px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.wa-float:hover { background: #1ebe5b; text-decoration: none; }
.btn-wa { background: #25d366; border-color: #25d366; color: #062b14; }
.btn-wa:hover { background: #1ebe5b; border-color: #1ebe5b; text-decoration: none; }

/* Article */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { margin: .8rem 0 .8rem 1.4rem; }
.prose li { margin: .3rem 0; }
.meta { color: var(--muted); font-size: .9rem; margin-top: 10px; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { color: var(--cyan); margin-bottom: 8px; }

/* Forms */
form .field { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, textarea { width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; }
input:focus, textarea:focus { outline: 2px solid var(--cyan); border-color: transparent; }

/* Footer */
.site-footer { background: #070d1b; border-top: 1px solid var(--line); padding: 44px 0 24px; margin-top: 40px; font-size: .93rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.6fr repeat(4, 1fr); }
.footer-grid h3 { font-size: 1.05rem; text-transform: uppercase; color: var(--cyan); font-family: "Barlow Condensed", sans-serif; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; color: var(--muted); font-size: .85rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
