/*
Theme Name: VANTAGE | The Edge of Vision
Theme URI: https://defenderellc.com
Author: Defendere LLC / The Edge of Vision
Description: Digital-signage theme for the-edge-of-vision-plugin — full-viewport neon monitor boards (teov_blade) with artist tiles, GLB/video layers, and Future-Noir roster surfaces for other templates.
Version: 0.9.5
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: the-edge-of-vision-theme
*/

/*
  Legacy tokens — assets/css/future-noir.css references these on non-blade views.
*/

:root {
  --veov-obsidian: #050505;
  --veov-obsidian-deep: #020202;
  --veov-vantage-green: #1db954;
  --veov-vantage-green-dim: rgba(29, 185, 84, 0.35);
  --veov-liquid-gold: #ffcc00;
  --veov-liquid-gold-dim: rgba(255, 204, 0, 0.14);
  --veov-neon-core: #ffffff;
  --veov-neon-mid: rgba(255, 255, 255, 0.92);
  --veov-neon-halo-a: rgba(0, 255, 140, 0.55);
  --veov-neon-halo-b: rgba(29, 185, 84, 0.45);
  --veov-neon-halo-c: rgba(0, 255, 200, 0.22);
  --veov-grid-line: rgba(29, 185, 84, 0.42);
  --veov-grid-line-hot: rgba(29, 185, 84, 0.85);
  --veov-grid-gap: 0px;
  --veov-panel-fill: linear-gradient(
    165deg,
    rgba(29, 185, 84, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 42%,
    transparent 72%
  );
  --teovt-velocity-score: 50;
  --teovt-glitch-cycle-ms: calc(5200ms - (var(--teovt-velocity-score) * 38ms));
  --veov-mascot-z: 14000;
  --veov-transition-z: 16000;
  --teovt-font-display: "Archivo Black", "Syncopate", system-ui, sans-serif;
  --teovt-font-mono: "Share Tech Mono", ui-monospace, monospace;
  --teovt-font-body: system-ui, "Segoe UI", Roboto, Inter, sans-serif;
  --teovt-stage-max-w: min(100vw, calc(100vh * 16 / 9));
  --teovt-stage-max-h: min(100vh, calc(100vw * 9 / 16));
  --teovt-corruption-ms: 500ms;
  --teovt-ticker-duration: 22s;
}

/* =============================================================================
   Neon monitor — singular teov_blade (coffee shop / management board)
   ============================================================================= */

html.teov-blade-html {
  height: 100%;
  overflow: hidden;
}

body.teov-blade-body {
  margin: 0;
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #000000;
  color: #f2f2f2;
  font-family: "Orbitron", "Oswald", "Archivo Black", system-ui, sans-serif;
}

.teov-blade-body .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.teov-blade-board {
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  min-height: 0;
  padding: clamp(0.35rem, 0.8vw, 0.65rem);
  display: flex;
  flex-direction: column;
  background: #000000;
}

.teov-blade-board__empty {
  margin: auto;
  max-width: 36rem;
  padding: 2rem;
  text-align: center;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.teov-blade-grid {
  --teov-cols: 2;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--teov-cols), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: clamp(0.35rem, 0.9vw, 0.75rem);
  align-content: stretch;
  justify-content: stretch;
  transition: transform 0.2s ease-out;
}

@keyframes teov-monitor-tile-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.teov-monitor-tile {
  --teov-glow: #00f5ff;
  --teov-fade-delay: 0s;
  position: relative;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  opacity: 0;
}

.teov-monitor-tile.teov-monitor-tile--enter {
  animation: teov-monitor-tile-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--teov-fade-delay);
}

.teov-monitor-tile__shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a0a0a;
  filter: drop-shadow(0 0 6px var(--teov-glow)) drop-shadow(0 0 18px color-mix(in srgb, var(--teov-glow) 55%, transparent));
  transition: filter 0.2s ease-out;
}

.teov-monitor-tile__layer {
  position: absolute;
  inset: 0;
}

.teov-monitor-tile__layer--bg {
  z-index: 0;
}

.teov-monitor-tile__layer--overlay {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 55%);
}

.teov-monitor-tile__layer--hud {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(0.45rem, 1.1vw, 0.85rem) clamp(0.5rem, 1.2vw, 0.9rem);
  pointer-events: none;
}

.teov-monitor-tile__video,
.teov-monitor-tile__model,
.teov-monitor-tile__img,
.teov-monitor-tile__slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teov-monitor-tile.shape-hexagon .teov-monitor-tile__slide,
.teov-monitor-tile.shape-hexagon .teov-monitor-tile__img {
  clip-path: polygon(25% 6.5%, 75% 6.5%, 100% 50%, 75% 93.5%, 25% 93.5%, 0% 50%);
}

.teov-monitor-tile.shape-slanted .teov-monitor-tile__slide,
.teov-monitor-tile.shape-slanted .teov-monitor-tile__img {
  clip-path: polygon(7% 0%, 100% 0%, 93% 100%, 0% 100%);
}

