/* =====================================================
📄 File: style.css
🎨 Feature Table – Electric Blue + Gold Theme
Version: 2.1 – Empire tokens.css integration (2026-06-14)
Author: Roye Arguan
===================================================== */

/* Empire shared design system (gem-spec Premium Casino Editorial).
   Single source of truth — edit /assets/tokens.css to rebrand site-wide. */
@import url('/assets/tokens.css');

/* Site-specific Heebo weights (extends tokens.css 400/500/700/900 with 300/600/800 for legacy use) */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;600;800&display=swap');

html, body {
  background-color: #080d1a;
}
body {
  font-family: 'Heebo', sans-serif;
  color: #f1f5f9;
  margin: 0;
  padding: 0;
  direction: rtl;
}

/* =====================================================
✨ Global Design Tokens
===================================================== */
:root {
  /* Gold / Amber (enriched) */
  --gold: #e8b829;
  --gold-light: #fde68a;
  --gold-dark: #d4a017;
  --gold-glow: rgba(232,184,41,.15);
  --gold-muted: #92711a;

  /* Deep Blue / Surfaces */
  --deep-blue: #080d1a;
  --card-bg: #0c1222;
  --surface-elevated: #131d35;
  --surface: rgba(255,255,255,.03);

  /* Electric Blue (unified) */
  --electric: #2563eb;
  --electric-light: #60a5fa;
  --electric-glow: rgba(37,99,235,.15);
  --neon-blue: #38bdf8;
  --mid-blue: rgba(37,99,235,.08);
  --border-blue: rgba(37,99,235,.15);

  /* Borders */
  --border-subtle: rgba(255,255,255,.06);
  --border-gold: rgba(232,184,41,.15);

  /* Text (WCAG AA compliant on #080d1a) */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #7c8db0;

  /* Semantic */
  --red: #ef4444;
  --red-light: #f87171;
  --green: #22c55e;
  --green-light: #4ade80;
  --orange: #f97316;
  --purple: #a855f7;
}

/* ── Accessibility: Focus Styles ── */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Skip-to-content link (injected by navbar) */
.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #080d1a;
  padding: 8px 20px;
  border-radius: 0 0 10px 10px;
  font-weight: 800;
  font-size: 13px;
  z-index: 10000;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
}

