/**
 * Nextury Fund Chart — stiliai (ApexCharts)
 * Pritaikyta nextury.fund tamsiai temai. Spalvas galima keisti per CSS kintamuosius.
 */

.nxfc-wrap {
  --nxfc-text:    #e8eef2;
  --nxfc-muted:   #8b9aa6;
  --nxfc-accent:  #0bb3c6;
  --nxfc-up:      #2dd474;
  --nxfc-down:    #ff5d5d;
  --nxfc-line:    #1b2733;
  --nxfc-card:    rgba(255, 255, 255, 0.03);

  font-family: 'Neris', system-ui, -apple-system, sans-serif;
  width: 100%;
  color: var(--nxfc-text);
}

/* ── Antraštė: data + periodo mygtukai ── */
.nxfc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.nxfc-date {
  font-size: 13px;
  color: var(--nxfc-muted);
  letter-spacing: 0.3px;
}
.nxfc-date strong {
  color: var(--nxfc-text);
  font-weight: 600;
  margin-left: 4px;
}

.nxfc-periods {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nxfc-periods button {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--nxfc-muted);
  background: transparent;
  border: 1px solid var(--nxfc-line);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
}
.nxfc-wrap .nxfc-periods button:hover,
.nxfc-wrap .nxfc-periods button:focus,
.nxfc-wrap .nxfc-periods button:focus-visible,
.nxfc-wrap .nxfc-periods button:active {
  color: var(--nxfc-text) !important;
  border-color: var(--nxfc-accent) !important;
  background: rgba(11, 179, 198, 0.12) !important;
  outline: none !important;
  box-shadow: none !important;
}
.nxfc-wrap .nxfc-periods button.is-active,
.nxfc-wrap .nxfc-periods button.is-active:hover,
.nxfc-wrap .nxfc-periods button.is-active:focus,
.nxfc-wrap .nxfc-periods button.is-active:active {
  color: #fff !important;
  background: var(--nxfc-accent) !important;
  border-color: var(--nxfc-accent) !important;
}

/* ── Diagramos zona ── */
.nxfc-chart {
  width: 100%;
  min-height: 200px;
}
.nxfc-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  color: var(--nxfc-muted);
  font-size: 14px;
}

/* ── Apačios rodikliai ── */
.nxfc-foot {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.nxfc-stat {
  background: var(--nxfc-card);
  border: 1px solid var(--nxfc-line);
  border-radius: 10px;
  padding: 14px 18px;
  text-align: center;
}
.nxfc-stat span {
  display: block;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  color: var(--nxfc-text);
  line-height: 1.1;
}
.nxfc-stat label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--nxfc-muted);
}
.nxfc-change.nxfc-up   { color: var(--nxfc-up); }
.nxfc-change.nxfc-down { color: var(--nxfc-down); }

/* ── Tooltip ── */
.nxfc-tt {
  font-family: 'Neris', sans-serif;
  background: rgba(10, 15, 21, 0.97);
  border: 1px solid rgba(11, 179, 198, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 160px;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.5);
}
.nxfc-tt-name {
  font-size: 13px;
  font-weight: 600;
  color: #e8eef2;
  margin-bottom: 4px;
}
.nxfc-tt-pct {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.nxfc-tt-pct.nxfc-up   { color: #2dd474; }
.nxfc-tt-pct.nxfc-down { color: #ff5d5d; }
.nxfc-tt-val {
  font-size: 13px;
  color: #cdd6de;
  margin-top: 2px;
}
.nxfc-tt-date {
  font-size: 11px;
  color: #8b9aa6;
  margin-top: 2px;
}

/* ApexCharts numatytojo tooltip fono panaikinimas (naudojam savo) */
.nxfc-wrap .apexcharts-tooltip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── Rodiklių kortelės ([nextury_fund_stats]) ── */
.nxfc-stats {
  --nxfc-text:   #e8eef2;
  --nxfc-muted:  #8b9aa6;
  --nxfc-accent: #0bb3c6;
  --nxfc-up:     #2dd474;
  --nxfc-down:   #ff5d5d;
  --nxfc-line:   #1b2733;

  font-family: 'Neris', system-ui, -apple-system, sans-serif;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--nxfc-line);
  border: 1px solid var(--nxfc-line);
  border-radius: 12px;
  overflow: hidden;
}
.nxfc-stat-card {
  background: #0e141c;
  padding: 18px 16px;
  text-align: center;
}
.nxfc-stat-card label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--nxfc-muted);
  margin-bottom: 10px;
  line-height: 1.3;
}
.nxfc-stat-card span {
  display: block;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 700;
  line-height: 1.15;
}
.nxfc-stat-card .nxfc-accent { color: var(--nxfc-accent); }
.nxfc-stat-card .nxfc-up     { color: var(--nxfc-up); }
.nxfc-stat-card .nxfc-down   { color: var(--nxfc-down); }
.nxfc-stats .nxfc-empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: var(--nxfc-muted);
  background: #0e141c;
}

/* ── Bendra suvestinės juosta ([nextury_fund_summary]) ── */
.nxfc-summary {
  --nxfc-text:   #e8eef2;
  --nxfc-muted:  #8b9aa6;
  --nxfc-accent: #0bb3c6;
  --nxfc-up:     #2dd474;
  --nxfc-down:   #ff5d5d;
  --nxfc-line:   #1b2733;

  font-family: 'Neris', system-ui, -apple-system, sans-serif;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #0e141c;
  border: 1px solid var(--nxfc-line);
  border-radius: 12px;
  overflow: hidden;
}
.nxfc-sum-col {
  padding: 20px 18px;
  text-align: center;
  border-left: 1px solid var(--nxfc-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nxfc-sum-col:first-child { border-left: 0; }
.nxfc-sum-label,
.nxfc-sum-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--nxfc-text);
  line-height: 1.3;
}
.nxfc-sum-sub {
  font-size: 11px;
  color: var(--nxfc-muted);
  line-height: 1.3;
}
.nxfc-sum-value {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}
.nxfc-summary .nxfc-accent { color: var(--nxfc-accent); }
.nxfc-summary .nxfc-up     { color: var(--nxfc-up); }
.nxfc-summary .nxfc-down   { color: var(--nxfc-down); }
.nxfc-summary .nxfc-sep    { color: var(--nxfc-muted); font-weight: 400; margin: 0 4px; }
.nxfc-summary .nxfc-empty  { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--nxfc-muted); }

@media (max-width: 760px) {
  .nxfc-summary { grid-template-columns: repeat(2, 1fr); }
  .nxfc-sum-col:nth-child(odd) { border-left: 0; }
  .nxfc-sum-col:nth-child(n+3) { border-top: 1px solid var(--nxfc-line); }
}
@media (max-width: 460px) {
  .nxfc-summary { grid-template-columns: 1fr; }
  .nxfc-sum-col { border-left: 0; border-top: 1px solid var(--nxfc-line); }
  .nxfc-sum-col:first-child { border-top: 0; }
}

/* ── Responsyvumas ── */
@media (max-width: 720px) {
  .nxfc-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nxfc-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nxfc-periods { width: 100%; }
  .nxfc-periods button { flex: 1 1 auto; padding: 6px 8px; font-size: 11px; }
  .nxfc-foot { grid-template-columns: 1fr; gap: 8px; }
  .nxfc-stat { padding: 12px 14px; }
}
