/* ==========================================================================
   PlayZone - Sports Venue Booking Website Stylesheet
   Theme: Electric Neon Lime & Dark Futuristic Glassmorphism
   ========================================================================== */

:root {
  --brand-lime: #CCFF00;
  --brand-lime-hover: #bbf200;
  --brand-lime-glow: rgba(204, 255, 0, 0.35);
  --bg-dark: #0a0b0e;
  --bg-card: #12141a;
  --bg-card-hover: #171a23;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-lime: rgba(204, 255, 0, 0.25);
  --text-muted: #94a3b8;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0b0e;
}
::-webkit-scrollbar-thumb {
  background: #232733;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #CCFF00;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
  background-color: var(--bg-dark);
  color: #ffffff;
  overflow-x: hidden;
}

/* RTL Typography adjustments */
[dir="rtl"] {
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
}

/* Navigation Link with Green Indicator Underline (ScrollSpy) */
.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  left: 0;
  height: 2.5px;
  background: #CCFF00;
  box-shadow: 0 0 12px rgba(204, 255, 0, 0.8), 0 0 4px #CCFF00;
  border-radius: 9999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover {
  color: #CCFF00;
}
.nav-link.active {
  color: #CCFF00 !important;
  font-weight: 700;
}
.nav-link.active::after {
  transform: scaleX(1);
}

/* Glow Effects */
.glow-lime {
  box-shadow: 0 0 25px var(--brand-lime-glow);
}
.glow-lime-sm {
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}
.glow-lime-lg {
  box-shadow: 0 0 45px rgba(204, 255, 0, 0.35);
}
.text-glow {
  text-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(18, 20, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
}
.glass-panel-hover:hover {
  background: rgba(23, 26, 35, 0.9);
  border-color: rgba(204, 255, 0, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(204, 255, 0, 0.2);
}

/* Hero Background Grid Overlay */
.pitch-overlay {
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(204, 255, 0, 0.09) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(10, 11, 14, 0.45) 0%, rgba(10, 11, 14, 0.92) 80%, #0a0b0e 100%);
}

/* Subtle Animated Mesh Gradients */
.gradient-blob {
  position: absolute;
  filter: blur(90px);
  opacity: 0.18;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floatSlow 12s ease-in-out infinite alternate;
}
.blob-lime {
  background: #CCFF00;
  width: 450px;
  height: 450px;
}
.blob-emerald {
  background: #10b981;
  width: 400px;
  height: 400px;
}

@keyframes floatSlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
  100% { transform: translate(-20px, 25px) scale(0.95); }
}

/* Phone Mockup Styling */
.phone-frame {
  position: relative;
  width: 320px;
  max-width: 100%;
  background: #121318;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 
    0 0 0 4px #262934,
    0 0 0 6px #13141a,
    0 25px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(204, 255, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}
.phone-island-camera {
  width: 8px;
  height: 8px;
  background: #111e2e;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Floating Animation */
@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.3deg);
  }
}
.animate-float {
  animation: heroFloat 6s ease-in-out infinite;
}

/* Button Shimmer */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(30deg) translate(-100%, -100%);
  transition: transform 0.75s ease;
}
.btn-shimmer:hover::after {
  transform: rotate(30deg) translate(100%, 100%);
}

/* Modal Transitions */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  transform: scale(0.95) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Tab Active State Glow */
.screen-tab.active {
  background: #CCFF00 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
}

/* Toast Notification */
#toastNotification {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* ==========================================================================
   FEATURES MARQUEE TICKER — same visual height as old static bar
   ========================================================================== */

/* Outer section: same py as old bar (py-8 = 32px top/bottom) */
#featuresTicker {
  padding-top: 0;
  padding-bottom: 0;
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 28px 0; /* same as old py-8 feel */
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: tickerScrollLTR 42s linear infinite;
  will-change: transform;
}

/* LTR (English): right → left */
@keyframes tickerScrollLTR {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* RTL (Arabic): left → right */
@keyframes tickerScrollRTL {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

[dir="rtl"] .ticker-track {
  animation: tickerScrollRTL 42s linear infinite;
  flex-direction: row-reverse;
}

/* Pause on hover */
.ticker-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

/* Each item — matches old bar item layout exactly */
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  white-space: nowrap;
}

/* Icon — lime circle like old bar */
.ticker-icon-inline {
  font-size: 20px;
  color: #CCFF00;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

/* Text block stacked */
.ticker-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Big bold label (like old stat_num) */
.ticker-main {
  font-size: 20px;
  font-weight: 900;
  color: #CCFF00;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Small sub label (like old stat_lbl) */
.ticker-sub {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.2;
}

/* RTL font */
[dir="rtl"] .ticker-main,
[dir="rtl"] .ticker-sub {
  font-family: 'Cairo', sans-serif;
}

/* Separator dot */
.ticker-sep {
  color: rgba(204,255,0,0.3);
  font-size: 9px;
  flex-shrink: 0;
  user-select: none;
  padding: 0 4px;
}

/* Keep the landing page within narrow mobile viewports. */
@media (max-width: 639px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
  }

  .gradient-blob {
    width: 100vw;
    max-width: 100vw;
    height: 100vw;
  }

  .blob-lime {
    left: 0 !important;
  }

  .blob-emerald {
    right: 0 !important;
  }

  #featuresTicker,
  #featuresTicker .ticker-wrapper {
    overflow: clip;
  }

  #mainNavbar .max-w-7xl,
  #home > .max-w-7xl,
  #home .grid > *,
  #home .grid > * > * {
    min-width: 0;
  }

  #mainNavbar .flex.items-center.justify-between {
    gap: 8px;
  }

  #mainNavbar .flex.flex-col {
    min-width: 0;
  }

  #mainNavbar .text-2xl {
    font-size: 1.25rem;
  }

  #home h1,
  #home p,
  #home span {
    overflow-wrap: anywhere;
  }

  #home .inline-flex {
    max-width: 100%;
  }

  #home .glass-panel {
    max-width: 100%;
  }
}
