/* ============================================================
   Coindaily - /indicators/ directory
   ============================================================ */

.ix-hero { padding: 26px 0 6px; }
.ix-hero .kicker { display: block; margin-bottom: 6px; }
.ix-hero h1 { font-size: 26px; letter-spacing: -0.01em; color: var(--tx-hi); margin: 0 0 8px; }
.ix-hero .sub { font-size: 13.5px; color: var(--tx-mid); max-width: 660px; line-height: 1.55; }

.ix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px 0 8px; }

.ix-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 16px 18px 13px; color: inherit; text-decoration: none; transition: .14s; min-width: 0; }
.ix-card:hover { border-color: rgba(255,255,255,.18); background: var(--panel-2); transform: translateY(-2px); }
.ix-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ix-cat { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--tx-dim)); border: 1px solid color-mix(in srgb, var(--c, #4E545D) 45%, transparent); border-radius: var(--r); padding: 2px 7px; }
.ix-chip { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-dim); border: 1px solid var(--hairline); border-radius: var(--r); padding: 2px 6px; }
.ix-card h3 { font-size: 13.5px; font-weight: 600; color: var(--tx-hi); margin: 0 0 10px; }
.ix-val { font-family: var(--mono); font-size: 23px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--tx-hi); margin-bottom: 12px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.ix-lab { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; padding: 2.5px 7px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--hairline); color: var(--tx-mid); }
.ix-dim { color: var(--tx-faint); font-weight: 400; }

.ix-zone { position: relative; height: 6px; border-radius: 3px; margin-bottom: 11px; cursor: crosshair; }
.ix-zone .zb { position: absolute; inset: 0; border-radius: 3px; opacity: .8; }
.ix-zone .zb.fg { background: linear-gradient(90deg, #BE5E6C, #D98A5B 35%, #C9A24B 62%, #4F9E7C); }
.ix-zone .zb.alt { background: linear-gradient(90deg, #C99A4B, #74808F 50%, #46AD93); }
.ix-zone .zb.dom { background: linear-gradient(90deg, #74808F, #C99A4B); }
.ix-zone .zb.mvrv { background: linear-gradient(90deg, #4F9E7C, #C9A24B 45%, #BE5E6C); }
.ix-zone .zb.rsi { background: linear-gradient(90deg, #4F9E7C 0 30%, #C9A24B 30% 70%, #BE5E6C 70% 100%); }
.ix-zone .zb.rainbow { background: linear-gradient(90deg, #3f63cf, #4a86c0, #46ad93, #6fb358, #bcc74c, #e6c64c, #e9a157, #df7a4c, #d24b3e); }
.ix-zone i { position: absolute; top: -3px; width: 2.5px; height: 12px; background: #fff; border-radius: 1px; transform: translateX(-50%); box-shadow: 0 0 0 1.5px rgba(10,13,18,.8); transition: left .4s; }
.ix-split { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 11px; cursor: crosshair; }
.ix-split .lo { background: #4F9E7C; } .ix-split .sh { background: #BE5E6C; }

.ix-read { font-size: 11.5px; color: var(--tx-mid); line-height: 1.55; margin: 0; }
.ix-go { margin-top: auto; padding-top: 10px; font-size: 10.5px; color: var(--amber); font-weight: 500; opacity: .55; transition: opacity .14s; }
.ix-card:hover .ix-go { opacity: 1; }

.ix-note { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 16px 18px; margin: 10px 0 36px; }
.ix-note .pip { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); margin-top: 6px; }
.ix-note p { font-size: 12.5px; color: var(--tx-mid); line-height: 1.6; margin: 0; }
.ix-note a { color: var(--amber); text-decoration: none; }
.ix-note a:hover { color: var(--amber-hi); }

@media (max-width: 980px) { .ix-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ix-grid { grid-template-columns: 1fr; } }

/* ---- loading skeleton: shimmer every data value until real data lands ---- */
/* never flash modelled/fake numbers - only a shimmer, real data, or a dash */
@keyframes ih-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

body.ih-loading [data-val] {
  color: transparent !important;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%;
  animation: ih-shimmer 1.3s ease-in-out infinite;
}
/* give the empty value/label spans a width to shimmer over */
body.ih-loading .ix-val [data-val] { min-width: 54px; }
body.ih-loading .ix-lab[data-val] { min-width: 60px; min-height: 14px; }

/* hide the zone marker dots and the split bar fills while loading */
body.ih-loading .ih-dot { visibility: hidden; }
body.ih-loading .ix-split .lo,
body.ih-loading .ix-split .sh { visibility: hidden; }
