/**
 * Live Streaming Page Theme Styles
 * Twitch purple + YouTube red dynamic theming
 */

:root {
  --live-twitch: #9146ff;
  --live-youtube: #ff0000;
  --live-pulse: #ff0000;
}

/* Live Hero Section */
.live-hero {
  background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
  transition: background 0.5s ease;
}

/* Pulse Animation for LIVE badge */
.pulse-animation {
  animation: live-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

@keyframes live-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
  }
}

/* Live Status Indicator */
#live-status-indicator {
  position: sticky;
  top: 70px;
  z-index: 1020;
  margin-bottom: 2rem;
  text-align: center;
}

#live-status-indicator .btn-danger {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  border: none;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
}

/* Twitch Embed Container */
.twitch-embed-container {
  position: relative;
  background: #18181b;
  border-radius: 8px;
  overflow: hidden;
}

.twitch-live-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  background: #ff0000;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.twitch-live-badge::before {
  content: '';
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Platform Cards */
.platform-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(145, 70, 255, 0.3);
}

.platform-card.twitch-card {
  border-color: var(--live-twitch);
}

.platform-card.youtube-card {
  border-color: var(--live-youtube);
}

.platform-card.twitch-card:hover {
  box-shadow: 0 8px 20px rgba(145, 70, 255, 0.5);
}

.platform-card.youtube-card:hover {
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.5);
}

/* Stream Schedule Table */
.stream-schedule {
  background: var(--bs-body-bg);
  border-radius: 12px;
  overflow: hidden;
}

.stream-schedule th {
  background: linear-gradient(135deg, var(--live-twitch), var(--live-youtube));
  color: white;
  font-weight: 600;
  padding: 1rem;
}

.stream-schedule td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}

/* Social Links */
.social-platform-link {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-platform-link:hover {
  transform: translateY(-2px);
}

.social-platform-link.twitch {
  color: var(--live-twitch);
}

.social-platform-link.youtube {
  color: var(--live-youtube);
}

/* Discord Community Card */
.discord-community-card {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  border: none;
  color: white;
}

.discord-community-card .btn-light:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Dark Mode Adjustments */
[data-bs-theme="dark"] .platform-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .twitch-embed-container {
  box-shadow: 0 4px 12px rgba(145, 70, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  #live-status-indicator .btn-danger {
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
  }

  .twitch-live-badge {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Accessibility */
.platform-card:focus {
  outline: 2px solid var(--live-twitch);
  outline-offset: 2px;
}

.pulse-animation:focus {
  outline: 2px solid white;
  outline-offset: 4px;
}
