/* =========================================================
   iplScoreTrack.com — Main Stylesheet
   IPL cricket data + predictions, mobile-first responsive
   ========================================================= */

:root {
  /* Brand colors — IPL palette: blue + orange */
  --brand: #1565C0;
  --brand-dark: #0D47A1;
  --brand-light: #1976D2;
  --accent: #FF6600;
  --accent-dark: #E55C00;
  --accent-light: #FF8533;
  --brand-green: #2E7D32;

  --bg-primary: #1565C0;
  --bg-secondary: #1251A3;
  --bg-tertiary: #1040A0;
  --bg-card: #0D47A1;
  --bg-hover: #1251A3;

  --text-primary: #ffffff;
  --text-secondary: #d0e4ff;
  --text-muted: #90bce8;
  --text-accent: #ffd700;

  --border: #1976D2;
  --border-light: #2196F3;

  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --s-xs: 4px; --s-sm: 8px; --s-md: 16px; --s-lg: 24px; --s-xl: 40px; --s-2xl: 64px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  --glow: 0 0 20px var(--accent);

  --t-fast: .15s ease;
  --t-normal: .3s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: linear-gradient(160deg, #1251A3 0%, #1976D2 40%, #1565C0 100%) fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #90CAF9; text-decoration: underline; transition: color var(--t-fast); }
a:hover { color: #fff; text-decoration: underline; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* TYPOGRAPHY */
h1,h2,h3,h4,h5,h6 { color: var(--text-primary); font-weight: 700; line-height: 1.25; margin-bottom: var(--s-md); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: var(--s-xl); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: var(--s-lg); }
h4 { font-size: 1.1rem; margin-top: var(--s-md); color: var(--accent-light); }
p { margin-bottom: var(--s-md); }
strong, b { color: var(--text-primary); font-weight: 600; }

/* LAYOUT */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s-md); }
.container-narrow { max-width: 900px; }
main { min-height: 60vh; padding-bottom: var(--s-2xl); }
section { margin-bottom: var(--s-2xl); }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--brand); border-bottom: 3px solid var(--accent); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s-md); padding-bottom: var(--s-md); }

.logo { display: flex; align-items: center; gap: var(--s-sm); text-decoration: none; font-weight: 800; font-size: 1.25rem; color: var(--text-primary); }
.logo img { max-height: 40px; }

.site-header nav { display: flex; align-items: center; gap: 12px; position: relative; }
.nav-menu { display: flex; align-items: center; gap: var(--s-lg); list-style: none; }
.nav-menu li { position: relative; }
.nav-menu a { color: rgba(255,255,255,.9); font-weight: 500; font-size: .95rem; padding: var(--s-sm) 0; text-decoration: none; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-light); text-decoration: none; }
.nav-cta { background: var(--accent); color: #fff !important; padding: var(--s-sm) var(--s-md); border-radius: var(--r-md); font-weight: 700; box-shadow: var(--shadow-sm); transition: all var(--t-normal); }
.nav-cta:hover { background: var(--accent-dark); text-decoration: none !important; box-shadow: var(--glow); transform: translateY(-1px); }

.mobile-actions { display: none; }
.mob-btn { flex: 1; text-align: center; padding: 11px 8px; border-radius: var(--r-md); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.mob-btn-reg { background: var(--accent); color: #fff; }
.mob-btn-reg:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.mob-btn-schedule { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.mob-btn-schedule:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; padding: var(--s-sm); }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: all var(--t-normal); }

/* HERO */
.hero { position: relative; padding: var(--s-2xl) 0; background: transparent; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 200%; background: radial-gradient(circle, var(--accent) 0%, transparent 60%); opacity: .08; pointer-events: none; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { max-width: 800px; margin-bottom: var(--s-lg); }
.hero-lead { font-size: 1.125rem; color: var(--text-secondary); max-width: 100%; margin-bottom: var(--s-xl); }
.hero-banner-img { display: block; width: 100%; height: auto; border-radius: var(--r-md); margin: var(--s-lg) 0; }

/* MATCH CARDS (вместо game-cards) */
.match-hero-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-md); margin: var(--s-xl) 0; }
.match-card { background: var(--bg-card); border-radius: var(--r-md); padding: var(--s-lg); border: 1px solid var(--border); transition: all var(--t-normal); }
.match-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.match-card .match-label { display: inline-block; font-size: .8rem; color: var(--accent-light); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--s-sm); }
.match-card .teams { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--s-sm); }
.match-card .meta { font-size: .9rem; color: var(--text-muted); margin-bottom: var(--s-md); }
.match-card .odds-row { display: flex; justify-content: space-between; gap: var(--s-sm); margin-bottom: var(--s-md); }
.match-card .odds-cell { flex: 1; background: var(--bg-tertiary); padding: var(--s-sm); border-radius: var(--r-sm); text-align: center; }
.match-card .odds-cell .team { font-size: .85rem; color: var(--text-muted); display: block; }
.match-card .odds-cell .odds { font-size: 1.1rem; font-weight: 700; color: var(--accent-light); }
.match-card .btn { width: 100%; }

