/* ==========================================================================
   Sports Taekwondo Federation (STF) — Master Stylesheet
   ========================================================================== */

:root {
  --primary-navy: #00225D;
  --primary-darknavy: #04162E;
  --primary-deepblue: #0A2A4A;
  --primary-gold: #E5A93B;
  --primary-goldhover: #D49629;
  --primary-lightgold: #FFF8EC;
  --accent-red: #D92525;
  --neutral-dark: #0A1118;
  --neutral-gray: #64748B;
  --neutral-light: #F8FAFC;
  --font-serif: Georgia, 'Times New Roman', Cambria, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Security & Protection: Text selection and drag prevention */
body {
  font-family: var(--font-sans);
  background-color: #FFFFFF;
  color: #1E293B;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.protected-text {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img, svg {
  -webkit-user-drag: none;
  user-select: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0A192F;
}
::-webkit-scrollbar-thumb {
  background: #E5A93B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D49629;
}

/* Typography Enhancements */
.font-display {
  font-family: 'Times New Roman', Times, Georgia, serif;
  letter-spacing: 0.03em;
}

/* Hero Carousel */
.hero-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #04162E;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 2;
}

.hero-slide-bg {
  transform: scale(1.05);
  transition: transform 7s ease-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

/* Gold Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #FFF3D6 0%, #E5A93B 50%, #C98A19 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Athletic Button Glow */
.btn-gold {
  background: linear-gradient(135deg, #E5A93B 0%, #D49629 100%);
  color: #04162E;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(229, 169, 59, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(229, 169, 59, 0.5);
  background: linear-gradient(135deg, #F0B74E 0%, #E5A93B 100%);
}

.btn-outline-gold {
  border: 1.5px solid #E5A93B;
  color: #E5A93B;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background-color: #E5A93B;
  color: #04162E;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(229, 169, 59, 0.3);
}

/* Modal Animations */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

/* Image Upload Preview Box */
.image-dropzone {
  border: 2px dashed #CBD5E1;
  transition: all 0.2s ease;
  background-color: #F8FAFC;
}

.image-dropzone:hover, .image-dropzone.dragover {
  border-color: #00225D;
  background-color: #EFF6FF;
}

/* Card Hover Lift */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 34, 93, 0.15);
}

/* Pulse animation for live event badge */
@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(229, 169, 59, 0.6);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(229, 169, 59, 0);
  }
}

.pulse-badge {
  animation: goldPulse 2s infinite;
}

/* Mobile Usability & Responsiveness Fixes */
@media (max-width: 640px) {
  /* Prevent iOS Safari auto-zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .hero-slide {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .modal-container {
    max-height: 94vh;
    margin: 0.5rem;
  }
}

/* Safe area insets for notched phones */
body {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

