/* ═══════════════════════════════════════════════════════
   StreamPortal 2.0 - Public Viewer Extended Styles
   Announcement banners + Coming Soon section
   ═══════════════════════════════════════════════════════ */

/* ─── Announcement Banner ─────────────────────────────── */
.announcement-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1a2e;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: announceFadeIn 0.4s ease;
}

.announcement-banner.hidden {
  display: none;
}

.announcement-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.announcement-text {
  flex: 1;
}

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

/* When announcement is visible, remove top border-radius from event card header */
.announcement-banner + .stream-event-header {
  border-radius: 0;
}

/* ─── Coming Soon Section ─────────────────────────────── */
.coming-soon-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.coming-soon-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.coming-soon-card {
  background: #1e1e3a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: comingSoonReveal 0.6s ease forwards;
}

.coming-soon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(124, 58, 237, 0.3);
}

/* Staggered reveal animation */
.coming-soon-card:nth-child(1) { animation-delay: 0.1s; }
.coming-soon-card:nth-child(2) { animation-delay: 0.2s; }
.coming-soon-card:nth-child(3) { animation-delay: 0.3s; }
.coming-soon-card:nth-child(4) { animation-delay: 0.4s; }
.coming-soon-card:nth-child(5) { animation-delay: 0.5s; }
.coming-soon-card:nth-child(6) { animation-delay: 0.6s; }

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

.coming-soon-banner {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #16163a 0%, #2a1a4e 100%);
}

.coming-soon-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.coming-soon-card:hover .coming-soon-banner img {
  transform: scale(1.05);
}

.coming-soon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.coming-soon-date-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 52px;
}

.coming-soon-month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #00d4ff;
  text-transform: uppercase;
}

.coming-soon-day {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.coming-soon-info {
  padding: 16px;
}

.coming-soon-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e0e0e0;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.coming-soon-venue {
  font-size: 0.85rem;
  color: #7c3aed;
  font-weight: 600;
  margin-bottom: 6px;
}

.coming-soon-datetime {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
}

.coming-soon-desc {
  font-size: 0.8rem;
  color: #999;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Form hint style (events admin) ──────────────────── */
.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #666;
}

/* ─── Coming Soon at top (no live streams) ────────────── */
.coming-soon-section.coming-soon-top {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ─── Embed Mode (Joomla iframe) ──────────────────────── */
.public-page.embed-mode {
  background: transparent;
  min-height: auto;
  overflow: hidden;
}

.public-page.embed-mode .public-container {
  padding: 0 24px;
  max-width: 100%;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .coming-soon-grid {
    grid-template-columns: 1fr;
  }

  .coming-soon-banner {
    height: 140px;
  }

  .coming-soon-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .announcement-banner {
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}
