/* GIANT GAMERS — Owner Mockup & High-Fidelity Network Theme
   Applies to the portal hub. Preserves all functional navigation, accessibility controls,
   live stream routing, radio playback, and independent project boundaries.
*/

:root {
  --wrap: min(96vw, 1760px);
  --gutter: clamp(14px, 1.5vw, 28px);
  --radius: 10px;
  --panel-line: rgba(147, 51, 234, 0.45);
  --neon-cyan: #00f0ff;
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
}

/* Ambient Canvas Particle Layer */
#ambient-canvas,
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

body {
  background: #050818;
  color: #e2e8f0;
  overflow-x: hidden;
}

/* Base Backdrop with Crisp Gaming Room Atmosphere */
.backdrop {
  background: radial-gradient(circle at 70% 0%, rgba(147, 51, 234, 0.28), transparent 42%),
              radial-gradient(circle at 10% 30%, rgba(0, 240, 255, 0.15), transparent 38%),
              linear-gradient(180deg, #070b1c 0%, #030611 100%);
}

.backdrop::before {
  opacity: 0.78 !important;
  filter: saturate(1.08) contrast(1.08) !important;
  transform: translateZ(0);
}

.ambient-scene {
  opacity: 0.25;
  pointer-events: none;
}

/* Sleek Network Utility Bar (Always Visible, Compact & Accessible) */
.network-utility {
  display: block !important;
  background: rgba(3, 6, 17, 0.95);
  border-bottom: 1px solid rgba(147, 51, 234, 0.35);
  font-size: 0.76rem;
  position: relative;
  z-index: 100;
}

.utility-inner {
  width: var(--wrap);
  max-width: 1760px;
  margin: 0 auto;
  padding: 6px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.utility-shortcuts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.utility-shortcuts a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.utility-shortcuts a:hover {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.utility-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.utility-fx-btn {
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(147, 51, 234, 0.4);
  color: #c084fc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.utility-fx-btn:hover {
  background: rgba(147, 51, 234, 0.3);
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Site Header */
.site-header.approved-header,
.site-header {
  background: rgba(5, 8, 22, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(147, 51, 234, 0.32);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 90;
}

.site-header .header-inner {
  width: var(--wrap);
  max-width: 1760px;
  margin: 0 auto;
  padding: 10px var(--gutter);
}

.approved-header .brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.45));
}

/* HERO SECTION — Integrated Neon Gaming Room Background */
.portal-hero,
.hero {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(90deg, #070a1a 0%, #090b1c 24%, #120c24 100%);
  border-bottom: 2px solid rgba(147, 51, 234, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.portal-hero::before,
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #080b1c 2%, rgba(7, 10, 27, 0.92) 26%, rgba(8, 10, 24, 0.22) 65%, rgba(7, 7, 20, 0.5) 100%),
              url('/assets/scenes/neon-gaming-room-crisp.webp') center 32% / cover no-repeat;
  opacity: 0.92;
}

.portal-hero::after,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 78% 45%, rgba(168, 85, 247, 0.28), transparent 60%);
}

.portal-hero .hero-inner,
.hero .hero-inner {
  width: var(--wrap);
  max-width: 1760px;
  margin: 0 auto;
  padding: 28px var(--gutter);
  min-height: 380px;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 24px;
}

.portal-hero .hero-copy h1 {
  font-size: clamp(2.5rem, 3.4vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.portal-hero .hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--neon-cyan), #c084fc 50%, var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(192, 132, 252, 0.4));
}

.portal-hero .hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(168, 85, 247, 0.45));
}

/* PANELS & DASHBOARD WITH NEON GLOW */
.home-dashboard,
.dashboard-wrap {
  width: var(--wrap);
  max-width: 1760px;
  margin: 0 auto;
  padding: 18px var(--gutter) 24px;
}

