/* Main Styles for Where To Watch NFL */

/* Force readable option popup colors for native selects */
#weekSelect option, 
#weekSelect optgroup {
  color: #0f172a; /* slate-900 text on white */
  background: #ffffff;
}

/* Custom component styles */
.app-container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .app-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .app-header {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.app-main {
  padding: 0 1rem 2.5rem;
  flex-grow: 1;
}

@media (min-width: 640px) {
  .app-main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .app-main {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.app-footer {
  padding: 1.5rem 1rem;
}

@media (min-width: 640px) {
  .app-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .app-footer {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Logo gradient animation */
.app-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom right, #0ea5e9, #8b5cf6);
  box-shadow: 0 10px 15px -3px rgb(14 165 233 / 0.3);
}

/* Game card styles */
.game-card {
  border-radius: 1rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.3);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.game-card--live {
  border-color: rgb(248 113 113 / 0.7);
  background: linear-gradient(
    135deg,
    rgb(248 113 113 / 0.15),
    rgb(255 255 255 / 0.05)
  );
  box-shadow:
    0 0 0 1px rgb(248 113 113 / 0.4),
    0 25px 50px -12px rgb(248 113 113 / 0.5);
}

.team-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.375rem;
}

.team-logo .fallback-text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.provider-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05);
  transition: background-color 150ms ease-in-out;
}

.provider-link:hover {
  background: rgb(255 255 255 / 0.1);
}

.provider-link img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.provider-link span {
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 500;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgb(248 113 113 / 0.45);
  background: rgb(248 113 113 / 0.16);
  color: #fecaca;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-indicator__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #f87171;
  box-shadow: 0 0 0 0 rgb(248 113 113 / 0.65);
  animation: liveIndicatorPulse 1.5s ease-in-out infinite;
}

@keyframes liveIndicatorPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(248 113 113 / 0.5);
  }
  50% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0.45rem rgb(248 113 113 / 0);
  }
}

/* Date group indicator */
.date-indicator {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #0ea5e9;
  box-shadow: 0 0 10px rgb(14 165 233 / 0.7);
}

/* Loading and error states */
.loading-card,
.error-card,
.empty-card {
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

/* Week selector styles */
.week-selector {
  height: 2rem;
  border-radius: 0.375rem;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.875rem;
  padding: 0 0.5rem;
  color: #bae6fd;
}

.week-selector:focus {
  outline: none;
  box-shadow: 0 0 0 2px #0ea5e9;
}