/* ============================================================
   J.A.R.V.I.S. WALLPAPER DASHBOARD  -  HOME STYLES
   Dark neon glassmorphism HUD, single section 1920x1080
   ============================================================ */

:root {
  --bg-0: #03060f;
  --bg-1: #08101f;
  --cyan: #00f0ff;
  --cyan-2: #3dd6ff;
  --blue: #3b82f6;
  --amber: #ffb340;
  --green: #3dff8c;
  --red: #ff4d6d;
  --ink: #d9e6ff;
  --ink-dim: #7f95b8;
  --glass: rgba(9, 16, 32, 0.55);
  --glass-strong: rgba(10, 18, 38, 0.78);
  --line: rgba(0, 240, 255, 0.16);
  --line-bright: rgba(0, 240, 255, 0.45);
  --f-display: 'Orbitron', sans-serif;
  --f-body: 'Rajdhani', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(0, 90, 170, 0.38), transparent 60%),
    radial-gradient(900px 650px at -10% 110%, rgba(0, 150, 190, 0.22), transparent 55%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 60%, var(--bg-0));
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  user-select: none;
  cursor: default;
}

/* ---------- ambient overlays ---------- */
.scanlines {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(0, 0, 0, 0.12) 0px, rgba(0, 0, 0, 0.12) 1px,
    transparent 1px, transparent 4px);
  opacity: 0.35;
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 45%, black 30%, transparent 80%);
}

/* ---------- stage: fixed 1920x1080, scaled to fit ---------- */
#stage {
  position: fixed;
  left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 34px 20px;
  gap: 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.hud-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 34px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.08), inset 0 0 30px rgba(0, 240, 255, 0.04);
  position: relative;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.hud-header:hover {
  border-color: var(--line-bright);
  box-shadow: 0 0 55px rgba(0, 240, 255, 0.18), inset 0 0 30px rgba(0, 240, 255, 0.06);
}

.brand-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 4px;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.8), 0 0 40px rgba(0, 240, 255, 0.35);
}
.brand-sub {
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--ink-dim);
  margin-top: 3px;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 2px;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: blink 1.4s infinite;
}
.dot.on { background: var(--green); box-shadow: 0 0 12px var(--green); animation: none; }
.dot.off { background: var(--red); box-shadow: 0 0 12px var(--red); animation: none; }
.status-txt { color: var(--ink-dim); }
.vsep { width: 1px; height: 16px; background: var(--line); margin: 0 6px; }

/* clock */
.clock-block { text-align: center; }
.clock {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 0 25px rgba(0, 240, 255, 0.6), 0 0 60px rgba(0, 240, 255, 0.25);
  letter-spacing: 6px;
}
.date {
  font-size: 16px;
  letter-spacing: 5px;
  color: var(--cyan-2);
  margin-top: 8px;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* weather */
.weather-block { text-align: right; }
.weather-temp {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 44px;
  color: var(--amber);
  text-shadow: 0 0 20px rgba(255, 179, 64, 0.5);
}
.weather-desc {
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--ink);
  margin-top: 4px;
  text-transform: uppercase;
}
.weather-city { font-size: 13px; color: var(--ink-dim); letter-spacing: 2px; margin-top: 2px; }

/* ============================================================
   MAIN GRID
   ============================================================ */
.hud-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1.3fr 1.05fr;
  gap: 20px;
  min-height: 0;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}

/* ---------- panels ---------- */
.panel {
  position: relative;
  flex: 1;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px 22px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.panel::before, .panel::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--cyan-2);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.35s ease, width 0.35s ease, height 0.35s ease;
}
.panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.panel::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.panel:hover {
  transform: translateY(-3px);
  border-color: var(--line-bright);
  box-shadow: 0 8px 40px rgba(0, 240, 255, 0.16), 0 0 30px rgba(0, 240, 255, 0.10);
}
.panel:hover::before, .panel:hover::after { width: 26px; height: 26px; opacity: 1; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cyan-2);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tag { font-size: 13px; }
.live {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--green);
}
.live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 1.6s infinite;
}

/* ---------- current project ring ---------- */
.current-project { text-align: center; padding-top: 26px; }
.ring-wrap { position: relative; width: 170px; height: 170px; margin: 6px auto 18px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(0, 240, 255, 0.12); stroke-width: 9; }
.ring-fg {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 389.6;
  stroke-dashoffset: 389.6;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8));
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-pct {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 34px;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
}
.ring-sub { font-size: 11px; letter-spacing: 3px; color: var(--ink-dim); margin-top: 2px; }
.cur-title {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
  line-height: 1.3;
}
.cur-desc { font-size: 14px; color: var(--ink-dim); margin-top: 6px; line-height: 1.5; }

