/* ENJOY'S Sports Center - Modern Sleek UI System */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --bg-surface: #090d16;
  --surface-container-lowest: #050810;
  --surface-container-low: #0f1523;
  --surface-container: #141c2e;
  --surface-container-high: #1c263c;
  --surface-container-highest: #26334e;
  --surface-bright: #2d3d5d;
  --primary: #10b981;
  --primary-container: #059669;
  --on-primary: #022c22;
  --secondary: #84cc16;
  --tertiary: #38bdf8;
  --on-surface: #f1f5f9;
  --on-surface-variant: #94a3b8;
  --outline: #475569;
  --error: #f87171;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
  height: auto;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--bg-surface);
  color: var(--on-surface);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

/* Custom Scrollbars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Modern Header & Navigation Glassmorphism */
.glass-header {
  background-color: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-dock {
  background-color: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Nav Link active states */
.nav-link {
  transition: all 0.2s ease;
}

.nav-link.active {
  color: #10b981 !important;
  font-weight: 700;
}

.nav-link.active span.material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

/* Interactive Slot Cards & Extra Service Cards */
.slot-card, .extra-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 27, 38, 0.85);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.slot-card:hover, .extra-card:hover {
  border-color: rgba(52, 211, 153, 0.5);
  transform: translateY(-1px);
}

.slot-card.cursor-not-allowed,
.slot-card[data-status="booked"],
.slot-card[data-status="booked-live"],
.slot-card[data-status="blocked"] {
  pointer-events: none !important;
  cursor: not-allowed !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.slot-card:active, .extra-card:active {
  transform: scale(0.98);
}

/* Selected Slot & Selected Extra Card Styling - Ultra-high contrast, crisp & clear */
.slot-card.selected, .extra-card.selected {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(5, 150, 105, 0.42) 100%) !important;
  border: 2px solid #34d399 !important;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.35), inset 0 0 12px rgba(52, 211, 153, 0.2) !important;
  transform: scale(1.01);
}

.slot-card.selected .font-headline-lg,
.slot-card.selected span,
.extra-card.selected span {
  color: #ffffff;
}

.slot-card.selected .text-on-surface,
.extra-card.selected .text-on-surface {
  color: #ffffff !important;
}

.slot-card.selected .text-primary,
.extra-card.selected .text-primary {
  color: #34d399 !important;
}

.slot-card.selected .text-on-surface-variant,
.extra-card.selected .text-on-surface-variant {
  color: #cbd5e1 !important;
}

.slot-card.selected .bg-surface-container,
.extra-card.selected .bg-surface-container {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  color: #6ee7b7 !important;
}

.slot-card.selected .w-10.h-10,
.extra-card.selected .w-9.h-9 {
  background: rgba(52, 211, 153, 0.25) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

/* Day Chip Selection - High Contrast White Text */
.day-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.day-chip.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
}

.day-chip.active * {
  color: #ffffff !important;
}

/* View transitions & Responsive Layout */
.app-view {
  display: none !important;
  opacity: 0;
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .app-view {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Touch & Mobile Motion Optimizations */
* {
  -webkit-tap-highlight-color: transparent;
}

button, a, .day-chip, .slot-card, .nav-link, input[type="checkbox"] {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* Tactile Spring Press Feedback for Mobile */
button:active, 
a.group:active, 
a.nav-link:active,
.day-chip:active, 
.slot-card:active {
  transform: scale(0.96) !important;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-link:active span.material-symbols-outlined {
  transform: scale(1.2) translateY(-2px);
  transition: transform 0.12s ease;
}

/* View Entrance Animation */
@keyframes viewEntrance {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-view.active-view {
  display: flex !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  flex-direction: column;
  opacity: 1 !important;
  transform: none !important;
  animation: viewEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card Pop Stagger Animation */
@keyframes cardPop {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.slot-card {
  animation: cardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal Spring Motion */
.modal-overlay {
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.modal-overlay:not(.hidden) {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.modal-container {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-overlay.hidden .modal-container {
  transform: translateY(100%) scale(0.96);
  opacity: 0;
}

.modal-overlay:not(.hidden) .modal-container {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}


/* Material Symbols fill adjustment */
.icon-filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Responsive Enhancements */
@media (min-width: 768px) {
  .day-chip {
    min-width: 84px !important;
    padding: 0.75rem 0.6rem !important;
  }
  
  .glass-dock {
    border-radius: 1.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .modal-container {
    max-width: 480px !important;
    border-radius: 1.25rem !important;
  }
}
