/* =============================================================
   detail-page.css — unified deep-dive layout (gate/center/…)
   Premium cosmic theme; uses tokens from styles.css / system-pages.css
   ============================================================= */

.dt-page { max-width: 1180px; margin: 0 auto; padding: 4px 2px 40px; opacity: 1; animation: dtFade .4s ease; }
@keyframes dtFade { from { transform: translateY(8px); } to { transform: none; } }

.dt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dt-back {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-soft, #c7cce0); font-size: 13.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; transition: all .18s ease;
}
.dt-back:hover { background: rgba(98,221,255,0.10); border-color: rgba(98,221,255,0.4); color: #fff; transform: translateX(2px); }
.dt-back-arrow { font-size: 15px; opacity: .8; }
.dt-empty { padding: 60px; text-align: center; color: var(--text-muted, #8b91a8); }

.dt-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
@media (max-width: 920px) { .dt-grid { grid-template-columns: 1fr; } }

/* cards */
.dt-card {
  background: linear-gradient(180deg, rgba(18,22,42,0.82), rgba(11,14,28,0.82));
  border: 1px solid rgba(255,255,255,0.08); border-radius: 18px;
  padding: 16px; margin-bottom: 16px; backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.32);
}
.dt-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dt-card-h span { font-size: 13.5px; font-weight: 700; color: var(--text-soft, #c7cce0); letter-spacing: .2px; }
.dt-card-h.sm span { font-size: 12.5px; color: var(--text-muted, #8b91a8); text-transform: none; }

/* aside: map */
.dt-aside { position: sticky; top: 8px; }
@media (max-width: 920px) { .dt-aside { position: static; } }
.dt-map-card { padding-bottom: 8px; }
.dt-map { position: relative; height: 380px; display: grid; place-items: center; }
.dt-map .bg-wrap { height: 100%; }
.dt-page-center { padding-bottom: 12px; }
.dt-page-center .dt-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dt-page-center .dt-aside { position: static; }
.dt-page-center .dt-map { --center-map-size: clamp(240px, 43dvh, 380px); height: var(--center-map-size); }
.dt-page-center .dt-map .bg-wrap {
  width: min(100%, calc(var(--center-map-size) * .8));
  height: var(--center-map-size);
  min-height: 0;
}
.dt-page-center .dt-hero-badge { width: 56px; height: 56px; }
.dt-page-center .dt-card { margin-bottom: 12px; }
.dt-page-center .dt-body { line-height: 1.65; margin-bottom: 12px; }
.dt-center-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dt-center-links .dt-gatechip { min-width: 36px; min-height: 36px; width: auto; height: auto; padding-inline: 7px; }
@media (max-width: 920px) {
  .dt-page-center .dt-grid { grid-template-columns: minmax(0, 1fr); }
  .dt-page-center .dt-main { grid-row: 1; }
}
@media (max-width: 420px) {
  .dt-center-links { grid-template-columns: minmax(0, 1fr); }
}
.dt-map-full {
  width: 100%; margin-top: 6px; cursor: pointer;
  background: transparent; border: 1px dashed rgba(255,255,255,0.14); border-radius: 12px;
  color: var(--text-muted, #8b91a8); font-size: 12.5px; font-weight: 600; padding: 9px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all .18s;
}
.dt-map-full:hover { border-color: rgba(98,221,255,0.4); color: #fff; }

/* related list */
.dt-related { display: flex; flex-direction: column; gap: 8px; }
.dt-related-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: start;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 11px 13px; transition: all .16s ease; width: 100%;
}
.dt-related-row:hover { background: rgba(98,221,255,0.08); border-color: rgba(98,221,255,0.34); transform: translateX(-2px); }
.dt-related-name { flex: 1; min-width: 0; color: #fff; font-size: 13px; font-weight: 600; }
.dt-related-meta { color: var(--text-muted, #8b91a8); font-size: 11.5px; white-space: nowrap; }
.dt-related-go { color: var(--cyan, #62DDFF); font-weight: 700; }

/* hero */
.dt-hero { display: flex; align-items: center; gap: 18px; }
.dt-hero-badge {
  flex-shrink: 0; width: 76px; height: 76px; border-radius: 20px;
  display: grid; place-items: center; font-family: var(--font-mono, monospace);
  font-weight: 800; font-size: 34px; border: 1.5px solid; line-height: 1;
}
.dt-hero-titles { flex: 1; min-width: 0; }
.dt-hero-titles h1 { margin: 0; font-size: 26px; font-weight: 800; color: #fff; line-height: 1.2; }
.dt-hero-titles p { margin: 5px 0 0; font-size: 15px; color: var(--text-soft, #c7cce0); }
.dt-status { flex-shrink: 0; align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid; }
.dt-status.on { color: #7be0a4; border-color: rgba(99,207,134,0.4); background: rgba(99,207,134,0.08); }
.dt-status.off { color: var(--text-muted, #8b91a8); border-color: rgba(150,160,210,0.3); background: rgba(150,160,210,0.06); }

/* keywords */
.dt-kw-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-chip { font-size: 12px; font-weight: 600; color: #c9d2ee; padding: 5px 13px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); }

/* body */
.dt-body { margin: 2px 4px 18px; color: var(--text-soft, #c7cce0); font-size: 15px; line-height: 2; text-wrap: pretty; }

/* triad */
.dt-triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 620px) { .dt-triad { grid-template-columns: 1fr; } }
.dt-triad-card {
  position: relative; border-radius: 16px; padding: 18px 16px; text-align: center;
  border: 1px solid; display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: transform .2s ease; overflow: hidden;
}
.dt-triad-card:hover { transform: translateY(-3px); }
.dt-triad-dot { width: 10px; height: 10px; border-radius: 999px; }
.dt-triad-label { font-size: 12px; font-weight: 700; letter-spacing: .4px; opacity: .85; }
.dt-triad-word { font-size: 19px; font-weight: 800; color: #fff; }
.dt-triad-card.shadow { border-color: rgba(244,95,95,0.32); background: radial-gradient(120% 100% at 50% 0, rgba(244,95,95,0.14), rgba(244,95,95,0.03)); }
.dt-triad-card.shadow .dt-triad-dot { background: #f45f5f; box-shadow: 0 0 10px #f45f5f; }
.dt-triad-card.shadow .dt-triad-label { color: #ff9ba6; }
.dt-triad-card.gift { border-color: rgba(98,221,255,0.32); background: radial-gradient(120% 100% at 50% 0, rgba(98,221,255,0.14), rgba(98,221,255,0.03)); }
.dt-triad-card.gift .dt-triad-dot { background: #62DDFF; box-shadow: 0 0 10px #62DDFF; }
.dt-triad-card.gift .dt-triad-label { color: #8fe6ff; }
.dt-triad-card.siddhi { border-color: rgba(192,132,255,0.32); background: radial-gradient(120% 100% at 50% 0, rgba(192,132,255,0.14), rgba(192,132,255,0.03)); }
.dt-triad-card.siddhi .dt-triad-dot { background: #C084FF; box-shadow: 0 0 10px #C084FF; }
.dt-triad-card.siddhi .dt-triad-label { color: #e0c4ff; }

/* gate chips */
.dt-gatechips { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-gatechip {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; font-family: var(--font-mono, monospace); font-weight: 700; font-size: 14px;
  color: rgba(220,224,245,0.6); background: rgba(28,34,58,0.8); border: 1px solid rgba(150,160,210,0.22);
  transition: all .15s;
}
.dt-gatechip:hover { color: #fff; border-color: rgba(98,221,255,0.6); transform: translateY(-2px); }
.dt-gatechip.on { color: #06121f; background: linear-gradient(135deg, #8fe6ff, #62DDFF); border-color: transparent; box-shadow: 0 0 12px rgba(98,221,255,0.35); }

/* sections */
.dt-sec-text { margin: 0; color: var(--text-soft, #c7cce0); font-size: 14px; line-height: 1.9; }
.dt-rows { display: flex; flex-direction: column; gap: 2px; }
.dt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.dt-row:last-child { border-bottom: none; }
.dt-row-l { color: var(--text-muted, #8b91a8); font-size: 13px; }
.dt-row-r { color: #fff; font-size: 13.5px; font-weight: 600; text-align: end; }
.dt-quote { margin: 0; padding: 4px 14px; border-inline-start: 3px solid var(--cyan, #62DDFF); color: #dfe6ff; font-size: 15px; font-style: italic; line-height: 1.8; }

/* reminder */
.dt-reminder {
  margin-top: 4px; border-radius: 16px; padding: 16px 18px;
  background: linear-gradient(180deg, rgba(248,198,72,0.10), rgba(248,198,72,0.03));
  border: 1px solid rgba(248,198,72,0.28); display: flex; flex-direction: column; gap: 8px;
}
.dt-reminder-tag { color: var(--gold-2, #f8c648); font-size: 12.5px; font-weight: 800; }
.dt-reminder p { margin: 0; color: #ece2c8; font-size: 13.5px; line-height: 1.85; }
