/* ============================================
   Preseason Hockey Lab – Custom Styles
   ============================================ */

/* Base */
html { scroll-behavior: smooth; }

body {
  background-color: #0a0e1a;
  color: #ffffff;
}

/* Light mode overrides */
html.light body { background-color: #f8fafc; color: #0f172a; }
html.light #navbar { background: rgba(248, 250, 252, 0.95); }
html.light .info-card { background: rgba(255,255,255,0.8); border-color: #e2e8f0; }
html.light .training-card { background: rgba(255,255,255,0.8); border-color: #e2e8f0; }
html.light .form-input { background: #ffffff; border-color: #cbd5e1; color: #0f172a; }
html.light .form-label { color: #334155; }
html.light footer { background: #f1f5f9; border-color: #e2e8f0; }

/* ============================================
   Navbar
   ============================================ */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1);
}

html.light #navbar.scrolled {
  background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

/* Active nav link */
.nav-link.active { color: #00d4ff !important; }

/* ============================================
   Hero
   ============================================ */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 26, 0.3) 0%,
    rgba(10, 14, 26, 0.2) 30%,
    rgba(10, 14, 26, 0.6) 70%,
    rgba(10, 14, 26, 0.95) 100%
  );
}

/* Hero text animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-down {
  opacity: 0;
  animation: fadeInDown 0.8s ease 0.2s forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.9s ease 0.4s forwards;
}

.animate-fade-in-delay {
  opacity: 0;
  animation: fadeIn 0.9s ease 0.6s forwards;
}

.animate-fade-in-delay2 {
  opacity: 0;
  animation: fadeIn 0.9s ease 0.9s forwards;
}

/* ============================================
   Marquee
   ============================================ */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 18s linear infinite;
  display: inline-flex;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Form Styles
   ============================================ */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background: rgba(30, 42, 58, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  color: #ffffff;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-input::placeholder { color: #475569; }

.form-input:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2300d4ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-select option {
  background: #111827;
  color: #ffffff;
}

.form-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.25rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: transparent;
  cursor: pointer;
  accent-color: #00d4ff;
}

textarea.form-input { font-family: inherit; }

/* ============================================
   Gallery Lightbox
   ============================================ */
#lightbox {
  animation: none;
}

#lightbox.active {
  display: flex !important;
  animation: fadeIn 0.2s ease;
}

#lightbox-img {
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

/* ============================================
   Tailwind color extensions via CSS vars
   (used with tailwind extend config above)
   ============================================ */
:root {
  --color-ice: #00d4ff;
  --color-ice-dark: #0099cc;
  --color-ice-light: #66e5ff;
  --color-rink: #0a0e1a;
  --color-rink-mid: #111827;
  --color-rink-light: #1e2a3a;
}

/* Tailwind custom color utility overrides */
.bg-rink { background-color: var(--color-rink); }
.bg-rink-mid { background-color: var(--color-rink-mid); }
.bg-rink-light { background-color: var(--color-rink-light); }
.text-ice { color: var(--color-ice); }
.bg-ice { background-color: var(--color-ice); }
.bg-ice-light { background-color: var(--color-ice-light); }
.border-ice { border-color: var(--color-ice); }
.shadow-ice\/30 { --tw-shadow-color: rgba(0,212,255,0.3); }
.shadow-ice\/40 { --tw-shadow-color: rgba(0,212,255,0.4); }

/* Ice tints */
.bg-ice\/5  { background-color: rgba(0,212,255,0.05); }
.bg-ice\/10 { background-color: rgba(0,212,255,0.10); }
.bg-ice\/20 { background-color: rgba(0,212,255,0.20); }
.bg-ice\/30 { background-color: rgba(0,212,255,0.30); }
.border-ice\/30 { border-color: rgba(0,212,255,0.30); }
.border-ice\/40 { border-color: rgba(0,212,255,0.40); }
.text-ice\/70 { color: rgba(0,212,255,0.70); }

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 639px) {
  h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
}

/* Smooth transition on color scheme change */
*, *::before, *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

/* Prevent transition on video */
video { transition: none !important; }
