/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: #0c100e;
  color: #F4F3EF;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  overflow-x: hidden;
}

body {
  /* image toned to a dark muted pine (luminosity blend) with a vignette so the beige TV pops */
  background-color: #3a4a42;
  background-image:
    radial-gradient(ellipse 75% 70% at 50% 52%, transparent 40%, rgba(0, 0, 0, 0.65) 100%),
    linear-gradient(rgba(5, 10, 8, 0.5), rgba(5, 10, 8, 0.5)),
    url('../assets/bgTest1.webp');
  background-blend-mode: normal, normal, luminosity;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Global Scanline Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 6px,
    rgba(255, 255, 255, 0.015) 6px,
    rgba(255, 255, 255, 0.015) 8px
  );
  pointer-events: none;
  z-index: 1;
}

body {
  min-height: 100vh;
  background-color: #0c100e;
  position: relative;
}

/* Ensure video areas are above scanlines */
.video-placeholder,
.crt-bezel-effect {
  position: relative;
  z-index: 2;
}

/* Block scanlines from appearing over videos */
.video-placeholder::before,
.crt-bezel-effect::before {
  content: none !important;
  display: none !important;
}

/* Header */
.page-header {
  padding: 2rem;
  border-bottom: 3px solid #1b2a21;
  background: #070d0a;
}

.back-link {
  display: inline-block;
  color: #97a29c;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: #F4F3EF;
}

.page-title {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F4F3EF;
  text-shadow: 
    0 0 1px rgba(255, 255, 255, 0.3),
    0.3px 0 1px rgba(108, 127, 175, 0.3),
    -0.3px 0 1px rgba(122, 106, 154, 0.3);
}

/* Video Section */
.video-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-bottom: 3px solid #222d28;
}

.video-container {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #171e1a;
  border-bottom: 3px solid #222d28;
  border-top: none;
  border-left: none;
  border-right: none;
}

.video-container:last-child {
  border-bottom: none;
}

.video-label {
  padding: 1rem 1.5rem;
  background: #121916;
  border-bottom: 3px solid #222d28;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.video-placeholder {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px dashed #303d37;
  margin: 1rem;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0c100e;
}

.placeholder-text {
  font-size: 2rem;
  font-weight: 700;
  color: #303d37;
  letter-spacing: 0.2em;
  text-align: center;
}

/* Video Player (when uncommented) */
.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* CRT Shell for Effect Video */
.crt-shell-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
}

.crt-shell {
  position: relative;
  width: 100%;
  padding: 1.5rem 1.5rem 0.75rem 1.5rem;
  border-radius: 24px;
  background: linear-gradient(to bottom, #e8e0d6, #d4c7b8);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.crt-brand {
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  font-family: 'Courier New', monospace;
  color: #5a4f42;
  text-shadow:
    1px 1px 0 #e8e0d6,
    -1px -1px 0 #a89684;
  z-index: 10;
}

.crt-bezel-effect {
  width: 100%;
  padding: 0.75rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #ddd4c8, #b8a896 50%, #c9bca8 100%);
}

.crt-bezel-effect .video-placeholder {
  margin: 0;
  border: none;
  width: 100%;
  border-radius: 8px;
  background: #0a0a0a;
  overflow: hidden;
  position: relative;
}

/* Bottom Control Panel */
.crt-bottom-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 0 0 0.25rem 0;
}

