/**
 * Nextury Fund Ticker — stiliai (v2.2)
 * Su Neris šriftu ir pilna mobile responsive logika
 */

/* ===== NERIS ŠRIFTAS ===================================================== */
@font-face {
  font-family: 'Neris';
  src: url('fonts/Neris-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neris';
  src: url('fonts/Neris-ThinItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Neris';
  src: url('fonts/Neris-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neris';
  src: url('fonts/Neris-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Neris';
  src: url('fonts/Neris-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neris';
  src: url('fonts/Neris-SemiBoldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Neris';
  src: url('fonts/Neris-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Neris';
  src: url('fonts/Neris-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neris';
  src: url('fonts/Neris-BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ===== PAGRINDINIS TICKER ================================================ */

.nft-ticker {
  font-family: 'Neris', system-ui, -apple-system, sans-serif;
  display: block;
  width: 100%;
}

/* ── Fondo pavadinimas + rodyklė ── */
.nft-link {
  font-family: 'Neris', sans-serif;
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8b9aa6;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  line-height: 1.2;
}
.nft-link:hover { color: #e8eef2; }
.nft-link .nft-arr {
  color: #0bb3c6;
  font-size: 16px;
  display: inline-block;
  transition: transform 0.2s;
  line-height: 1;
}
.nft-link:hover .nft-arr { transform: translateX(3px); }
.nft-link.nft-link-r:hover .nft-arr { transform: translateX(-3px); }

/* ── Kainos eilutė ── */
.nft-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-family: 'Neris', sans-serif;
}
.nft-price {
  font-family: 'Neris', sans-serif;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 600;
  color: #e8eef2;
  letter-spacing: -0.5px;
  line-height: 1;
}
.nft-price sup {
  font-size: 0.55em;
  color: #8b9aa6;
  font-weight: 300;
  margin-left: -1px;
  vertical-align: super;
}
.nft-eur {
  color: #0bb3c6;
  margin-left: 3px;
}
.nft-divider {
  color: #564c4d;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 300;
  margin: 0 4px;
  line-height: 1;
}
.nft-change {
  font-family: 'Neris', sans-serif;
  font-size: clamp(13px, 1.8vw, 17px);
  font-weight: 600;
  line-height: 1;
}
.nft-up   { color: #2dd474; }
.nft-down { color: #ff5d5d; }

/* ── Tooltip "?" ikona ── */
.nft-tt {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  cursor: help;
  color: #5a6772;
  transition: color 0.2s;
}
.nft-tt:hover, .nft-tt:focus { color: #0bb3c6; outline: none; }
.nft-tt svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* ── Tooltip pop-over ── */
.nft-tt-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(10, 15, 21, 0.97);
  color: #e8eef2;
  border: 1px solid rgba(11, 179, 198, 0.25);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Neris', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  width: 280px;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: normal;
}
.nft-tt-text::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(10, 15, 21, 0.97);
  border-left: 1px solid rgba(11, 179, 198, 0.25);
  border-top: 1px solid rgba(11, 179, 198, 0.25);
}
.nft-tt:hover .nft-tt-text,
.nft-tt:focus .nft-tt-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Tooltip iš dešinės (Asia fondas) ── */
.nft-tt.nft-tt-right .nft-tt-text {
  left: auto;
  right: 0;
  transform: translateY(-4px);
}
.nft-tt.nft-tt-right:hover .nft-tt-text,
.nft-tt.nft-tt-right:focus .nft-tt-text {
  transform: translateY(0);
}
.nft-tt.nft-tt-right .nft-tt-text::before {
  left: auto;
  right: 8px;
  transform: rotate(45deg);
}

/* ── Stale duomenų indikatorius ── */
.nft-stale .nft-amount { opacity: 0.85; }

/* ===== MOBILE RESPONSIVE ================================================ */

/* Tabletė (≤900px) — lygiuoti viską į kairę */
@media (max-width: 900px) {
  .nft-ticker.nft-ticker-right { text-align: left !important; }
  .nft-ticker.nft-ticker-right .nft-amount { justify-content: flex-start !important; }
  .nft-ticker.nft-ticker-right .nft-link-r .nft-arr { display: none; }
  .nft-ticker.nft-ticker-right .nft-link-r::after {
    content: '›';
    color: #0bb3c6;
    font-size: 16px;
    margin-left: 6px;
  }
}

/* Mažas ekranas (≤640px) */
@media (max-width: 640px) {
  .nft-amount { gap: 4px; }
  .nft-divider { margin: 0 2px; }
  .nft-tt-text {
    width: min(260px, calc(100vw - 60px));
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* Labai mažas ekranas (≤400px) — suspaudžiame */
@media (max-width: 400px) {
  .nft-link { font-size: 11px; letter-spacing: 1px; }
  .nft-price { font-size: 22px; }
  .nft-change { font-size: 14px; }
  .nft-divider { font-size: 18px; }
}