.dashboard-panel,
.panel,
.project,
.stream-card {
  border: 1px solid rgba(147, 51, 234, 0.5) !important;
  background: linear-gradient(155deg, rgba(13, 17, 42, 0.96), rgba(6, 9, 26, 0.98)) !important;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(147, 51, 234, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-panel:hover,
.panel:hover,
.project:hover {
  border-color: rgba(0, 240, 255, 0.6) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 240, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.panel-heading {
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.45), rgba(15, 23, 42, 0.6)) !important;
  border-bottom: 1px solid rgba(147, 51, 234, 0.35) !important;
  padding: 10px 16px !important;
}

.panel-heading h2 {
  font-size: 0.82rem !important;
  letter-spacing: 0.08em;
  font-weight: 850;
  text-transform: uppercase;
  color: #f1f5f9;
}

/* INLINE RADIO SONG SEARCH & REQUEST WIDGET */
.radio-inline-widget {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.radio-inline-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.95rem;
}

.radio-inline-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 20px;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.radio-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.radio-search-box .search-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.radio-search-input {
  width: 100%;
  padding: 9px 36px 9px 36px;
  border: 1px solid rgba(147, 51, 234, 0.45);
  background: rgba(3, 7, 20, 0.85);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all 0.18s ease;
}

.radio-search-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
  background: rgba(4, 10, 28, 0.95);
}

.radio-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}

.radio-search-clear:hover {
  color: #fff;
}

.radio-request-status {
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 18px;
  border-radius: 4px;
}

.radio-request-status.is-success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  padding: 4px 8px;
}

.radio-request-status.is-error {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.1);
  padding: 4px 8px;
}

.radio-request-status.is-pending {
  color: var(--neon-cyan);
  padding: 4px 8px;
}

.radio-search-results {
  max-height: 240px;
  overflow-y: auto;
  border-radius: 6px;
  background: rgba(4, 7, 20, 0.6);
  border: 1px solid rgba(147, 51, 234, 0.2);
}

.radio-search-hint {
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
  margin: 0;
}

.radio-results-list {
  display: flex;
  flex-direction: column;
}

.radio-song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(147, 51, 234, 0.15);
  transition: background 0.12s ease;
}

.radio-song-row:hover {
  background: rgba(147, 51, 234, 0.15);
}

.radio-song-art {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.radio-song-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.radio-song-title {
  color: #f8fafc;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-song-artist {
  color: #94a3b8;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-neon-request {
  background: linear-gradient(135deg, #7e22ce, #9333ea);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-neon-request:hover:not(:disabled) {
  background: linear-gradient(135deg, #9333ea, #a855f7);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
  border-color: var(--neon-cyan);
}

.btn-neon-request:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #334155;
  border-color: #475569;
}

/* DAILY QUEST COMIC PREVIEW */
.quest-comic-art {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(147, 51, 234, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* FOOTER WITHOUT EXCESS BLANK GAP */
.site-footer {
  margin-top: 24px;
  margin-bottom: 0 !important;
  padding-bottom: 0; /* Body reserves the measured radio dock height once. */
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1080px) {
  .portal-hero .hero-inner,
  .hero .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .portal-hero .hero-art,
  .hero .hero-art {
    margin: 0 auto;
  }
  .portal-hero .hero-copy {
    max-width: 100%;
  }
  .portal-hero .actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --wrap: 100%;
    --gutter: 14px;
  }
  .utility-inner { min-width: 0; padding-block: 4px; }
  .utility-shortcuts,
  .utility-here,
  .utility-controls .utility-menu,
  .utility-controls .utility-direct { display: none !important; }
  .utility-controls {
    min-width: 0;
    margin-left: auto;
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
  }
}

/* Daily Quest Comic Page Enhancements */
.daily-hero img {
  border-radius: 14px !important;
  width: min(100%, 460px) !important;
  height: auto !important;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.4), 0 0 0 2px rgba(168, 85, 247, 0.3) !important;
}

.daily-strip-card {
  background: rgba(10, 16, 36, 0.92);
  border: 1px solid rgba(147, 51, 234, 0.38);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 24px rgba(147, 51, 234, 0.12);
  margin-bottom: 36px;
}

.daily-strip-header {
  padding: 16px 24px;
  background: rgba(15, 23, 50, 0.9);
  border-bottom: 1px solid rgba(147, 51, 234, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.daily-strip-title {
  margin: 4px 0 0;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.daily-strip-body {
  padding: clamp(12px, 2.5vw, 24px);
  background: #040714;
  display: flex;
  justify-content: center;
  align-items: center;
}

.comic-strip-img {
  width: 100%;
  height: auto;
  max-width: 1100px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
  display: block;
}

.daily-transcript-details {
  padding: 14px 24px;
  background: rgba(7, 11, 26, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: #94a3b8;
}

.daily-transcript-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--neon-cyan);
  outline: none;
}

.daily-transcript-details summary:hover {
  text-decoration: underline;
}

.daily-transcript-content {
  margin-top: 12px;
  line-height: 1.6;
}

.daily-transcript-content p {
  margin: 0 0 8px;
}
