/* Sport Toto Plus - Global Styles + Theme */

:root,
html[data-theme="dark"],
html.dark {
  --stp-bg: #0c1324;
  --stp-bg-soft: #070d1f;
  --stp-card: #151b2d;
  --stp-card-2: #1c2539;
  --stp-border: #2d3748;
  --stp-bright: #33394c;
  --stp-text: #f8fafc;
  --stp-muted: #94a3b8;
  --stp-gold: #eab308;
  --stp-green: #10b981;
  --stp-input: #1c2539;
}

html[data-theme="light"],
html.light {
  --stp-bg: #f1f5f9;
  --stp-bg-soft: #ffffff;
  --stp-card: #ffffff;
  --stp-card-2: #f8fafc;
  --stp-border: #e2e8f0;
  --stp-bright: #e2e8f0;
  --stp-text: #0f172a;
  --stp-muted: #64748b;
  --stp-gold: #ca8a04;
  --stp-green: #059669;
  --stp-input: #ffffff;
}

body {
  background-color: var(--stp-bg) !important;
  color: var(--stp-text) !important;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.left-panel-bg {
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}

.green-gradient-bg {
  background: linear-gradient(135deg, #065f46 0%, #059669 100%);
}

.hero-gradient {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.video-card-hover:hover .play-button {
  transform: scale(1.1);
  background-color: #ffd165;
  color: #3f2e00;
}

/* ========== Theme Switch ========== */
.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 60;
}

.theme-switch-track {
  position: relative;
  display: block;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: #33394c;
  border: 1px solid #475569;
  pointer-events: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eab308;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

html[data-theme="light"] .theme-switch-track,
html.light .theme-switch-track {
  background: #cbd5e1;
  border-color: #94a3b8;
}

html[data-theme="light"] .theme-switch-thumb,
html.light .theme-switch-thumb {
  transform: translateX(24px);
  background: #f59e0b;
  color: #fff;
}

html[data-theme="light"] .theme-icon-moon,
html.light .theme-icon-moon { display: none; }

html[data-theme="light"] .theme-icon-sun,
html.light .theme-icon-sun { display: block; }

.theme-switch:hover .theme-switch-track {
  border-color: #eab308;
}

.theme-switch:focus-visible {
  outline: 2px solid #eab308;
  outline-offset: 3px;
  border-radius: 999px;
}

/* ========== Light theme page chrome ========== */
html[data-theme="light"] header,
html.light header,
html[data-theme="light"] footer,
html.light footer {
  background-color: var(--stp-bg-soft) !important;
  border-color: var(--stp-border) !important;
  color: var(--stp-text) !important;
}

html[data-theme="light"] header .text-white,
html.light header .text-white,
html[data-theme="light"] footer .text-white,
html.light footer .text-white {
  color: #0f172a !important;
}

html[data-theme="light"] header .text-text-muted,
html.light header .text-text-muted,
html[data-theme="light"] header .text-gray-400,
html.light header .text-gray-400,
html[data-theme="light"] footer .text-text-muted,
html.light footer .text-text-muted,
html[data-theme="light"] footer .text-gray-400,
html.light footer .text-gray-400,
html[data-theme="light"] footer .text-gray-500,
html.light footer .text-gray-500,
html[data-theme="light"] footer .text-gray-300,
html.light footer .text-gray-300 {
  color: var(--stp-muted) !important;
}

html[data-theme="light"] .border-surface-bright,
html.light .border-surface-bright,
html[data-theme="light"] .border-surface-border,
html.light .border-surface-border {
  border-color: var(--stp-border) !important;
}

html[data-theme="light"] main .bg-surface,
html.light main .bg-surface,
html[data-theme="light"] main .bg-surface-container,
html.light main .bg-surface-container,
html[data-theme="light"] main .bg-surface-container-low,
html.light main .bg-surface-container-low,
html[data-theme="light"] main .bg-surface-container-lowest,
html.light main .bg-surface-container-lowest,
html[data-theme="light"] main .bg-surface-bright,
html.light main .bg-surface-bright {
  background-color: var(--stp-card) !important;
  color: var(--stp-text);
}

html[data-theme="light"] main .bg-surface-container-lowest,
html.light main .bg-surface-container-lowest {
  background-color: #f8fafc !important;
}

html[data-theme="light"] main .text-white,
html.light main .text-white {
  color: #0f172a !important;
}

html[data-theme="light"] main .text-text-muted,
html.light main .text-text-muted,
html[data-theme="light"] main .text-gray-400,
html.light main .text-gray-400,
html[data-theme="light"] main .text-gray-500,
html.light main .text-gray-500 {
  color: var(--stp-muted) !important;
}

html[data-theme="light"] main .text-gray-300,
html.light main .text-gray-300 {
  color: #475569 !important;
}

html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
html.light input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] textarea,
html.light textarea,
html[data-theme="light"] select,
html.light select {
  background-color: var(--stp-input) !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] a.border-surface-border,
html.light a.border-surface-border {
  color: #0f172a !important;
}

html[data-theme="light"] .hover\:bg-surface-bright:hover,
html.light .hover\:bg-surface-bright:hover {
  background-color: #e2e8f0 !important;
}

/* Keep accent panels readable */
html[data-theme="light"] .left-panel-bg .text-white,
html.light .left-panel-bg .text-white,
html[data-theme="light"] .green-gradient-bg .text-white,
html.light .green-gradient-bg .text-white,
html[data-theme="light"] .hero-gradient .text-white,
html.light .hero-gradient .text-white,
html[data-theme="light"] .left-panel-bg h1,
html.light .left-panel-bg h1,
html[data-theme="light"] .left-panel-bg p,
html.light .left-panel-bg p,
html[data-theme="light"] .left-panel-bg span,
html.light .left-panel-bg span,
html[data-theme="light"] .green-gradient-bg h1,
html.light .green-gradient-bg h1,
html[data-theme="light"] .green-gradient-bg p,
html.light .green-gradient-bg p,
html[data-theme="light"] .green-gradient-bg span,
html.light .green-gradient-bg span,
html[data-theme="light"] .bg-black .text-white,
html.light .bg-black .text-white,
html[data-theme="light"] .bg-black\/40 .text-white,
html.light .bg-black\/40 .text-white,
html[data-theme="light"] .bg-black\/40 .font-bold,
html.light .bg-black\/40 .font-bold,
html[data-theme="light"] .absolute.inset-0 .text-white,
html.light .absolute.inset-0 .text-white,
html[data-theme="light"] [class*="from-[#065f46]"] .text-white,
html.light [class*="from-[#065f46]"] .text-white,
html[data-theme="light"] [class*="from-[#065f46]"] p,
html.light [class*="from-[#065f46]"] p {
  color: #fff !important;
}

html[data-theme="light"] .left-panel-bg .text-brand-gold,
html.light .left-panel-bg .text-brand-gold,
html[data-theme="light"] .green-gradient-bg .text-brand-gold,
html.light .green-gradient-bg .text-brand-gold,
html[data-theme="light"] .left-panel-bg .text-primary,
html.light .left-panel-bg .text-primary {
  color: #fde047 !important;
}