.teov-monitor-tile.shape-square .teov-monitor-tile__slide,
.teov-monitor-tile.shape-square .teov-monitor-tile__img {
  clip-path: inset(0 round 14px);
}

.teov-monitor-tile__slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.teov-monitor-tile__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 48% 42%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.4s ease-in-out;
  pointer-events: none;
}

.teov-monitor-tile__slide.is-active {
  opacity: 1;
  z-index: 1;
  animation: teov-slide-kenburns 22s ease-in-out infinite alternate;
}

@keyframes teov-slide-kenburns {
  0% {
    transform: scale(1.02) translate(0, 0);
  }

  100% {
    transform: scale(1.12) translate(-2.2%, -1.4%);
  }
}

.teov-monitor-tile__kb-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.teov-monitor-tile__img--kenburns {
  width: 118%;
  height: 118%;
  max-width: none;
  object-fit: cover;
  object-position: 48% 42%;
  margin: -9% 0 0 -9%;
  animation: teov-kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes teov-kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.14) translate(-3.5%, -2.5%);
  }
}

.teov-monitor-tile__model {
  background: transparent;
}

.teov-monitor-tile__bg-fallback {
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 20%,
    color-mix(in srgb, var(--teov-glow) 28%, #0a0a0a) 0%,
    #000 78%
  );
}

.teov-monitor-tile__title {
  margin: 0 0 0.25rem;
  font-family: "Orbitron", "Oswald", system-ui, sans-serif;
  font-size: clamp(0.7rem, 1.3vw, 1.05rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 12px var(--teov-glow),
    0 0 28px color-mix(in srgb, var(--teov-glow) 65%, transparent),
    0 0 48px color-mix(in srgb, var(--teov-glow) 35%, transparent),
    0 2px 0 #000;
}

.teov-monitor-tile__stat {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: clamp(0.66rem, 1.12vw, 0.92rem);
  letter-spacing: 0.06em;
}

.teov-monitor-tile__stat-label {
  text-transform: uppercase;
  opacity: 0.8;
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 0 8px var(--teov-glow);
}

.teov-monitor-tile__stat-value {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.55vw, 1.25rem);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow:
    0 0 10px var(--teov-glow),
    0 0 22px color-mix(in srgb, var(--teov-glow) 70%, transparent),
    0 0 36px color-mix(in srgb, var(--teov-glow) 45%, transparent);
}

.teov-monitor-tile__intel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.teov-monitor-tile__meter {
  padding: 0.42rem 0.55rem 0.48rem;
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(0, 0, 0, 0.58) 0%, rgba(18, 22, 32, 0.42) 100%);
  border: 1px solid color-mix(in srgb, var(--teov-glow) 38%, rgba(255, 255, 255, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 22px rgba(0, 0, 0, 0.42);
}

.teov-monitor-tile__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
}