/* PROMO BANNER */
.promo-banner { background: var(--brand); color: #fff; padding: var(--s-xl); border-radius: var(--r-lg); text-align: center; margin: var(--s-xl) 0; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; border: 2px solid var(--accent); }
.promo-banner::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,102,0,.08) 0%, transparent 50%); }
.promo-banner > * { position: relative; z-index: 2; }
.promo-banner h2 { color: #fff; font-size: 2rem; margin-top: 0; }

/* BUTTONS */
.btn { display: inline-block; padding: var(--s-md) var(--s-lg); border-radius: var(--r-md); font-weight: 700; font-size: 1rem; text-decoration: none; transition: all var(--t-normal); cursor: pointer; text-align: center; line-height: 1; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn { text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; text-decoration: none; box-shadow: var(--glow); transform: translateY(-2px); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-hover); text-decoration: none; }
.btn-green { background: var(--brand-green); color: #fff; }
.btn-green:hover { background: #1b5e20; color: #fff; text-decoration: none; }
.btn-large { padding: var(--s-lg) var(--s-xl); font-size: 1.125rem; }
.btn-block { display: block; width: 100%; }

/* CONTENT IMAGES */
.content-img { display: block; max-width: 800px; width: 100%; height: auto; margin: 1.5rem auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); }

/* CARDS */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-lg); transition: border-color var(--t-fast); }
.card:hover { border-color: var(--border-light); }
.card h3 { margin-top: 0; }

/* TABLES */
table { width: 100%; border-collapse: collapse; margin: var(--s-lg) 0; background: var(--bg-card); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
thead th { background: var(--bg-tertiary); color: var(--text-primary); padding: var(--s-md); text-align: left; font-weight: 600; border-bottom: 2px solid var(--accent); }
tbody td { padding: var(--s-md); border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
tbody td:first-child { color: var(--text-primary); font-weight: 500; }
.table-wrapper { overflow-x: auto; margin: var(--s-lg) 0; }

/* LIVE MATCH FEED (вместо winnings) */
.live-feed { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-lg); margin: var(--s-xl) 0; }
.live-feed h3 { display: flex; align-items: center; gap: var(--s-sm); margin-top: 0; }
.live-feed h3::before { content: ''; width: 10px; height: 10px; background: var(--success); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.live-list { display: grid; gap: var(--s-sm); }
.live-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); padding: var(--s-sm) var(--s-md); background: var(--bg-card); border-radius: var(--r-sm); border-left: 3px solid var(--accent); }
.live-row .teams { color: var(--text-primary); font-weight: 500; font-size: .95rem; }
.live-row .status { color: var(--text-muted); font-size: .85rem; }
.live-row .score { color: var(--success); font-weight: 700; }

