/* mahadevnewid.co — Production Critical Stylesheet */
:root {
  --bg: #08100A;
  --bg-2: #0F1A10;
  --bg-3: #16241A;
  --panel: #F5EEDF;
  --panel-ink: #14200F;
  --gold: #E8C36A;
  --gold-deep: #C9A24B;
  --red: #C0392B;
  --cream: #F5EEDF;
  --muted: #9DAA97;
  --line: #243528;
  --line-cream: #DFD3BA;
  --font-display: "Cinzel", "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 96px; /* space for mobile sticky bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

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

/* Accessibility Focus Ring */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 18px;
  font-weight: 700;
  z-index: 9999;
  border-radius: 6px;
  transition: top 160ms var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.prose-container {
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
}

/* Typography Classes */
.font-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.text-gold {
  color: var(--gold);
}

.text-muted {
  color: var(--muted);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
  border: 1px solid transparent;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 160ms var(--ease);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--bg);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(232, 195, 106, 0.2);
}

.btn-gold:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Header */
.site-header {
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-crest {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-crest svg {
  width: 38px;
  height: 38px;
  color: var(--gold);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--cream);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  transition: all 160ms var(--ease);
}

.nav-pill:hover {
  color: var(--gold);
}

.nav-pill.active {
  background-color: var(--gold);
  color: var(--bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-pill {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 840px) {
  .support-pill {
    display: flex;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 48px 0 64px 0;
  overflow: hidden;
  background: radial-gradient(circle at 75% 30%, rgba(232, 195, 106, 0.12) 0%, rgba(8, 16, 10, 0) 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--gold);
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .hero-h1 {
    font-size: 3.5rem;
  }
}

.hero-banner-strip {
  display: inline-block;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-phone-subtext {
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-phone-subtext a {
  color: var(--gold);
  font-weight: 700;
}

.hero-media-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

/* Trust Band */
.trust-band {
  background-color: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.trust-band-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .trust-band-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-band-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--cream);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Cream Content Panel */
.panel-cream {
  background-color: var(--panel);
  color: var(--panel-ink);
  border-radius: 16px;
  padding: 32px 20px;
  margin-top: 32px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .panel-cream {
    padding: 48px 36px;
  }
}

.panel-cream h2, .panel-cream h3 {
  color: var(--panel-ink);
  font-family: var(--font-display);
}

.panel-cream p {
  color: #243528;
}

/* Category Rail */
.cat-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

@media (min-width: 1024px) {
  .cat-rail {
    grid-template-columns: repeat(10, 1fr);
  }
}

.cat-tile {
  background-color: #ECE3D0;
  border: 1px solid var(--line-cream);
  border-radius: 10px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--panel-ink);
  transition: all 160ms var(--ease);
}

.cat-tile:hover, .cat-tile.active {
  background-color: var(--bg);
  color: var(--gold);
  border-color: var(--gold);
}

.cat-tile svg {
  width: 24px;
  height: 24px;
}

/* Live Betting Panel */
.live-betting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--panel-ink);
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--red);
  box-shadow: 0 0 10px rgba(192, 57, 43, 0.7);
  animation: pulseLive 1.5s infinite ease-in-out;
}

@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

.live-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.live-tab {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: #E2D7C0;
  color: var(--panel-ink);
  border: none;
  cursor: pointer;
}

.live-tab.active {
  background-color: var(--gold-deep);
  color: #FFFFFF;
}

.live-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 992px) {
  .live-grid {
    grid-template-columns: repeat(3, 1fr) 1.1fr;
  }
}

.match-card {
  background-color: var(--bg-2);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.match-league {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.pill-live {
  background-color: var(--red);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.match-teams {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.odds-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.odd-chip {
  background-color: var(--bg-3);
  border: 1px solid var(--line);
  padding: 8px 4px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.live-casino-promo-card {
  background: linear-gradient(135deg, #14200F 0%, #08100A 100%);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 24px;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Three Image Promo Cards */
.promo-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
}

@media (min-width: 768px) {
  .promo-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.promo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--bg-2);
}

.promo-card-content {
  padding: 20px;
}

.promo-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}

/* Feature Strip */
.feature-strip {
  background-color: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin: 32px 0;
}

.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .feature-strip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-strip-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-box svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream);
}

.feature-desc {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Long Form Content Surface */
.longform-section {
  padding: 48px 0;
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--panel-ink);
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin-top: 48px;
  margin-bottom: 18px;
  color: var(--panel-ink);
  line-height: 1.25;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--panel-ink);
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.article-content li {
  margin-bottom: 10px;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: 10px;
  border: 1px solid var(--line-cream);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background-color: #FFFFFF;
}

.styled-table th {
  background-color: #ECE3D0;
  color: var(--panel-ink);
  padding: 14px 16px;
  font-weight: 700;
  font-family: var(--font-display);
  border-bottom: 2px solid var(--line-cream);
}

.styled-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-cream);
  color: #243528;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--line-cream);
  padding: 18px 0;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--panel-ink);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 1rem;
  color: #243528;
  line-height: 1.65;
}

/* Mobile Sticky WhatsApp CTA */
.mobile-sticky-cta {
  display: block;
  position: fixed;
  bottom: 64px;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 8px 12px;
  background: rgba(8, 16, 10, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none;
  }
}

.whatsapp-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #25D366;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

/* Mobile Bottom Tab Bar */
.mobile-bottom-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--bg);
  border-top: 1px solid var(--line);
  z-index: 100;
  align-items: center;
  justify-content: space-around;
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 56px;
  min-height: 56px;
}

.tab-item.active {
  color: var(--gold);
}

.tab-item svg {
  width: 22px;
  height: 22px;
}

/* Modal Popup */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-2);
  border: 1px solid var(--gold);
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.site-footer {
  background-color: var(--bg);
  border-top: 1px solid var(--line);
  padding: 64px 0 36px 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-nav-list a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