.crt-control-btn {
  padding: 0.35rem 1rem;
  min-width: 90px;
  background: radial-gradient(circle at center, #e8e0d6 40%, #c0b3a0 95%);
  border: 2px solid #8a7a68;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #4a3f32;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.crt-control-btn:hover {
  background: radial-gradient(circle at center, #f0e8de 40%, #cac0ad 95%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 3px 6px rgba(0, 0, 0, 0.3);
}

.crt-control-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Invisible buttons for source video (dimension matching) */
.crt-control-btn.crt-invisible {
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

/* Volume Display UI */
.volume-display {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.2rem;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.volume-display.show {
  opacity: 1;
}

.volume-bar {
  width: 6px;
  height: 20px;
  background-color: #aaffaa;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.volume-bar.active {
  opacity: 1;
  box-shadow: 0 0 4px rgba(170, 255, 170, 0.6);
}

/* Info Section - Mobile First */
.info-section {
  padding: 2rem 1rem;
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
}

.info-blocks-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-block {
  margin-bottom: 0;
  padding: 0;
  border: 2px solid #060807;
  background: #171e1a;
  box-shadow:
    inset 1px 1px 0 #303d37,
    inset -1px -1px 0 #0c100e,
    8px 8px 16px rgba(0, 0, 0, 0.4);
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 4px solid #6C7FAF;
  position: relative;
  overflow: hidden;
}

.info-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAFElEQVQYV2NkYGD4z0AEYBxVAAUAHh4CAf2e4VcAAAAASUVORK5CYII=');
  opacity: 0.015;
  pointer-events: none;
  z-index: 0;
}

.info-block > * {
  position: relative;
  z-index: 1;
}

.info-block:nth-child(2) {
  border-top-color: #7A6A9A;
}

.info-block:nth-child(3) {
  border-top-color: #558b65;
}

.info-title {
  background: linear-gradient(180deg, #1d2722 0%, #171e1a 100%);
  border-bottom: 1px solid #3a4942;
  padding: 9px 12px 9px 28px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #F4F3EF;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 0;
  position: relative;
  flex-shrink: 0;
}

.info-title::before {
  content: '>';
  position: absolute;
  left: 12px;
  color: #F1D37A;
  font-size: 0.75rem;
}

.info-body {
  padding: 14px;
  background: #202824;
  border: 2px solid;
  border-color: #060807 #303d37 #303d37 #060807;
  box-shadow:
    inset 1px 1px 0 #0c100e,
    inset -1px -1px 0 #28332e,
    inset 0 0 12px rgba(0, 0, 0, 0.25);
  margin: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.info-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.06) 1px,
    rgba(0, 0, 0, 0.06) 2px
  );
  pointer-events: none;
  z-index: 0;
}

.info-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.02) 0px,
    rgba(255, 0, 0, 0.02) 1px,
    rgba(0, 255, 0, 0.02) 1px,
    rgba(0, 255, 0, 0.02) 2px,
    rgba(0, 0, 255, 0.02) 2px,
    rgba(0, 0, 255, 0.02) 3px
  );
  pointer-events: none;
  z-index: 0;
}

.info-body > * {
  position: relative;
  z-index: 1;
}

.info-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #F4F3EF;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 1rem;
  font-weight: 400;
}

.info-text::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #F1D37A;
  font-weight: 700;
}

.info-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.info-list li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #F4F3EF;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.85rem;
  font-weight: 400;
}

.info-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #F1D37A;
  font-weight: 700;
}

/* CTA Block */
.info-block.cta-block .info-body {
  align-items: flex-start;
  justify-content: center;
}

.cta-intro {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #F4F3EF;
  margin-bottom: 0;
  font-weight: 400;
  text-align: center;
  order: 2;
}

.cta-intro .highlight {
  color: #F1D37A;
  font-weight: 600;
}

.cta-button-wrapper {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  order: 1;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #121916;
  color: #F1D37A;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  border: 2px solid #F1D37A;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-transform: lowercase;
  width: auto;
  max-width: 90%;
  text-align: center;
}