.teov-monitor-tile__meter .teov-monitor-tile__total {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.teov-monitor-tile__meter .teov-monitor-tile__stat-value {
  font-size: clamp(0.92rem, 1.7vw, 1.38rem);
  line-height: 1.05;
}

.teov-monitor-tile__top-track {
  margin: 0;
  padding: 0.38rem 0.5rem 0.42rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 0 10px 10px 0;
  border-left: 3px solid color-mix(in srgb, var(--teov-glow) 85%, transparent);
  background: rgba(0, 0, 0, 0.28);
}

.teov-monitor-tile__top-track__label {
  display: block;
  font-size: clamp(0.5rem, 0.82vw, 0.65rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.teov-monitor-tile__top-track__title {
  display: block;
  font-family: "Orbitron", "Oswald", system-ui, sans-serif;
  font-size: clamp(0.58rem, 1vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 10px color-mix(in srgb, var(--teov-glow) 55%, transparent);
}

.teov-monitor-tile__total-label {
  font-size: clamp(0.55rem, 0.95vw, 0.72rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 0 6px var(--teov-glow);
}

.teov-monitor-tile__sources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.teov-monitor-tile__source {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: clamp(0.52rem, 0.88vw, 0.68rem);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
}

.teov-monitor-tile__source-icon {
  position: relative;
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
  border-radius: 2px;
  background-color: var(--src-accent, #fff);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72%;
  box-shadow:
    0 0 6px var(--src-accent, #fff),
    0 0 14px color-mix(in srgb, var(--src-accent, #fff) 55%, transparent);
}

.teov-monitor-tile__source--spotify .teov-monitor-tile__source-icon {
  background-color: #1ed760;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 1.5C6.2 1.5 1.5 6.2 1.5 12S6.2 22.5 12 22.5 22.5 17.8 22.5 12 17.8 1.5 12 1.5zm4.9 15.6c-.2.3-.6.4-.9.2-2.5-1.5-5.6-1.8-9.3-1.2-.4.1-.7-.2-.8-.5-.1-.4.2-.7.5-.8 4-1 7.5-.6 10.3 1.2.3.2.4.6.2.9zm1.3-2.9c-.3.4-.7.5-1.1.3-2.9-1.7-7.2-2.2-10.6-1.2-.4.1-.9-.1-1-.5-.1-.4.1-.9.5-1 3.8-1.1 8.5-.6 11.7 1.4.4.2.5.7.3 1zm.1-2.8c-3.5-2.1-9.3-2.5-12.6-1.3-.5.2-1-.1-1.2-.6-.2-.5.1-1 .6-1.2 3.8-1.4 10.2-1 14.1 1.5.5.3.7.9.4 1.4-.3.5-.9.7-1.3.4z'/%3E%3C/svg%3E");
}

.teov-monitor-tile__source--tiktok .teov-monitor-tile__source-icon {
  background-color: #00f2ea;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M16.6 5.8c.9.9 2 1.4 3.2 1.4V9.9c-1.1 0-2.2-.4-3.1-1.1v7.4c0 3.2-2.6 5.8-5.8 5.8S5 19.4 5 16.2c0-3.2 2.6-5.8 5.8-5.8.6 0 1.2.1 1.7.3v3.3c-.5-.2-1.1-.4-1.7-.4-1.8 0-3.2 1.4-3.2 3.2s1.4 3.2 3.2 3.2 3.2-1.4 3.2-3.2V2h3.1c0 1.3.6 2.5 1.5 3.4z'/%3E%3C/svg%3E");
}

.teov-monitor-tile__source--instagram .teov-monitor-tile__source-icon {
  border-radius: 22%;
  background-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Crect x='4' y='4' width='16' height='16' rx='4'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Ccircle cx='17' cy='7' r='1' fill='%23fff' stroke='none'/%3E%3C/svg%3E"),
    radial-gradient(circle at 32% 108%, #fdf497 0%, #fd5949 38%, #d6249f 62%, #285aeb 92%);
  background-size: 64%, 100%;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.teov-monitor-tile__source--chartmetric .teov-monitor-tile__source-icon {
  background-color: #7c5cff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 18V8M10 18V4M16 18v-6M22 18V12'/%3E%3C/svg%3E");
}

.teov-monitor-tile__source--viberate .teov-monitor-tile__source-icon {
  background-color: #ff6b00;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 3L4 8v8l8 5 8-5V8l-8-5zm0 2.2L17 9v6l-5 3.1-5-3.1V9l5-3.8z'/%3E%3C/svg%3E");
}

.teov-monitor-tile__source-val {
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px color-mix(in srgb, var(--src-accent, #fff) 40%, transparent);
}

.teov-monitor-tile.shape-hexagon .teov-monitor-tile__shell {
  clip-path: polygon(25% 6.5%, 75% 6.5%, 100% 50%, 75% 93.5%, 25% 93.5%, 0% 50%);
}

.teov-monitor-tile.shape-slanted .teov-monitor-tile__shell {
  clip-path: polygon(7% 0%, 100% 0%, 93% 100%, 0% 100%);
}

.teov-monitor-tile.shape-square .teov-monitor-tile__shell {
  clip-path: inset(0 round 14px);
}

@media (prefers-reduced-motion: reduce) {
  .teov-blade-grid {
    transition: none;
  }

  .teov-monitor-tile.teov-monitor-tile--enter {
    animation: none;
    opacity: 1;
  }

  .teov-monitor-tile__shell {
    transition: none;
  }

  .teov-monitor-tile__img--kenburns {
    animation: none;
    width: 100%;
    height: 100%;
    margin: 0;
    transform: none;
  }

  .teov-monitor-tile__slide.is-active {
    animation: none;
    transform: none;
  }
}

/* --- Simpele pagina / 404 (page.php, single.php, 404.php) --- */

body.teovt-simple-page {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, #0f1410 0%, var(--veov-obsidian-deep, #020202) 55%);
  color: rgba(245, 250, 245, 0.92);
  font-family: system-ui, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
}

.teovt-simple {
  box-sizing: border-box;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.teovt-simple__header {
  margin-bottom: 2rem;
}

.teovt-simple__home {
  font-family: "Orbitron", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--veov-liquid-gold, #ffcc00);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(255, 204, 0, 0.35);
}

.teovt-simple__home:hover,
.teovt-simple__home:focus {
  color: #fff;
}

.teovt-simple__title {
  font-family: "Orbitron", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  color: #fff;
}

.teovt-simple__kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--veov-vantage-green, #1db954);
  margin: 0 0 0.5rem;
  letter-spacing: 0.2em;
}

.teovt-simple__lead {
  opacity: 0.88;
  margin: 0 0 1.5rem;
}

.teovt-simple__meta {
  font-size: 0.85rem;
  opacity: 0.65;
  margin: -0.25rem 0 1.25rem;
}

.teovt-simple__content a {
  color: var(--veov-vantage-green-dim, rgba(29, 185, 84, 0.9));
}

.teovt-simple__content a:hover {
  color: #fff;
}

.teovt-simple--404 {
  text-align: center;
  padding-top: clamp(3rem, 12vh, 6rem);
}

.teovt-simple__pages {
  margin-top: 2rem;
  font-size: 0.9rem;
}
