/* =============================================
   Magilas Gym - Premium Design System (2025)
   Award-Winning Visual Experience
   ============================================= */

:root {
  /* ===== CORE COLORS ===== */
  --color-bg: #050505;
  --color-bg-secondary: #0a0a0a;
  --color-bg-tertiary: #0f0f0f;
  --color-bg-card: rgba(15, 15, 15, 0.8);
  --color-bg-glass: rgba(20, 20, 20, 0.6);

  /* Gold Palette */
  --color-gold: #d4af37;
  --color-gold-light: #f0d875;
  --color-gold-dark: #b8960c;
  --color-gold-glow: rgba(212, 175, 55, 0.4);
  --color-gold-subtle: rgba(212, 175, 55, 0.1);

  /* Accent Gradient */
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f0d875 50%, #d4af37 100%);
  --gradient-gold-text: linear-gradient(135deg, #f0d875 0%, #d4af37 50%, #b8960c 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  --gradient-card: linear-gradient(145deg, rgba(25, 25, 25, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
  --gradient-hero: linear-gradient(180deg,
      rgba(5, 5, 5, 0.3) 0%,
      rgba(5, 5, 5, 0.6) 40%,
      rgba(5, 5, 5, 0.85) 70%,
      rgba(5, 5, 5, 1) 100%);

  /* Text */
  --color-text: #ffffff;
  --color-text-secondary: #c0c0c0;
  --color-text-muted: #707070;
  --color-text-dim: #505050;

  /* Borders & Surfaces */
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(212, 175, 55, 0.3);
  --color-border-gold: rgba(212, 175, 55, 0.5);

  /* Status */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;

  /* ===== TYPOGRAPHY ===== */
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;
  --text-7xl: 6rem;
  --text-8xl: 8rem;

  /* ===== SPACING ===== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ===== EFFECTS ===== */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px var(--color-gold-glow);
  --shadow-glow-lg: 0 0 80px var(--color-gold-glow);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);

  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;
  --blur-xl: 40px;

  /* ===== TRANSITIONS ===== */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --transition-fast: 150ms var(--ease-out-quart);
  --transition-base: 300ms var(--ease-out-expo);
  --transition-slow: 500ms var(--ease-out-expo);
  --transition-slower: 800ms var(--ease-out-expo);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.1;
}

.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.text-gradient {
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 20px var(--color-gold-glow),
    0 0 40px var(--color-gold-glow),
    0 0 60px rgba(212, 175, 55, 0.2);
}

.text-gold {
  color: var(--color-gold);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-secondary {
  color: var(--color-text-secondary);
}

/* ===== PREMIUM BUTTONS ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn-primary::before {
  background: linear-gradient(135deg, #f0d875 0%, #fff 50%, #f0d875 100%);
  opacity: 0;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow-lg), var(--shadow-lg);
}

.btn-primary:hover::before {
  opacity: 0.3;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(var(--blur-sm));
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: inset 0 0 20px var(--color-gold-subtle);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  color: var(--color-gold);
  background: var(--color-gold-subtle);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-block {
  width: 100%;
}

.btn i {
  transition: transform var(--transition-fast);
}

.btn:hover i {
  transform: translateX(4px);
}

/* ===== GLASS CARDS ===== */
.glass-card {
  background: var(--gradient-card);
  backdrop-filter: blur(var(--blur-lg));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(212, 175, 55, 0.5) 50%,
      transparent 100%);
}

.glass-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg);
}

/* ===== PREMIUM INPUTS ===== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 0 4px var(--color-gold-subtle),
    var(--shadow-glow);
}

.form-input::placeholder {
  color: var(--color-text-dim);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23707070' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 12px;
  padding-right: var(--space-12);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-gold {
  background: var(--color-gold-subtle);
  color: var(--color-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-gold-dark), var(--color-gold));
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-light);
}

/* ===== ANIMATIONS ===== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px var(--color-gold-glow);
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 40px var(--color-gold-glow), 0 0 60px var(--color-gold-glow);
    opacity: 0.8;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s var(--ease-out-expo) forwards;
}

.animation-delay-100 {
  animation-delay: 100ms;
}

.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-300 {
  animation-delay: 300ms;
}

.animation-delay-400 {
  animation-delay: 400ms;
}

.animation-delay-500 {
  animation-delay: 500ms;
}