/* =========================================================================
 ParPhonix — Digital Universe CSS (OLED Pure Tech Template)
 ========================================================================= */

:root {
  --bg-deep: #020305; /* فضای فوق‌العاده تاریک متمایل به مشکی خالص */
  --gold-accent: #c5a15b; /* طلایی لوکس سازمانی */
  --gold-dim: rgba(197, 161, 91, 0.2);
  --line-holo: rgba(197, 161, 91, 0.4);
}

body {
  background-color: var(--bg-deep) !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: #ffffff;
}

#universe-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* رآکتور انرژی لوگو (مرحله هفتم) */
.logo-reactor {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  margin: 0 auto 16px auto;
  position: relative;
  background: rgba(2, 3, 5, 0.9);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

@media (max-width: 600px) {
  .logo-reactor { width: 118px; height: 118px; }
}

#reactor-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.logo-reactor__img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(197, 161, 91, 0.55));
  pointer-events: none;
}

.title {
  font-family: 'Orbitron', 'Share Tech Mono', monospace; /* وردمارک تکنولوژیک برند */
  min-height: 1.2em;
  display: inline-block;
}

/* واحد تله‌متری زنده (مرحله پنجم) */
.telemetry-hud {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  background: rgba(4, 6, 10, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-accent);
  box-shadow: 0 0 8px var(--gold-accent);
  flex: none;
}

.telemetry-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold-accent);
  white-space: nowrap;
  transition: opacity 0.5s ease;
}

@media (max-width: 640px) {
  .telemetry-hud { top: 14px; right: 14px; padding: 6px 10px; }
  .telemetry-text { font-size: 9px; }
}

/* کارت‌های سبک هولوگرام (مرحله ششم) */
.holo-card {
  --proximity: 0; /* توسط جاوااسکریپت بر اساس فاصله ماوس تنظیم می‌شود */
  position: relative;
  background: rgba(4, 6, 10, 0.92) !important; /* داخل کارت کاملاً مات و تیره */
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color 0.4s ease;
}

/* لبه‌های درخشان کارت‌ها به سبک نئون طلایی ظریف */
.holo-glow {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(197, 161, 91, var(--proximity));
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  opacity: calc(0.35 + var(--proximity) * 0.65);
  box-shadow: inset 0 0 calc(6px + var(--proximity) * 10px) rgba(197, 161, 91, calc(var(--proximity) * 0.18)),
              0 0 calc(8px + var(--proximity) * 14px) rgba(197, 161, 91, calc(var(--proximity) * 0.22));
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.holo-card:hover .holo-glow {
  border-color: var(--gold-accent);
  opacity: 1;
  box-shadow: inset 0 0 15px rgba(197, 161, 91, 0.15), 0 0 20px rgba(197, 161, 91, 0.2);
}

.holo-card .shot {
  opacity: 0.4 !important; /* کاهش وضوح تصاویر برای حفظ حس مات و لوکس بودن */
  filter: grayscale(80%);
  transition: all 0.5s ease;
}

.holo-card:hover .shot {
  opacity: 0.6 !important;
  filter: grayscale(20%);
}

/* لایه امضای برند (مرحله دهم) */
#brand-signature-layer {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hidden-sig {
  opacity: 0;
}

.visible-sig {
  opacity: 1;
  pointer-events: auto !important;
}

.sig-text {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--gold-accent);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-shadow: 0 0 30px rgba(197, 161, 91, 0.3);
  font-family: 'Orbitron', 'Poppins', sans-serif;
  text-transform: uppercase;
}