/* Gold shimmer animation */
@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.gold-shimmer {
  background: linear-gradient(110deg, #9a6f0a 0%, #c9950f 10%, #e8b829 20%, #ffd700 35%, #fff4b0 50%, #ffd700 65%, #e8b829 80%, #c9950f 90%, #9a6f0a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
.gold-text {
  background: linear-gradient(135deg, #e8b829, #ffd700, #e8b829);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Electric blue shimmer */
@keyframes electric-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes electric-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(37,99,235,.1), 0 0 30px rgba(37,99,235,.05); }
  50% { box-shadow: 0 0 25px rgba(37,99,235,.2), 0 0 50px rgba(37,99,235,.1); }
}
@keyframes border-glow {
  0%, 100% { border-color: rgba(37,99,235,.15); }
  50% { border-color: rgba(37,99,235,.3); }
}

.electric-text {
  background: linear-gradient(110deg, #2563eb 0%, #38bdf8 30%, #93c5fd 50%, #38bdf8 70%, #2563eb 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: electric-shimmer 3s linear infinite;
}

.electric-card {
  background: linear-gradient(135deg, rgba(37,99,235,.04), rgba(37,99,235,.01));
  border: 1.5px solid rgba(37,99,235,.12);
  border-radius: 16px;
  animation: electric-pulse 4s ease-in-out infinite;
}

.electric-border {
  border-color: rgba(37,99,235,.15);
  animation: border-glow 3s ease-in-out infinite;
}

/* ── Accessibility: 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;
  }
  .gold-shimmer, .electric-text, .electric-card, .electric-border {
    animation: none !important;
  }
}

/* ── Loading Skeletons ── */
@keyframes skeleton-pulse {
  0% { opacity: .06; }
  50% { opacity: .12; }
  100% { opacity: .06; }
}
.skeleton {
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 4px; }
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-card { height: 80px; border-radius: 12px; margin-bottom: 8px; }
.skeleton-row { display: flex; align-items: center; gap: 12px; padding: 12px; }

/* =====================================================
🧭 Layout Base
===================================================== */
main {
  margin-top: 0;
  min-height: calc(100vh - 70px - 250px);
  position: relative;
  z-index: 10;
}

/* Tooltip */
.fc-tooltip {
  position: absolute;
  z-index: 9999;
  background: var(--card-bg);
  color: #e8e8e8;
  padding: 0.6rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  white-space: normal;
  max-width: 220px;
  line-height: 1.4;
}

/* =====================================================
🟨 Elements & Defaults
===================================================== */
a {
  color: var(--electric-light);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--gold);
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
}

button {
  font-family: 'Heebo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* =====================================================
💎 Buttons
===================================================== */
.btn-gold {
  background: var(--gold);
  color: var(--deep-blue);
  font-weight: 800;
  padding: 0.7rem 1.5rem;
  border-radius: 9999px;
  border: none;
  transition: background 0.3s ease, transform 0.2s;
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}
.btn-gold:active {
  transform: scale(.97);
}

.btn-electric {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-weight: 800;
  padding: 0.7rem 1.5rem;
  border-radius: 9999px;
  border: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(37,99,235,.3);
}
.btn-electric:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,.4);
}
.btn-electric:active {
  transform: scale(.97);
}

.btn-live {
  background: #dc2626;
  color: #e8e8e8;
  font-weight: 700;
  animation: pulse 1.5s infinite;
}
.btn-live:hover {
  background: #b91c1c;
}

/* =====================================================
🌟 Effects
===================================================== */
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: rgba(37,99,235,0.08);
  transform: rotate(30deg);
  transition: all 0.3s;
}
.btn-glow:hover::after {
  left: 100%;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.pulse { animation: pulse 2s infinite; }

/* Glass card with electric border */
.glass-card {
  background: linear-gradient(135deg, rgba(15,22,40,.8), rgba(15,22,40,.5));
  border: 1.5px solid var(--border-blue);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all .3s;
}
.glass-card:hover {
  border-color: rgba(37,99,235,.25);
  box-shadow: 0 4px 20px rgba(37,99,235,.08);
}

/* =====================================================
🎯 Scrollbar
===================================================== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--deep-blue);
}
::-webkit-scrollbar-thumb {
  background: rgba(37,99,235,.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(37,99,235,.4);
}

/* =====================================================
🏆 Prizes & Highlights
===================================================== */
.prize-highlight {
  background: linear-gradient(to right, #e8b829, #f5d76e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
  font-size: 1.1em;
}

/* =====================================================
☑️ Form Elements
===================================================== */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--mid-blue);
  margin: 0;
  font: inherit;
  color: var(--gold);
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid #3a4b7a;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
}
input[type="checkbox"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--gold);
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* =====================================================
🧠 Fix – clickable overlays
===================================================== */
#btn-login-google,
#btn-login-facebook,
#btn-submit {
  position: relative;
  z-index: 9999;
}

/* =====================================================
📱 Responsive
===================================================== */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.1rem; }
}

/* =====================================================
🧱 Utility Classes
===================================================== */
.bg-gold { background-color: var(--gold); color: var(--deep-blue); }
.text-gold { color: var(--gold); }
.border-gold { border-color: var(--gold); }
.hover-gold:hover { color: var(--gold); }

.shadow-gold {
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
}

/* =====================================================
🎨 High Contrast Override – Global
===================================================== */
.ev-tab, .filter-chip, .quick-link, .media-link {
  background: rgba(255,255,255,.08) !important;
  border: 1.5px solid rgba(255,255,255,.12) !important;
}
.ev-tab.active, .filter-chip.active {
  background: rgba(212,160,23,.12) !important;
  border-color: rgba(212,160,23,.3) !important;
}
.ev-tab:hover, .filter-chip:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.18) !important;
}

/* =====================================================
📱 Mobile Improvements
===================================================== */
@supports(padding: max(0px)) {
  body { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* Ensure minimum touch targets (WCAG 44px) */
button, a, .clickable, [onclick] {
  min-height: 44px;
}

/* Better text rendering on mobile */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Fix input zoom on iOS */
@media(max-width:768px) {
  input[type="text"], input[type="email"], input[type="url"],
  input[type="number"], select, textarea {
    font-size: 16px !important;
  }
}

/* Visually hidden table captions for screen readers */
table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
