/* GoalPulse Web Portal - Custom Glassmorphism & High-Tech Theme */
:root {
  --gp-primary: #35b67f;
  --gp-primary-hover: #2da16f;
  --gp-primary-subtle: rgba(53, 182, 127, 0.12);
  --gp-dark-bg: #0b0e14;
  --gp-dark-card: #161b22;
  --gp-dark-header: #1c212a;
  --gp-dark-border: rgba(255, 255, 255, 0.08);
  --gp-light-bg: #f8fafc;
  --gp-light-card: #ffffff;
  --gp-light-header: #ffffff;
  --gp-light-border: #e2e8f0;
}

body.dark-mode {
  background-color: var(--gp-dark-bg) !important;
  color: #f1f5f9 !important;
}

/* Glassmorphism Cards for Dark Mode */
.glass-card {
  background: var(--gp-dark-card);
  border: 1px solid var(--gp-dark-border);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  transition: all 0.25s ease-in-out;
}

.glass-card:hover {
  border-color: rgba(53, 182, 127, 0.35);
  box-shadow: 0 10px 30px -5px rgba(53, 182, 127, 0.15);
}

/* Country Badges */
.badge-country {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--gp-dark-border);
  color: #94a3b8;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Accent Buttons */
.btn-gp-primary {
  background-color: var(--gp-primary);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
}

.btn-gp-primary:hover {
  background-color: var(--gp-primary-hover);
  box-shadow: 0 4px 14px rgba(53, 182, 127, 0.4);
}

/* Live Pulse Indicator */
.pulse-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Pitch Diagram Styles for Football Lineups */
.football-pitch {
  background: linear-gradient(180deg, #15803d 0%, #166534 100%);
  border: 2px solid #22c55e;
  border-radius: 1rem;
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.pitch-line {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.pitch-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.pitch-half-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
}

.player-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  border: 2px solid #ffffff;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.player-node.away-node {
  background: #dc2626;
}

/* Scrollbar Hiding Utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--gp-dark-bg);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gp-primary);
}


/* ==================== LIGHT MODE ONLY OVERRIDES (Isolated to body.light-mode) ==================== */
body.light-mode {
  background-color: var(--gp-light-bg) !important;
  color: #0f172a !important;
}

body.light-mode header {
  background-color: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode footer {
  background-color: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

body.light-mode .glass-card,
body.light-mode .bg-darkcard,
body.light-mode .bg-darkbg,
body.light-mode .bg-slate-900,
body.light-mode .bg-slate-950 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .text-white,
body.light-mode .text-slate-100,
body.light-mode .text-slate-200 {
  color: #0f172a !important;
}

body.light-mode .text-slate-300 {
  color: #1e293b !important;
}

body.light-mode .text-slate-400,
body.light-mode .text-slate-500 {
  color: #475569 !important;
}

body.light-mode .bg-white\/5,
body.light-mode .bg-white\/10,
body.light-mode .bg-slate-800,
body.light-mode .bg-slate-800\/50,
body.light-mode .bg-slate-900\/80 {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

body.light-mode .border-white\/10,
body.light-mode .border-white\/5 {
  border-color: #e2e8f0 !important;
}

body.light-mode input,
body.light-mode select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body.light-mode input::placeholder {
  color: #94a3b8 !important;
}

body.light-mode .modal-content,
body.light-mode #streamModal > div,
body.light-mode #newsModal > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

body.light-mode .badge-country {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

body.light-mode ::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
}

/* PRESERVE BRAND GREEN, BLUE & RED COLORS TEXT COLOR IN LIGHT MODE */
body.light-mode .bg-emerald-600,
body.light-mode .bg-emerald-600 *,
body.light-mode .bg-emerald-500,
body.light-mode .bg-emerald-500 *,
body.light-mode .bg-blue-600,
body.light-mode .bg-blue-600 *,
body.light-mode .bg-blue-500,
body.light-mode .bg-blue-500 *,
body.light-mode .bg-red-600,
body.light-mode .bg-red-600 *,
body.light-mode .bg-red-500,
body.light-mode .bg-red-500 *,
body.light-mode .bg-gradient-to-tr *,
body.light-mode .bg-gradient-to-r * {
  color: #ffffff !important;
}

/* OVERRIDE GLASS CARD GRADIENTS IN LIGHT MODE */
body.light-mode .glass-card.bg-gradient-to-b,
body.light-mode .glass-card.bg-gradient-to-r,
body.light-mode .glass-card.bg-gradient-to-tr {
  background-image: none !important;
  background-color: #ffffff !important;
}
