/* SpyderNet Public Display - STANDALONE stylesheet for the isolated
   /public Web Station virtual host. Duplicate of soe/css/public-
   display.css with the small set of --soe-* core variables and the
   page-background mechanism (normally provided by the shared soe-
   core.css) inlined directly, so this folder has zero dependency on
   anything outside itself. Keep in sync by hand with
   soe/css/public-display.css if that page's content/layout changes -
   see soe-global.php header comment for why this duplication exists. */

:root {
  --soe-bg: #1f2937;
  --soe-surface: rgba(17,24,39,.58);
  --soe-surface-solid: #111827;
  --soe-text: #f3f4f6;
  --soe-muted: #cbd5e1;
  --soe-line: rgba(243,244,246,.095);
  --soe-orange: #ff7a00;
  --soe-teal: #00bfb8;
  --soe-success: #39ff14;
  --soe-shadow: 0 18px 40px rgba(0,0,0,.22);
  --soe-hover-glow: 0 0 0 1px rgba(255,122,0,.38), 0 0 22px rgba(255,122,0,.24), 0 12px 34px rgba(15,23,42,.10);
}
html[data-soe-theme="light"] {
  --soe-bg: #e9ecef;
  --soe-surface: rgba(255,255,255,.58);
  --soe-surface-solid: #f8f9fa;
  --soe-text: #111827;
  --soe-muted: #4b5563;
  --soe-line: rgba(17,24,39,.10);
  --soe-success: #16a34a;
  --soe-shadow: 0 18px 40px rgba(15,23,42,.08);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--soe-bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--soe-text);
  background: var(--soe-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(31,41,55,.72), rgba(31,41,55,.62)), var(--soe-page-background, none) center center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
html[data-soe-theme="light"] body::before {
  background: linear-gradient(rgba(229,231,235,.65), rgba(229,231,235,.55)), var(--soe-page-background, none) center center / cover no-repeat;
}
body > * { position: relative; z-index: 1; }

.pdWrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 18px 28px;
  box-sizing: border-box;
  display: grid;
  gap: 10px;
}

.pdHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--soe-surface);
  border: 1px solid var(--soe-line);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: var(--soe-shadow);
}

.pdBrand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdLogo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.pdBrandTitle {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--soe-text);
  line-height: 1.1;
}

.pdMotto {
  color: var(--soe-orange);
  font-size: 11px;
  letter-spacing: .05em;
  margin-top: 1px;
}

.pdHeaderRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdToggleBtn {
  border: 1px solid var(--soe-line);
  border-radius: 999px;
  background: var(--soe-surface-solid);
  color: var(--soe-text);
  width: 28px;
  height: 28px;
  font-size: 13px;
  cursor: pointer;
  flex: 0 0 auto;
}
.pdToggleBtn:hover {
  border-color: rgba(255, 122, 0, .55);
  box-shadow: var(--soe-hover-glow);
}

.pdLiveTag {
  text-align: right;
  color: var(--soe-muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.pdLiveDot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--soe-success);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--soe-success);
  margin-right: 5px;
}

.pdCard {
  background: var(--soe-surface);
  border: 1px solid var(--soe-line);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--soe-shadow);
  min-height: 0;
}

.pdTopRow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pdDate {
  color: var(--soe-muted);
  font-size: 13px;
  font-weight: 600;
}

.pdTime {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--soe-teal);
  line-height: 1.1;
}

.pdQuoteCard {
  border-left: 3px solid rgba(255, 122, 0, .7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.pdCardLabel {
  color: var(--soe-orange);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pdQuote {
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.3;
  font-weight: 650;
}
.pdQuoteSource {
  color: var(--soe-muted);
  font-size: 11px;
  margin-top: 4px;
}

.pdMainGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pdWeatherTemp {
  font-size: 32px;
  font-weight: 900;
  color: var(--soe-teal);
  line-height: 1.1;
}

.pdWeatherCondition {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pdWeatherDesc {
  color: var(--soe-muted);
  font-size: 12px;
  line-height: 1.35;
}

.pdRadarFrame {
  min-height: 200px;
  border: 1px solid var(--soe-line);
  border-radius: 12px;
  overflow: hidden;
  background: #05080c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdRadarFrame img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

.pdStatusList {
  display: grid;
  gap: 7px;
}
.pdStatusItem {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}
.pdStatusDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--soe-success);
  box-shadow: 0 0 10px var(--soe-success);
  flex: 0 0 auto;
}

.pdSmallMuted {
  color: var(--soe-muted);
  font-size: 10px;
  margin-top: 8px;
  line-height: 1.35;
}

.pdFooter {
  text-align: center;
  color: var(--soe-muted);
  font-size: 10px;
}

/* ===== Desktop/TV: fixed no-scroll viewport, everything visible at once ===== */
@media (min-width: 761px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }
  .pdWrap {
    height: 100vh;
    padding: 14px 18px;
    grid-template-rows: auto auto 1fr auto;
    min-height: 0;
  }
  .pdTopRow {
    grid-template-columns: .9fr 1.1fr;
  }
  .pdQuote {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pdMainGrid {
    grid-template-columns: 1fr 1.35fr 1fr;
    min-height: 0;
  }
  .pdMainGrid .pdCard {
    display: flex;
    flex-direction: column;
  }
  .pdRadarFrame {
    flex: 1;
    min-height: 0;
  }
  .pdRadarFrame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}
