/* ============================================================
   ArcoLanX.net — Advanced Video, Scroll-Sync & Systems CSS
   ============================================================ */

/* ── Global Sync Status Bar ── */
.sync-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 34px;
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid rgba(234, 179, 8, 0.22);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
}

body.has-sync-bar .navbar {
  top: 34px;
}

body.has-sync-bar .page-content {
  padding-top: 34px;
}

.sync-topbar-left,
.sync-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.sync-topbar-left::-webkit-scrollbar,
.sync-topbar-right::-webkit-scrollbar {
  display: none;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.22);
  color: var(--gold-300);
  white-space: nowrap;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: syncPulse 1.8s infinite;
}

.sync-dot.gold {
  background: var(--gold-400);
  box-shadow: 0 0 8px var(--gold-400);
}

.sync-dot.orange {
  background: #ff6b00;
  box-shadow: 0 0 8px #ff6b00;
}

@keyframes syncPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* ── Cinematic Video Hero ── */
.video-hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--navbar-height) + 4rem) var(--space-xl) 4rem;
  border-bottom: 1px solid rgba(234, 179, 8, 0.25);
}

.video-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #030303;
}

.video-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: contrast(1.15) saturate(1.1);
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.video-hero-bg.cyber-invert video {
  filter: invert(1) hue-rotate(180deg) contrast(1.25) brightness(0.85);
  opacity: 0.72;
}

.video-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(234, 179, 8, 0.12) 0%, rgba(5, 5, 5, 0.72) 60%, #050505 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.35) 45%, #050505 100%);
  z-index: 1;
}

.video-hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .video-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-Left-col {
  text-align: left;
}

@media (max-width: 1024px) {
  .hero-Left-col {
    text-align: center;
  }
  .hero-Left-col .hero-actions {
    justify-content: center;
  }
}

/* ── Synchronized Video HUD Card (Right Column of Hero) ── */
.video-hud-card {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(234, 179, 8, 0.14);
  position: relative;
  overflow: hidden;
}

.video-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.video-hud-screen {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.video-hud-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-hud-screen.cyber-dark video {
  filter: invert(1) hue-rotate(180deg) contrast(1.22);
}

.hud-corner-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(5, 5, 5, 0.85);
  border: 1px solid rgba(234, 179, 8, 0.45);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-timecode {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(5, 5, 5, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fff;
}

.video-sync-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-top: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.video-sync-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  box-shadow: 0 0 12px var(--gold-400);
  transition: width 0.08s linear;
}

.video-hud-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.hud-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn:hover,
.hud-btn.active {
  background: rgba(234, 179, 8, 0.18);
  border-color: var(--gold-400);
  color: var(--gold-200);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
}

.hud-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
}

.hud-telemetry-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
}

.hud-telemetry-label {
  font-size: 0.63rem;
  color: var(--text-tertiary);
  display: block;
}

.hud-telemetry-val {
  font-size: 0.8rem;
  color: var(--gold-300);
  font-weight: 700;
}

/* ── Scroll-Synchronized 240-Frame 3D Armor Section ── */
.armor-sync-section {
  position: relative;
  padding: 5rem 0;
  background: radial-gradient(ellipse at center, rgba(234, 179, 8, 0.06) 0%, #050505 70%);
  border-bottom: 1px solid rgba(234, 179, 8, 0.2);
}

.armor-sync-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .armor-sync-layout {
    grid-template-columns: 1fr;
  }
}

.armor-canvas-card {
  position: sticky;
  top: 118px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(234, 179, 8, 0.12);
}

.armor-canvas-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #080808;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.armor-canvas-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: filter 0.35s ease;
}

.armor-canvas-stage.cyber-invert canvas {
  filter: invert(1) hue-rotate(180deg) contrast(1.22);
}

.armor-scrubber-bar {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.armor-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

.armor-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 15px var(--gold-400);
  cursor: grab;
  border: 2px solid #000;
}

.armor-phase-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.armor-phase-card {
  background: rgba(18, 15, 8, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid rgba(234, 179, 8, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.armor-phase-card.active,
.armor-phase-card:hover {
  background: rgba(35, 27, 8, 0.85);
  border-color: rgba(234, 179, 8, 0.5);
  border-left-color: var(--gold-400);
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.18);
  transform: translateX(6px);
}

.armor-phase-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
}

/* ── Warframe Worldstate Live Bar ── */
.worldstate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.worldstate-card {
  background: rgba(15, 12, 5, 0.75);
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ws-state-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.ws-day { background: rgba(250, 204, 21, 0.18); color: #fde047; border: 1px solid rgba(250, 204, 21, 0.4); }
.ws-night { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.4); }
.ws-warm { background: rgba(249, 115, 22, 0.2); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.4); }
.ws-cold { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }

/* ── Interactive Modding Board & Auto-Build Engine ── */
.mod-board-panel {
  background: rgba(10, 10, 12, 0.9);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  margin-top: 2rem;
}

.mod-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .mod-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mod-slot-box {
  background: linear-gradient(145deg, rgba(25, 22, 12, 0.9), rgba(10, 10, 10, 0.95));
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
}

.mod-slot-box:hover {
  border-color: var(--gold-400);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.2);
}

.mod-slot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-400);
}

.mod-slot-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  margin-top: 0.4rem;
}

.shard-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.shard-slot {
  flex: 1;
  min-width: 130px;
  background: rgba(15, 15, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shard-slot:hover {
  border-color: var(--gold-400);
  transform: scale(1.03);
}

/* ── Item Detail Modal ── */
.wiki-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wiki-modal-backdrop.open {
  display: flex;
}

.wiki-modal-card {
  background: #0b0b0e;
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: var(--radius-xl);
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(234, 179, 8, 0.2);
}

/* ── Floating Cephalon AI Assistant ── */
.cephalon-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ca8a04, #eab308);
  color: #050505;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 8px 30px rgba(234, 179, 8, 0.45);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.cephalon-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(234, 179, 8, 0.65);
}

.cephalon-drawer {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 500px;
  max-height: calc(100vh - 140px);
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: var(--radius-xl);
  z-index: 1500;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(234, 179, 8, 0.2);
}

.cephalon-drawer.open {
  display: flex;
}

.cephalon-header {
  padding: 1rem 1.25rem;
  background: rgba(234, 179, 8, 0.12);
  border-bottom: 1px solid rgba(234, 179, 8, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cephalon-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.cephalon-msg {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 88%;
  line-height: 1.5;
}

.cephalon-msg.bot {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: var(--text-primary);
  align-self: flex-start;
}

.cephalon-msg.user {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  align-self: flex-end;
}

.cephalon-input-row {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 0.5rem;
}

.cephalon-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.cephalon-input-row input:focus {
  border-color: var(--gold-400);
}

/* ── Interactive Terminals & IDE ── */
.terminal-box {
  background: #050507;
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-topbar {
  background: #0f0f14;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-body {
  padding: 1.25rem;
  min-height: 240px;
  max-height: 360px;
  overflow-y: auto;
  font-size: 0.84rem;
  line-height: 1.65;
}

.ide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .ide-grid {
    grid-template-columns: 1fr;
  }
}

.code-textarea {
  width: 100%;
  min-height: 280px;
  background: #07070a;
  color: #fef08a;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  resize: vertical;
  outline: none;
}

.code-textarea:focus {
  border-color: var(--gold-400);
}
