/* === GLOBAL STYLES - SHARED ACROSS ALL PAGES === */

:root {
  --bg: #1a1a1a;
  --bg-elevated: #2e2e2e;
  --text: #ffffff;
  --text-dim: #888888;
  --brand: #ff8d40;
  --brand2: #ff7420;
  --brand-dark: #e66736;
  --athlete-gradient: linear-gradient(135deg, #ff8d40 0%, #ff5e00 100%);
  --brand-gradient: linear-gradient(135deg, #ff8d40 0%, #e66736 100%);
  --border: rgba(255, 255, 255, 0.04);

  /* Physics-based animation variables */
  --spring-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --bounce-easing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "owners", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* === SHARED BACKGROUND PATTERNS === */

/* Elite Threads Background - Used on both pages */
body {
  background-color: var(--bg);
  background-image:
    /* Primary diagonal threads */
    repeating-linear-gradient(
      45deg,
      rgba(255, 141, 64, 0.08) 0px,
      rgba(255, 141, 64, 0.08) 1px,
      transparent 1px,
      transparent 50px
    ),
    /* Secondary diagonal threads - creates weave */
    repeating-linear-gradient(
      -45deg,
      rgba(230, 103, 54, 0.05) 0px,
      rgba(230, 103, 54, 0.05) 1px,
      transparent 1px,
      transparent 50px
    );
  background-size: 200px 200px;
  animation: threadsDrift 40s linear infinite;
}

@keyframes threadsDrift {
  0% {
    background-position: 0px 0px, 0px 0px;
  }
  100% {
    background-position: 400px 400px, 400px 400px;
  }
}

/* === SHARED GLASS/PRISM OVERLAY EFFECTS === */

/* Glass gradient overlay - extremely subtle */
.glass-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 141, 64, 0.02) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(230, 103, 54, 0.01) 0%,
      transparent 30%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.008) 0%,
      transparent 20%,
      transparent 80%,
      rgba(255, 255, 255, 0.004) 100%
    );
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  opacity: 0.6;
}

/* === SHARED ANIMATIONS === */

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sunriseGlow {
  0% {
    color: #cc8844; /* Darker, muted orange (like pre-dawn) */
    text-shadow:
      0 0 10px rgba(255, 179, 102, 0.1),
      0 0 20px rgba(255, 179, 102, 0.05);
  }
  50% {
    color: #ffaa66; /* Mid-tone orange (like sunrise) */
    text-shadow:
      0 0 20px rgba(255, 179, 102, 0.2),
      0 0 40px rgba(255, 179, 102, 0.1);
  }
  100% {
    color: #ffb366; /* Final light orange (full sunrise) */
    text-shadow:
      0 0 30px rgba(255, 179, 102, 0.3),
      0 0 60px rgba(255, 179, 102, 0.1);
  }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes loadProgress {
  to { width: 100%; }
}

@keyframes floatComplex {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(40px, 40px) rotate(90deg) scale(1.1);
  }
  50% {
    transform: translate(-30px, 60px) rotate(180deg) scale(0.95);
  }
  75% {
    transform: translate(50px, -20px) rotate(270deg) scale(1.05);
  }
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(6px); }
  50% { transform: translateX(10px); }
}

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

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

/* === SHARED UTILITY CLASSES === */

.animate-in {
  animation: fadeInUp 0.8s var(--smooth-easing) forwards;
}

.animate-scale {
  animation: fadeInScale 0.8s var(--smooth-easing) forwards;
}

.delay-1 { animation-delay: 0.15s; opacity: 0; }
.delay-2 { animation-delay: 0.3s; opacity: 0; }
.delay-3 { animation-delay: 0.45s; opacity: 0; }
.delay-4 { animation-delay: 0.6s; opacity: 0; }

/* === ACCESSIBILITY === */

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for keyboard navigation */
.focus-visible:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}