/* FAQ ACCORDION */
.faq-list { display: grid; gap: var(--s-sm); }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: var(--s-md) var(--s-lg); background: transparent; color: var(--text-primary); font-size: 1rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; transition: background var(--t-fast); }
.faq-question:hover { background: var(--bg-hover); }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 300; transition: transform var(--t-normal); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 var(--s-lg) var(--s-lg); color: var(--text-secondary); }
.faq-item.open .faq-answer { display: block; }

/* BREADCRUMBS */
.breadcrumbs { font-size: .9rem; color: var(--text-muted); padding: var(--s-md) 0; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-light); }
.breadcrumbs .sep { margin: 0 var(--s-sm); }

/* AUTHOR BOX */
.author-box { display: flex; gap: var(--s-lg); align-items: start; background: var(--bg-card); padding: var(--s-lg); border-radius: var(--r-md); margin: var(--s-xl) 0; border: 1px solid var(--border); }
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h3 { margin: 0 0 var(--s-xs); color: var(--text-primary); }
.author-box .role { color: var(--accent-light); font-size: .9rem; font-weight: 500; margin-bottom: var(--s-sm); }
.author-box p { font-size: .95rem; margin: 0; }

/* STEPS */
.steps { counter-reset: step; display: grid; gap: var(--s-md); margin: var(--s-lg) 0; }
.step { counter-increment: step; background: var(--bg-card); padding: var(--s-lg); border-radius: var(--r-md); border-left: 3px solid var(--accent); position: relative; padding-left: var(--s-2xl); }
.step::before { content: counter(step); position: absolute; left: var(--s-lg); top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem; }
.step h3 { margin: 0 0 var(--s-xs); font-size: 1.05rem; color: var(--text-primary); }

/* PROS/CONS */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); margin: var(--s-lg) 0; }
.pros, .cons { background: var(--bg-card); padding: var(--s-lg); border-radius: var(--r-md); border: 1px solid var(--border); }
.pros h3 { color: var(--success); }
.cons h3 { color: var(--danger); }
.pros ul li::before { content: '✓ '; color: var(--success); font-weight: 700; }
.cons ul li::before { content: '✗ '; color: var(--danger); font-weight: 700; }
.pros ul li, .cons ul li { padding: var(--s-sm) 0; }

/* FOOTER */
.site-footer { background: #0D47A1; border-top: 3px solid var(--accent); padding: var(--s-2xl) 0 var(--s-lg); margin-top: var(--s-2xl); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-xl); margin-bottom: var(--s-xl); }
.footer-col h4 { color: var(--text-primary); font-size: 1rem; margin-bottom: var(--s-md); }
.footer-col ul li { padding: var(--s-xs) 0; }
.footer-col a { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--accent-light); }
.footer-legal { text-align: center; color: var(--text-muted); font-size: .85rem; line-height: 1.7; padding-top: var(--s-lg); border-top: 1px solid var(--border); }
.footer-legal p { margin-bottom: var(--s-sm); }

/* UTILITIES */
.text-center { text-align: center; }
.text-accent { color: var(--text-accent); }
.text-brand { color: var(--accent-light); }
.bg-card { background: var(--bg-card); padding: var(--s-lg); border-radius: var(--r-md); }
.mb-0 { margin-bottom: 0; } .mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-md); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .site-header { position: relative; }
  .site-header nav { position: static; }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 999; background: var(--brand-dark); flex-direction: column; padding: var(--s-md); border-top: 1px solid var(--border); align-items: stretch; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: var(--s-md); border-bottom: 1px solid var(--border); }
  .nav-menu .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-actions { display: flex; gap: 8px; padding: 8px 5mm; border-top: 1px solid var(--border); background: var(--brand); }

  .match-hero-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .hero { padding: var(--s-xl) 0; }
  .promo-banner { padding: var(--s-lg); }
  .promo-banner h2 { font-size: 1.5rem; }
}

@media print {
  .site-header, .site-footer, .hamburger, .mobile-actions { display: none; }
  body { background: #fff; color: #000; }
}