/* ---------- project list ---------- */
.proj-list { display: flex; flex-direction: column; gap: 13px; }
.proj-item { padding: 4px 0; }
.proj-top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.proj-name { font-size: 16px; font-weight: 600; letter-spacing: 1px; color: var(--ink); }
.proj-pct { font-family: var(--f-display); font-size: 13px; color: var(--cyan-2); }
.proj-bar {
  height: 6px; border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  overflow: hidden;
}
.proj-fill {
  height: 100%; width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-item.paused .proj-fill { background: linear-gradient(90deg, #55607a, var(--amber)); box-shadow: none; }
.proj-item.completed .proj-fill { background: linear-gradient(90deg, var(--blue), var(--green)); }
.proj-empty { color: var(--ink-dim); text-align: center; font-size: 15px; letter-spacing: 2px; padding: 20px 0; }

/* ---------- radar / today focus ---------- */
.radar-panel { position: relative; }
.radar-sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: 760px; height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.30), transparent 70deg, transparent 360deg);
  animation: sweep 7s linear infinite;
  pointer-events: none;
  opacity: 0.55;
  mask-image: radial-gradient(circle, black 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, black 0%, transparent 68%);
}
.radar-grid {
  position: absolute;
  top: 50%; left: 50%;
  width: 760px; height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.10);
  background:
    repeating-radial-gradient(circle, transparent 0 95px, rgba(0, 240, 255, 0.06) 95px 96px),
    repeating-conic-gradient(from 0deg, transparent 0 22.5deg, rgba(0, 240, 255, 0.05) 22.5deg 23deg);
  pointer-events: none;
}
.radar-panel .panel-head, .radar-panel .task-list { position: relative; z-index: 2; }

/* task list */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(5, 10, 24, 0.5);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.task:hover {
  border-color: var(--line-bright);
  transform: translateX(4px);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.15);
}
.tick {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid var(--cyan-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--green);
}
.task.done .tick { background: rgba(0, 240, 255, 0.15); border-color: var(--green); box-shadow: 0 0 10px rgba(61, 255, 140, 0.4); }
.t-title { flex: 1; font-size: 16px; font-weight: 500; letter-spacing: 1px; color: var(--ink); }
.task.done .t-title { color: var(--ink-dim); text-decoration: line-through; }
.t-tag {
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
}
.prio-high .t-tag { color: var(--red); border-color: rgba(255, 77, 109, 0.5); text-shadow: 0 0 8px rgba(255, 77, 109, 0.6); }
.prio-medium .t-tag { color: var(--amber); border-color: rgba(255, 179, 64, 0.5); text-shadow: 0 0 8px rgba(255, 179, 64, 0.6); }
.prio-low .t-tag { color: var(--cyan-2); border-color: rgba(0, 240, 255, 0.5); text-shadow: 0 0 8px rgba(0, 240, 255, 0.6); }

/* ---------- quote ---------- */
.quote-panel { flex: none; }
.quote-text {
  font-size: 19px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
}
.quote-author {
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--amber);
  text-shadow: 0 0 10px rgba(255, 179, 64, 0.5);
}

/* ---------- crypto ---------- */
.crypto-list { display: flex; flex-direction: column; gap: 8px; }
.crypto {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(5, 10, 24, 0.5);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease;
}
.crypto:hover { border-color: var(--line-bright); }
.c-name {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink);
}
.c-price { font-family: var(--f-display); font-size: 13px; color: var(--ink); }
.c-chg {
  font-family: var(--f-display);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  min-width: 62px;
  text-align: center;
}
.c-chg.up { color: var(--green); background: rgba(61, 255, 140, 0.10); }
.c-chg.down { color: var(--red); background: rgba(255, 77, 109, 0.10); }

/* ============================================================
   NEWS TICKER
   ============================================================ */
.news-ticker {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  border-radius: 12px;
  padding: 0 8px 0 20px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.ticker-tag {
  flex: none;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--red);
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
.ticker-tag i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: blink 1.2s infinite;
}
.ticker-window { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 55s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--ink);
  margin-right: 60px;
  display: inline-flex; align-items: center; gap: 10px;
}
.ticker-item::before { content: '▸'; color: var(--cyan-2); text-shadow: 0 0 10px rgba(0, 240, 255, 0.8); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE SCALING (keep 1920x1080 stage)
   ============================================================ */
@media (max-width: 1919px), (max-height: 1079px) {
  html, body { overflow: hidden; }
}
