/* ==========================================================================
   ACLLEAGUE Cricket League - Master Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --bg-dark: #060b18;
  --bg-surface: #0a1329;
  --bg-card: rgba(12, 24, 52, 0.85);
  --bg-card-hover: rgba(18, 35, 75, 0.95);
  --bg-glass: rgba(15, 29, 64, 0.6);
  
  --primary-gold: #f5a623;
  --primary-gold-hover: #ffb833;
  --primary-gold-glow: rgba(245, 166, 35, 0.35);
  
  --primary-blue: #1a73e8;
  --accent-cyan: #00d2ff;
  --accent-blue-glow: rgba(0, 210, 255, 0.3);
  
  --text-main: #ffffff;
  --text-muted: #8e9ebb;
  --text-dim: #55688a;
  
  --border-color: rgba(46, 75, 135, 0.4);
  --border-highlight: rgba(0, 210, 255, 0.35);
  --border-gold: rgba(245, 166, 35, 0.4);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 150, 255, 0.05);
  --shadow-glow: 0 0 25px rgba(0, 210, 255, 0.25);
  --shadow-gold: 0 0 20px rgba(245, 166, 35, 0.4);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(13, 44, 94, 0.6) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(0, 110, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(245, 166, 35, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Background Stadium Light Beams */
.stadium-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stadium-lights::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 15%;
  width: 300px;
  height: 500px;
  background: radial-gradient(ellipse at top, rgba(0, 210, 255, 0.18) 0%, transparent 70%);
  transform: rotate(-25deg);
}

.stadium-lights::after {
  content: '';
  position: absolute;
  top: -150px;
  right: 15%;
  width: 300px;
  height: 500px;
  background: radial-gradient(ellipse at top, rgba(245, 166, 35, 0.12) 0%, transparent 70%);
  transform: rotate(25deg);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1b75d0 0%, #0c4ea2 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 210, 255, 0.4);
  box-shadow: 0 4px 15px rgba(27, 117, 208, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #248bf5 0%, #105bbd 100%);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #ffd000 0%, #f5a623 100%);
  color: #060b18;
  font-weight: 800;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ffe043 0%, #ffb833 100%);
  box-shadow: 0 6px 25px rgba(245, 166, 35, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(15, 29, 64, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(22, 43, 94, 0.8);
}

.btn-squad {
  background: rgba(18, 38, 82, 0.8);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #ffffff;
  font-size: 12px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}

.btn-squad:hover {
  background: #1a73e8;
  border-color: #00d2ff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.btn-view-all {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-gold);
  border: 1px solid var(--primary-gold);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
}

.btn-view-all:hover {
  background: var(--primary-gold);
  color: #000;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(6, 11, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(46, 75, 135, 0.3);
  z-index: 100;
  padding: 14px 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.4));
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 0;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: var(--primary-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gold);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}

/* ==========================================================================
   Page Headers / Sub Banners
   ========================================================================== */
.page-banner {
  text-align: center;
  padding: 42px 0 28px;
  position: relative;
}

.page-banner-title {
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(0, 180, 255, 0.35);
  margin-bottom: 6px;
}

.page-banner-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Hero Section (Home Page)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 30px 0 20px;
  overflow: hidden;
}

.hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(8, 20, 48, 0.95) 0%, rgba(4, 10, 24, 0.95) 100%);
  border: 1px solid rgba(46, 75, 135, 0.45);
  border-radius: var(--radius-lg);
  padding: 45px 50px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background: radial-gradient(circle at 75% 50%, rgba(27, 117, 208, 0.3) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.hero-title .highlight {
  color: #00d2ff;
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.hero-title .gold {
  color: var(--primary-gold);
  text-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
}

.hero-description {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: absolute;
  right: 20px;
  bottom: 0;
  height: 100%;
  width: 48%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.hero-batsman-img {
  height: 105%;
  object-fit: cover;
  object-position: center top;
  filter: drop-shadow(0 0 35px rgba(0, 150, 255, 0.4));
  mask-image: linear-gradient(to right, transparent, black 15%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 90%, transparent);
}

/* ==========================================================================
   Upcoming Match Bar
   ========================================================================== */
.upcoming-match-bar {
  margin: 20px 0;
  background: rgba(10, 20, 44, 0.9);
  border: 1px solid rgba(46, 75, 135, 0.5);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.match-bar-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-tag {
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 210, 255, 0.15);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.match-num {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.match-teams-duel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-duel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.team-duel-icon {
  width: 28px;
  height: 28px;
}

.duel-vs {
  font-size: 11px;
  font-weight: 900;
  color: var(--primary-gold);
  background: rgba(245, 166, 35, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.match-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.match-bar-info .date-time {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   Home 2-Column Grid (Points Table Top 4 & News)
   ========================================================================== */
.home-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 24px 0;
}

.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(46, 75, 135, 0.3);
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary-gold);
  border-radius: 2px;
  display: inline-block;
}

/* Points Table Component */
.league-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.league-table th {
  background: rgba(18, 35, 75, 0.6);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
}

.league-table th.th-team {
  text-align: left;
  padding-left: 12px;
}

.league-table td {
  padding: 11px 8px;
  border-bottom: 1px solid rgba(46, 75, 135, 0.2);
  color: var(--text-main);
  font-weight: 500;
}

.league-table tr:hover {
  background: rgba(22, 45, 95, 0.4);
}

.league-table td.td-pos {
  font-weight: 700;
  color: var(--primary-gold);
}

.league-table td.td-team {
  text-align: left;
  font-weight: 700;
  padding-left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.league-table td.td-pts {
  font-weight: 800;
  color: #00d2ff;
}

.table-team-badge {
  width: 22px;
  height: 22px;
}

.table-footer-action {
  text-align: center;
  margin-top: 14px;
}

.view-full-table-link {
  color: var(--primary-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.view-full-table-link:hover {
  text-decoration: underline;
}

/* News List Component */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item-card {
  display: flex;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(14, 27, 60, 0.5);
  border: 1px solid rgba(46, 75, 135, 0.25);
  transition: all 0.25s ease;
  text-decoration: none;
}

.news-item-card:hover {
  background: rgba(20, 42, 90, 0.7);
  border-color: rgba(0, 210, 255, 0.4);
  transform: translateX(4px);
}

.news-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #10244c, #1f4287);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.news-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.35;
}

.news-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Highlights & Reels Section
   ========================================================================== */
.highlights-section {
  margin: 28px 0;
}

.section-head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title-tag {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-tag::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--primary-gold);
  border-radius: 2px;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.reel-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  cursor: pointer;
}

.reel-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 210, 255, 0.2);
}

.reel-thumb-box {
  position: relative;
  height: 130px;
  background: linear-gradient(135deg, #091530 0%, #152e64 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reel-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.4s ease;
}

.reel-card:hover .reel-thumb-box img {
  transform: scale(1.08);
}

.play-button-overlay {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060b18;
  font-size: 16px;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
  transition: all 0.3s ease;
}

.reel-card:hover .play-button-overlay {
  transform: scale(1.15);
  background: #ffd000;
  box-shadow: 0 0 20px rgba(255, 208, 0, 0.8);
}

.reel-title {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Partners Strip
   ========================================================================== */
.partners-section {
  margin: 35px 0 20px;
  text-align: center;
}

.partners-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.partners-heading::before,
.partners-heading::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--border-color);
}

.partners-heading::before { right: 100%; margin-right: 15px; }
.partners-heading::after { left: 100%; margin-left: 15px; }

.partners-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.partner-badge {
  background: rgba(14, 28, 62, 0.6);
  border: 1px solid rgba(46, 75, 135, 0.4);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #8da4c8;
  transition: all 0.3s ease;
}

.partner-badge:hover {
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 50px;
  background: #040813;
  border-top: 1px solid rgba(46, 75, 135, 0.35);
  padding: 45px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 35px;
  margin-bottom: 35px;
}

.footer-col-about {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 290px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary-gold);
  transform: translateX(3px);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(18, 38, 80, 0.7);
  border: 1px solid rgba(46, 75, 135, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.social-icon-btn:hover {
  background: #1a73e8;
  border-color: #00d2ff;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.newsletter-input-group {
  display: flex;
  position: relative;
}

.newsletter-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(10, 20, 44, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 13px;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.newsletter-submit-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  padding: 0 16px;
  background: #1a73e8;
  border: none;
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.newsletter-submit-btn:hover {
  background: #248bf5;
}

.footer-bottom {
  border-top: 1px solid rgba(46, 75, 135, 0.2);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links a:hover {
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 992px) {
  .hero-card {
    flex-direction: column;
    padding: 35px 25px;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    display: none;
  }
  .home-dual-grid {
    grid-template-columns: 1fr;
  }
  .reels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .upcoming-match-bar {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .reels-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 32px;
  }
}
