/* 2025-09-18 */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000000; /* Fallback solid black */
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: #c4ced4;
  min-height: 100vh;
  padding: 1rem;
  position: relative;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Force background on mobile */
  -webkit-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
}

/* Fix for iOS Safari background issues */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
    background: #000000;
    background-image: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  }
}

/* Animated background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(196, 206, 212, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(196, 206, 212, 0.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Header section */
.header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 1rem;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(196, 206, 212, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #c4ced4;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

#main-matchup {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #c4ced4;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spurs-name {
  font-weight: 900 !important;
  color: #c4ced4 !important;
  font-size: 1.6em !important;
  text-shadow: 
    0 0 6px rgba(192, 192, 192, 0.4),
    0 0 12px rgba(192, 192, 192, 0.3),
    2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  letter-spacing: -1px !important;
  display: block;
  animation: spursPulse 4s ease-in-out infinite alternate;
  background: linear-gradient(45deg, #c0c0c0, #e8e8e8, #c0c0c0);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: spursPulse 4s ease-in-out infinite alternate, shimmer 6s ease-in-out infinite;
}

@keyframes spursPulse {
  0% { 
    filter: brightness(1) drop-shadow(0 0 4px rgba(192, 192, 192, 0.3));
    transform: scale(1);
  }
  100% { 
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(192, 192, 192, 0.5));
    transform: scale(1.02);
  }
}

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

.matchup-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.vs-text {
  color: #888;
  font-size: 0.6em;
  font-weight: 400;
}

.opponent {
  font-size: 0.7em !important;
  font-weight: bold !important;
  /* Remove the pulsing animation and box styling */
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  transition: none !important;
  animation: none !important;
}

@keyframes glow {
  from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(196, 206, 212, 0.3); }
  to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(196, 206, 212, 0.5); }
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.opponent-display {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Toggle button styles */
.schedule-toggle {
  text-align: center;
  margin-bottom: 1rem;
}

.toggle-btn {
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.9));
  border: 2px solid rgba(196, 206, 212, 0.3);
  border-radius: 15px;
  padding: 1rem 2rem;
  color: #c4ced4;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.toggle-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 206, 212, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.toggle-btn:active {
  transform: translateY(0);
}

.opponent {
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid currentColor;
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.vs-text {
  color: #888;
  font-size: 0.6em;
  font-weight: 400;
}

.opponent {
  font-size: 0.7em !important;
}

#tipoff {
  margin-top: 0;
  padding-top: 0;
  font-size: 1.1rem;
  color: #aaa;
  padding: 0.8rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 25px;
  border: 1px solid rgba(196, 206, 212, 0.2);
  display: inline-block;
}

.tipoff-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.countdown-inline {
  font-size: 0.9rem;
  color: #c4ced4;
  font-weight: 600;
}

/* Countdown section - now inside header */
.countdown-section {
  margin-top: 2rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.countdown-item {
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.9));
  border: 2px solid rgba(196, 206, 212, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  min-width: 100px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.countdown-item:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 206, 212, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #c4ced4;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.countdown-label {
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Schedule section */
.schedule-section {
  animation: slideIn 0.8s ease-out 0.2s both;
}

.schedule-container {
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(196, 206, 212, 0.1);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-height: 600px;
  overflow-y: auto;
  transition: all 0.4s ease;
}

.schedule-container.show {
  display: block !important;
  animation: slideDown 0.4s ease-out;
}

.schedule-container.hide {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 600px;
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 600px;
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
  }
}

.schedule-container::-webkit-scrollbar {
  width: 8px;
}

.schedule-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.schedule-container::-webkit-scrollbar-thumb {
  background: rgba(196, 206, 212, 0.3);
  border-radius: 4px;
}

.schedule-container::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 206, 212, 0.5);
}

#schedule-table {
  width: 100%;
  border-collapse: collapse;
  color: #c4ced4;
}

#schedule-table th {
  position: sticky;
  top: 0;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(10, 10, 10, 0.95));
  backdrop-filter: blur(10px);
  padding: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(196, 206, 212, 0.3);
  font-size: 0.9rem;
}

#schedule-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(196, 206, 212, 0.1);
  transition: all 0.3s ease;
}

#schedule-table tr {
  transition: all 0.3s ease;
}

#schedule-table tr:hover {
  background: rgba(196, 206, 212, 0.05);
  transform: scale(1.02);
}

.next-game-row {
  background: linear-gradient(90deg, rgba(196, 206, 212, 0.1), rgba(196, 206, 212, 0.05)) !important;
  border-left: 4px solid #c4ced4;
}

.next-game-row td {
  font-weight: 600;
}

.game-time {
  color: #aaa;
  font-size: 0.9rem;
}

.game-matchup {
  font-weight: 500;
}

.team-box {
  display: inline-block;
  margin: 0 0.2rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.team-box:hover {
  transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    background: #000000 !important;
    background-image: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
    align-items: flex-start;
    padding-top: 2rem;
  }
  
  .container {
    padding: 0 0.5rem;
  }

  .header {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    background: rgba(20, 20, 20, 0.95) !important;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown-item {
    padding: 1rem;
    min-width: 80px;
    background: rgba(30, 30, 30, 0.95) !important;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .opponent-display {
    font-size: 1.2rem;
  }

  #schedule-table th,
  #schedule-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .schedule-container {
    background: rgba(20, 20, 20, 0.95) !important;
  }

  .spurs-name {
    font-size: 1.4em !important;
  }
}

/* Loading animation */
.loading {
  text-align: center;
  padding: 2rem;
  color: #888;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #444;
  border-radius: 50%;
  border-top-color: #c4ced4;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.game-note {
  margin: 0;
  padding: 4px 0;
  line-height: 1.2;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f5c542;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(245, 197, 66, 0.5);
}

.table-note {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f5c542;
  opacity: 0.9;
}

