/* ============================================================
   LIVE FEATURES — agenda countdown, carousel, banner, quote, PWA
   ============================================================ */

.live-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin: 22px 0 8px;
}

@media (max-width: 800px) {
  .live-strip { grid-template-columns: 1fr; }
}

.live-agenda-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.1);
}

[data-theme="dark"] .live-agenda-panel {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.12);
}

.live-agenda-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.live-agenda-head b {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  flex: 1;
}

[data-theme="dark"] .live-agenda-head b { color: #f1f5f9; }

.live-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: livePulse 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.live-agenda-all {
  font-size: 12.5px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.live-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-agenda-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s;
}

.live-agenda-item:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .live-agenda-item {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.1);
}

.live-cd {
  text-align: center;
  background: linear-gradient(145deg, #1e3a8a, #2563eb);
  color: #fff;
  border-radius: 10px;
  padding: 8px 4px;
  line-height: 1.15;
}

.live-cd b {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
}

.live-cd span {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-agenda-body b {
  display: block;
  font-size: 13.5px;
  font-weight: 750;
  color: #0f172a;
  margin-bottom: 2px;
}

[data-theme="dark"] .live-agenda-body b { color: #f1f5f9; }

.live-agenda-body small {
  font-size: 12px;
  color: #64748b;
}

.live-agenda-empty {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.live-quote {
  margin: 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0c1b3a, #1e3a8a);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px -12px rgba(30, 58, 138, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
}

.live-quote p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.live-quote cite {
  font-style: normal;
  font-size: 12.5px;
  opacity: 0.8;
  font-weight: 600;
}

/* Banner */
.angkatan-banner {
  margin: 16px 0 8px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 28px -12px rgba(15, 23, 42, 0.15);
  max-height: 220px;
}

.angkatan-banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .angkatan-banner img { height: 140px; }
}

/* Carousel home kegiatan */
.home-carousel-wrap {
  position: relative;
}

.home-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.home-carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: #0f172a;
  line-height: 1;
}

[data-theme="dark"] .home-carousel-btn {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.15);
  color: #e2e8f0;
}

.home-carousel-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

#homeKegiatanGrid.home-carousel-track {
  display: flex !important;
  gap: 14px !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  grid-template-columns: none !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

#homeKegiatanGrid.home-carousel-track > .card,
#homeKegiatanGrid.home-carousel-track > article {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  max-width: 300px;
}

/* PWA install bar */
.pwa-install-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0c1b3a;
  color: #fff;
  box-shadow: 0 12px 40px -8px rgba(12, 27, 58, 0.55);
  animation: motionIn 0.3s ease both;
}

.pwa-install-bar p {
  margin: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.pwa-install-bar button {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
}

.pwa-install-yes {
  background: #2563eb;
  color: #fff;
}

.pwa-install-no {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* Confetti canvas */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}
