/* Final visual layer. Load LAST, after menu.css, transmitter.css and about.css.
   Tune --sf-glass-tint to adjust opacity without changing layout or behaviour. */

:root {
  --sf-glass-tint: rgba(27, 31, 38, 0.82);
  --sf-glass-edge: rgba(255, 255, 255, 0.14);
  --sf-glass-blur: 24px;
  --sf-glass-shadow: 0 -8px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* A restrained ambient backdrop; no image files are required. */
html {
  background-color: #14171b;
}

body {
  background-color: #14171b;
  background-image:
    radial-gradient(ellipse at 95% 0%, rgba(145, 169, 200, 0.075), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(255, 224, 0, 0.025), transparent 55%);
}

.splash-screen {
  background: rgba(10, 13, 18, 0.78);
}

.permission-button {
  border-color: rgba(255, 224, 0, 0.28);
  background: rgba(30, 34, 41, 0.85);
  color: var(--pointer-color, #ffe000);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.permission-button:hover,
.permission-button:focus-visible {
  background: rgba(255, 224, 0, 0.08);
  color: var(--pointer-color, #ffe000);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header {
  background: #1c2026;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#menuButton {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#sideMenu,
#siteInfoPanel,
#aboutPanelContent {
  background: #1c2026;
  border-color: var(--sf-glass-edge);
  box-shadow: var(--sf-glass-shadow);
}

#menuBackdrop,
#siteInfoBackdrop,
#aboutOverlay {
  background: rgba(0, 0, 0, 0.3);
}

.site-sheet-close {
  background: linear-gradient(to bottom, rgba(28, 32, 39, 0.96), rgba(28, 32, 39, 0.85));
  color: #c5cbd2;
}

#areaSelect {
  background-color: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

#areaSelect option {
  background-color: #1c2026;
}

.menu-switch::before {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.tech-badge {
  background: rgba(255, 255, 255, 0.035);
}

/* Transmitter facts: one location line, three key facts, then channels. */
.site-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-details > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.site-details > div:first-child,
.site-details > div:last-child {
  grid-column: 1 / -1;
}

.site-details dt {
  color: #b5bdc7;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-details dd {
  color: #f3f5f7;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

/* Blur only the surfaces behind content; arrows and type remain sharp. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header {
    background: rgba(25, 29, 35, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    backdrop-filter: blur(18px) saturate(120%);
  }

  #sideMenu,
  #siteInfoPanel,
  #aboutPanelContent {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 48%),
      var(--sf-glass-tint);
    -webkit-backdrop-filter: blur(var(--sf-glass-blur)) saturate(125%);
    backdrop-filter: blur(var(--sf-glass-blur)) saturate(125%);
  }
}

/* Respect reduced-transparency preferences while keeping the same layout. */
@media (prefers-reduced-transparency: reduce) {
  .header,
  #sideMenu,
  #siteInfoPanel,
  #aboutPanelContent {
    background: #1c2026;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  #menuBackdrop,
  #siteInfoBackdrop,
  #aboutOverlay {
    background: rgba(0, 0, 0, 0.6);
  }
}
