/* AirDate App Stylesheet
  Focus: Modern, High-Performance UI for GTM 
*/

/* --- 1. GLOBAL STYLES --- */
body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top center, #1e293b 0%, #020617 100%);
  color: #f1f5f9; /* Slate-100 fallback */
  min-height: 100vh;
}

.subline {
  text-align: center;
  line-height: 10px;
  font-size: 12px;
}

/* ✅ v2.5: Network Logo Brightness - Make logos white/light on dark backgrounds */
/* Target all network logo images in result cards */
#results img[alt*="CBS"],
#results img[alt*="NBC"],
#results img[alt*="ABC"],
#results img[alt*="FOX"],
#results img[alt*="The CW"],
#results img[alt*="Prime Video"],
#results img[alt*="Apple TV"],
#results img[alt*="Netflix"],
#results img[alt*="HBO"],
#results img[alt*="Max"],
#results img[alt*="Hulu"],
#results img[alt*="Disney"],
#results img[alt*="Paramount"],
#results img[alt*="Peacock"],
#results img[alt*="STARZ"],
#results img[alt*="BET"],
#results img[alt*="AMC"],
#results img[alt*="FX"],
#results img[alt*="Bravo"],
#results img[alt*="Syfy"],
#results img[alt*="Comedy Central"] {
    filter: brightness(0) invert(1); /* Convert to white */
    opacity: 0.95;
    transition: all 0.2s ease;
}

/* Special handling for CBS - extra brightness */
#results img[alt="CBS"] {
    filter: brightness(0) invert(1) brightness(1.5);
}

/* Hover effect for clickable logos */
#results a:hover img,
#results button:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Legacy fallback (in case classes are used) */
.show-card .network-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s;
}

.show-card .network-logo-link:hover .network-logo {
    opacity: 1;
}

/* --- 2. ANIMATIONS --- */

/* Soft Glow Pulse for Status Indicators */
.pulse {
  animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Shimmer Effect for Loading Skeletons */
.skeleton {
  display: inline-block;
  background: #1e293b;
  background-image: linear-gradient(
    to right, 
    #1e293b 0%, 
    #334155 20%, 
    #1e293b 40%, 
    #1e293b 100%
  );
  background-repeat: no-repeat;
  background-size: 800px 100%; 
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

/* --- 3. COMPONENTS --- */

/* Custom Toggle Switch (Exact Match) */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: 0.4s;
  border-radius: 34px;
}

/* Slider Dot */
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Active State Colors */
input:checked + .slider {
  background-color: #06b6d4; /* Cyan-500 */
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Crucial: This link between the hidden checkbox and the modal container */
#recap-toggle:checked ~ #modal-container {
  display: flex !important;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #22d3ee;
  border-radius: 10px;
}

/* Update this section at the bottom of your style.css */
.site-logo {
  width: 25% !important;
  max-width: 300px; /* Optional: adds a safety cap so it's not huge on giant monitors */
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}