/* Custom CSS for Mwea Legends Football Club */

/* Professional Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2vw, 1.25rem); }
h6 { font-size: clamp(0.875rem, 1.5vw, 1.125rem); }

p, span, div {
  line-height: 1.6;
}

/* Professional Spacing System */
section { padding: clamp(3rem, 8vw, 6rem) 0; }
.container { max-width: 1200px; margin: 0 auto; }

/* Enhanced Visual Depth */
.shadow-professional {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-professional-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-professional-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Professional Button Enhancements */
.btn-professional {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.btn-professional:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.btn-professional::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-professional:active::before {
  width: 300px;
  height: 300px;
}

/* Professional Card Hover Effects */
.card-professional {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-professional:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
  border-color: rgba(200, 60, 45, 0.1);
}

/* Enhanced Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #C83C2D;
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Professional Loading States */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* Remix Icon fix */
:where([class^="ri-"])::before { 
  content: "\f3c2"; /* keep as fallback if Remixicon fails to load */
}

/* Body font family - Enhanced */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(200,60,45,0.06), transparent 60%),
              radial-gradient(1000px 500px at 90% 10%, rgba(253,185,19,0.05), transparent 60%),
              linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #1a202c;
}

/* Ensure footer is visible */
footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding-bottom: 2rem;
}
.dark body {
  background: radial-gradient(1200px 600px at 10% 0%, rgba(200,60,45,0.12), transparent 60%),
              radial-gradient(1000px 500px at 90% 10%, rgba(253,185,19,0.10), transparent 60%),
              #0b1020;
}

/* Global dark-mode text override for better contrast */
.dark .dark\:text-white, .dark .force-dark-text { color: #fff !important; }
.dark .dark\:text-gray-100 { color: #f3f4f6 !important; }
.dark .dark\:text-gray-300 { color: #d1d5db !important; }


/* Professional Hover Effects */
[class*="bg-primary"], [class*="bg-secondary"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
[class*="bg-primary"]:hover, [class*="bg-secondary"]:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.25), 0 8px 16px -8px rgba(0,0,0,0.1);
}
.news-card:hover .news-overlay {
  opacity: 1;
}

/* Player card hover effects */
.player-card:hover .player-overlay {
  opacity: 1;
}

/* Professional Timeline Styling */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C83C2D, #E53E3E);
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(200, 60, 45, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
  left: -8px;
  top: 1.5rem;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover::before {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(200, 60, 45, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 2px;
  height: calc(100% + 1rem);
  background: linear-gradient(to bottom, #C83C2D, rgba(200, 60, 45, 0.3));
  left: -7px;
  top: 2rem;
  z-index: 5;
  border-radius: 1px;
}

/* Countdown timer styling - simplified to prevent overlap */

/* Professional Splash Screen */
#splash-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 25%, #f1f5f9 50%, #ffffff 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: splashBackground 3s ease-in-out infinite;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 0 200px rgba(200, 60, 45, 0.05);
}
.dark #splash-screen {
  background: linear-gradient(135deg, #111827 0%, #1f2937 25%, #0f172a 50%, #111827 100%);
  box-shadow: inset 0 0 200px rgba(253, 185, 19, 0.08);
}
.splash-logo {
  filter: drop-shadow(0 15px 35px rgba(200, 60, 45, 0.4));
  animation: logoFloat 3s ease-in-out infinite, logoGlow 2s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}
#splash-screen.splash-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
}

/* Professional Page Entrance */
body.page-loaded {
  animation: pageEntrance 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Letter Animation */
.animate-letter-slide {
  opacity: 0;
  transform: translateY(30px) rotateX(45deg) scale(0.9);
  animation: letterSlide 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

/* Professional Navigation Hover Effects */
nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FDB913, #C83C2D);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after {
  width: 100%;
}

/* Professional Micro-interactions */
* {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Enhanced Keyframes */
@keyframes splashBackground {
  0% {
    filter: hue-rotate(0deg) brightness(1);
    background-position: 0% 50%;
  }
  50% {
    filter: hue-rotate(5deg) brightness(1.05);
    background-position: 100% 50%;
  }
  100% {
    filter: hue-rotate(10deg) brightness(1);
    background-position: 0% 50%;
  }
}
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.05);
  }
}
@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 15px 35px rgba(200, 60, 45, 0.4));
  }
  100% {
    filter: drop-shadow(0 15px 45px rgba(200, 60, 45, 0.6));
  }
}
@keyframes pageEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes letterSlide {
  0% {
    opacity: 0;
    transform: translateY(30px) rotateX(45deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}
