/* ============================================
   EAF — Logo + Background Chart + Pair HUD
   ============================================ */

/* -------------------------------------------------------
   NAVBAR LOGO — big, no border box, screen blend
   ------------------------------------------------------- */
.nav-logo-mark { display: none; }

.nav-logo-img {
  height: 130px !important;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(2.2) saturate(1.4)
          drop-shadow(0 0 10px rgba(201,168,76,0.5));
  transition: filter 0.25s ease;
}

.nav-logo:hover .nav-logo-img {
  filter: brightness(2.6) saturate(1.5)
          drop-shadow(0 0 18px rgba(201,168,76,0.75));
}

/* -------------------------------------------------------
   CANDLESTICK CHART — right-side background decoration
   ------------------------------------------------------- */
#candle-canvas {
  position: absolute !important;
  right: 0;
  top: 0;
  bottom: 0;
  width: 62%;
  height: 100% !important;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
  /* Fade left edge so chart bleeds into content area */
  mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%);
}

/* -------------------------------------------------------
   FLOATING PAIR HUD — top right corner
   ------------------------------------------------------- */
.chart-hud {
  position: absolute;
  top: calc(var(--nav-height) + 20px);
  right: 32px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  pointer-events: none;
}

.chart-hud-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 7, 20, 0.72);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 6px;
  padding: 5px 13px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,76,0.04) inset;
}

.chud-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3DD6A0;
  box-shadow: 0 0 8px #3DD6A0, 0 0 16px rgba(61,214,160,0.4);
  animation: pulse-live 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.chud-pair {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #C9A84C;
  letter-spacing: 0.06em;
  transition: color 0.4s ease;
}

.chud-tf {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: rgba(74,144,217,0.9);
  background: rgba(74,144,217,0.1);
  border: 1px solid rgba(74,144,217,0.28);
  border-radius: 3px;
  padding: 1px 6px;
  letter-spacing: 0.06em;
}

.chud-sep {
  color: rgba(255,255,255,0.18);
  font-size: 10px;
}

.chud-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #EDEDF0;
}

.chud-chg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}
.chud-chg.up   { color: #3DD6A0; }
.chud-chg.down { color: #E05252; }

/* Pair rotation dots */
.chud-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2px;
}

.pair-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.4s ease;
}

.pair-dot.active {
  background: #C9A84C;
  box-shadow: 0 0 6px rgba(201,168,76,0.7);
  width: 14px;
  border-radius: 3px;
}

/* -------------------------------------------------------
   KEYFRAMES
   ------------------------------------------------------- */
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* -------------------------------------------------------
   MOBILE
   ------------------------------------------------------- */
@media (max-width: 768px) {
  #candle-canvas {
    width: 100%;
    opacity: 0.25;
    mask-image: linear-gradient(
      to bottom,
      transparent 0%, black 15%,
      black 85%, transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%, black 15%,
      black 85%, transparent 100%
    );
  }

  .chart-hud {
    right: 16px;
    top: calc(var(--nav-height) + 10px);
  }

  .chart-hud-row {
    padding: 4px 9px;
    gap: 6px;
  }

  .chud-price { font-size: 12px; }
  .chud-pair  { font-size: 12px; }

  .nav-logo-img {
    height: 68px !important;
  }
}