.cta-button:hover {
  background: #F1D37A;
  color: #060807;
  border-color: #F1D37A;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(241, 211, 122, 0.3);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-note {
  display: none;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .page-header {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .video-label {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .video-placeholder {
    margin: 0.75rem;
    width: calc(100% - 1.5rem);
    height: auto;
  }

  .placeholder-text {
    font-size: 1.2rem;
  }

  .crt-shell-wrapper {
    padding: 0.5rem;
  }

  .crt-shell {
    padding: 1rem 1rem 0.5rem 1rem;
    border-radius: 20px;
  }

  .crt-brand {
    font-size: 0.6rem;
    top: 0.35rem;
    left: 1rem;
  }

  .crt-bezel-effect {
    padding: 0.5rem;
    border-radius: 12px;
  }

  .crt-bottom-controls {
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding: 0 0 0.15rem 0;
  }

  .crt-control-btn {
    padding: 0.3rem 0.75rem;
    min-width: 75px;
    font-size: 0.6rem;
  }

  .volume-display {
    bottom: 2rem;
    gap: 0.3rem;
  }

  .volume-bar {
    width: 8px;
    height: 24px;
    border-radius: 2px;
  }
}

/* Tablet Responsive */
@media (min-width: 601px) and (max-width: 1023px) {
  .page-header {
    padding: 1.5rem 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .video-placeholder {
    margin: 1rem;
    width: calc(100% - 2rem);
    height: auto;
  }

  .placeholder-text {
    font-size: 1.75rem;
  }

  .crt-brand {
    font-size: 0.65rem;
  }

  .crt-control-btn {
    padding: 0.5rem 1rem;
    min-width: 90px;
    font-size: 0.7rem;
  }

  .info-section {
    padding: 3rem 2rem;
  }

  .info-body {
    padding: 1.25rem;
  }

  .info-text {
    font-size: 1rem;
  }

  .info-list li {
    font-size: 1rem;
  }

  .cta-intro {
    font-size: 1rem;
  }

  .cta-button {
    padding: 1.1rem 2.25rem;
    font-size: 1.1rem;
  }
}

/* Desktop 1080p+ */
@media (min-width: 1024px) and (max-width: 2200px) {
  .info-section {
    padding: 3.5rem 3rem;
  }

  .info-blocks-container {
    flex-direction: row;
    gap: 2.5rem;
    align-items: stretch;
  }
  
  .info-block {
    width: calc(33.333% - 1.75rem);
  }

  .info-body {
    padding: 1.5rem;
  }

  .info-text {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .info-list li {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .cta-intro {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.15rem;
    max-width: 90%;
  }

  .video-section {
    grid-template-columns: 1fr 1fr;
    max-height: 70vh;
  }

  .video-container {
    border-bottom: none;
    border-right: 3px solid #222d28;
    min-height: 0;
    overflow: hidden;
  }

  .video-container:last-child {
    border-right: none;
  }

  .video-container:first-child {
    border-top: none;
  }

  .video-placeholder {
    margin: 1.5rem;
    width: calc(100% - 3rem);
    height: auto;
  }
}

/* Desktop 1440p+ */
@media (min-width: 2201px) {
  .info-section {
    padding: 4rem 4rem;
  }

  .info-blocks-container {
    flex-direction: row;
    gap: 3rem;
    align-items: stretch;
  }
  
  .info-block {
    width: calc(33.333% - 2rem);
  }

  .info-body {
    padding: 2rem;
  }

  .info-text {
    font-size: 1.15rem;
    line-height: 1.65;
  }

  .info-list li {
    font-size: 1.15rem;
    line-height: 1.65;
    margin-bottom: 1.15rem;
  }

  .cta-intro {
    font-size: 1.15rem;
    line-height: 1.65;
  }

  .cta-button {
    padding: 1.3rem 2.75rem;
    font-size: 1.25rem;
    max-width: 85%;
  }

  .video-section {
    grid-template-columns: 1fr 1fr;
    max-height: 70vh;
  }

  .video-container {
    border-bottom: none;
    border-right: 3px solid #222d28;
    min-height: 0;
    overflow: hidden;
  }

  .video-container:last-child {
    border-right: none;
  }

  .video-container:first-child {
    border-top: none;
  }

  .video-placeholder {
    margin: 1.5rem;
    width: calc(100% - 3rem);
    height: auto;
  }
}