/* DFS Team Website Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: #1f2937;
  background-color: #f9fafb;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

.text-shadow-lg {
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.7);
}

/* Page management */
.page-content {
  display: block;
}

.page-content.hidden {
  display: none;
}

/* Navigation */
.nav-btn.active {
  color: #fca5a5;
  border-bottom: 2px solid #fca5a5;
  padding-bottom: 4px;
}

/* Hero Section */
.hero-section {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
    url('https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about-hero {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
    url('https://images.unsplash.com/photo-1489944440615-453fc2b6a9a9');
  background-size: cover;
  background-position: center;
}

/* Button hover effects */
.hover-lift {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Match cards */
.match-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.match-card:hover {
  border-left-color: #dc2626;
  transform: translateX(4px);
}

/* Player cards */
.player-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #dc2626;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast animation */
.toast-show {
  transform: translateX(0) !important;
}
.toast-hide {
  display:none;
}

.toast-error {
  background-color: #ef4444 !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .text-5xl { font-size: 2.5rem; }
  .text-4xl { font-size: 2rem; }
  .text-3xl { font-size: 1.75rem; }
  
  .py-16 { padding-top: 3rem; padding-bottom: 3rem; }
  .py-12 { padding-top: 2rem; padding-bottom: 2rem; }
  
  .px-8 { padding-left: 1rem; padding-right: 1rem; }
  
  .hero-section {
    background-attachment: scroll;
  }
}

/* Form styles */
input, select, textarea {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

button {
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Badge styles */
.badge-home {
  background-color: #dcfce7;
  color: #166534;
}

.badge-away {
  background-color: #fef2f2;
  color: #991b1b;
}

.badge-scheduled {
  background-color: #f3f4f6;
  color: #374151;
}

.badge-completed {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Modal backdrop */
.modal-backdrop {
  backdrop-filter: blur(5px);
}

/* Jersey gradient */
.jersey-gradient {
  background: linear-gradient(135deg, #dc2626 0%, #000000 50%, #16a34a 100%);
}

/* Animation classes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in {
  animation: slideIn 0.6s ease-out;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1f2937;
    color: #f9fafb;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .text-gray-600 {
    color: #000;
  }
  
  .bg-gray-50 {
    background-color: #fff;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}