@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --bg-dark: #09090b;
  --bg-card: #18181b;
  /* Zinc 900 */
  /* Gold Theme */
  --bg-surface: #27272a;

  /* Primary: Classic Gold */
  --primary: #D4AF37;
  --primary-glow: rgba(212, 175, 55, 0.5);

  /* Accent: Bright Amber/Gold */
  --accent: #F59E0B;

  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --border: #3f3f46;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Scrollbar */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Utilities */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.glass {
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.title-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  /* Standard property for compatibility */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--primary-glow);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover {
  border-color: var(--primary);
}

/* Data Table */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  min-width: 600px;
}

.data-table th {
  text-align: left;
  padding: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* MATCH CARD GRID SYSTEM */

.match-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.match-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 120px;
}

.match-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 30%;
}

.match-team.local {
  justify-content: flex-end;
}

.match-team.visit {
  justify-content: flex-start;
}

.match-score {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.25rem;
  min-width: 80px;
  text-align: center;
}

.match-status {
  min-width: 150px;
  display: flex;
  justify-content: flex-end;
}

/* RESPONSIVE MEDIA QUERIES */

/* Mobile Devices */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem !important;
  }

  .container {
    padding: 0 1rem;
  }

  /* Adjust Navbar */
  .nav-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start !important;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hide-on-mobile {
    display: none !important;
  }

  /* Match Card Responsive */
  .match-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .match-info {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }

  .match-content {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .match-team {
    width: 100%;
    justify-content: center !important;
  }

  .match-score {
    margin: 0.5rem 0;
  }

  .match-status {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  /* Season Dashboard Tabs */
  .dashboard-tabs button {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.9rem !important;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .dashboard-header .btn {
    width: 100%;
    justify-content: center;
  }

  /* Timeline */
  .timeline::before {
    left: 1rem !important;
  }
}

/* Tablet */

@media (max-width: 1024px) {
  .container {
    max-width: 95%;
  }
}