/* =============================================================
   BASECAMP BEND — ADVENTURE WALL (Retro TV Section)
   ============================================================= */

.adventure-section {
  background: var(--bg-surface);
  padding: 6rem 2rem;
  overflow: clip; /* absolute clip — rotated TV frames cannot escape */
  overflow-clip-margin: 0;
}

.adventure-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header row: title left, desc right */
.adventure-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.adventure-header .section-header {
  text-align: left;
  margin: 0;
  max-width: none;
}

.adventure-header .section-title {
  margin-bottom: 0;
}

.adventure-desc {
  max-width: 360px;
  color: var(--cream-dim);
  font-size: 0.92rem;
  line-height: 1.7;
}

.adventure-desc strong {
  color: var(--amber);
  font-weight: 600;
}

/* ----- TV wall grid ----- */
.tv-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Individual TV frame */
.tv-frame {
  background: #1c1c1c;
  border-radius: 14px;
  padding: 0.9rem;
  position: relative;
  box-shadow:
    0 0 0 3px #272727,
    0 0 0 5px #1c1c1c,
    0 10px 36px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease;
}

/* Slight rotation + scale variation for retro chaos */
.tv-frame:nth-child(2)       { transform: scale(0.97); }
.tv-frame:nth-child(4)       { transform: scale(1.02); }
.tv-frame:nth-child(5)       { transform: scale(0.96); }
.tv-frame:nth-child(7)       { transform: scale(1.03); }

.tv-frame:hover {
  transform: scale(1.03) rotate(0deg) !important;
}

/* TV screen */
.tv-screen {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #080808;
  border: 2px solid #2a2a2a;
}

/* CRT scanline overlay */
.tv-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0)    0px,
    rgba(0,0,0,0)    2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
  z-index: 3;
}

/* Actual image on screen */
.tv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  filter: saturate(0.75) contrast(1.1);
}

/* Placeholder screen content */
.tv-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  background: linear-gradient(145deg, #0c1e0f 0%, #182c1a 100%);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0.75rem;
  position: relative;
  z-index: 1;
}

.tv-placeholder-icon {
  font-size: 1.7rem;
  opacity: 0.45;
  line-height: 1;
}

.tv-placeholder-text {
  opacity: 0.45;
  line-height: 1.4;
}

/* No-signal / static TV */
.tv-static .tv-placeholder {
  background: linear-gradient(145deg, #101010, #1a1a1a);
  animation: staticFlicker 2.5s infinite;
}

@keyframes staticFlicker {
  0%, 92%, 100% { opacity: 1; }
  93%  { opacity: 0.55; }
  94%  { opacity: 0.85; }
  96%  { opacity: 0.35; }
  98%  { opacity: 0.75; }
}

/* Bottom label */
.tv-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.6rem;
  letter-spacing: 0.07em;
  opacity: 0.7;
}

/* TV knobs */
.tv-knobs {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-right: 0.2rem;
}

.tv-knob {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2e2e2e;
  border: 1px solid #3a3a3a;
}

.tv-knob.active {
  background: #484848;
  border-color: #5a5a5a;
}

/* ----- Submit CTA TV (last card) ----- */
.tv-submit {
  background: transparent !important;
  border: 2px dashed var(--border-amber);
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease !important;
  min-height: 200px;
}

.tv-submit:hover {
  border-color: var(--amber) !important;
  background: rgba(232, 121, 10, 0.05) !important;
  transform: scale(1.02) !important;
}

.tv-submit-icon {
  font-size: 2.2rem;
  opacity: 0.65;
  line-height: 1;
}

.tv-submit h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--amber);
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.tv-submit p {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  line-height: 1.55;
  max-width: 170px;
}

/* ----- Responsive ----- */
@media (max-width: 1000px) {
  .tv-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .tv-frame:nth-child(2),
  .tv-frame:nth-child(4),
  .tv-frame:nth-child(5),
  .tv-frame:nth-child(7) {
    transform: none;
  }
}

@media (max-width: 540px) {
  .adventure-section {
    padding: 4rem 1rem;
  }

  .tv-wall {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
