/* daily_jyotish.css v11 */

/* ── Hidden utility ───────────────────────────────────────────── */
.dj-hidden { display: none !important; }

/* ── Section subtitle (sits below card h2) ────────────────────── */
.dj-section-sub {
  color: var(--muted);
  font-size: 13px;
  margin: -8px 0 18px;
  line-height: 1.5;
}

/* ── Planet Snapshot Grid ─────────────────────────────────────── */
.dj-planet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.dj-planet-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  position: relative;
  transition: box-shadow 0.15s;
}
.dj-planet-card:hover { box-shadow: 0 4px 14px rgba(154,52,18,0.12); }
.dj-planet-card .retro-badge {
  position: absolute;
  top: 8px; right: 9px;
  font-size: 10px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 600;
}
.dj-planet-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.dj-planet-name  { font-size: 14px; font-weight: 700; color: var(--text); vertical-align: middle; }
.dj-planet-hi    { font-size: 11px; color: var(--muted); margin-top: 2px; margin-bottom: 6px; }
.dj-planet-rashi { font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 2px; }
.dj-planet-nak   { font-size: 11px; color: var(--muted); }
.dj-planet-deg   { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── Active Rashis ────────────────────────────────────────────── */
.dj-occ-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dj-occ-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
}
.dj-occ-rashi {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  width: 120px;
  flex-shrink: 0;
}
.dj-occ-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dj-occ-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1.5px solid currentColor;
  background: transparent;
}

/* ── Nakshatra box ────────────────────────────────────────────── */
.dj-nak-box {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.dj-nak-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.dj-nak-title { display: flex; align-items: baseline; gap: 10px; }
.dj-nak-name {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.dj-nak-pada  { font-size: 13px; color: var(--muted); font-weight: 600; }
.dj-nak-moon  { font-size: 13px; color: var(--brand); font-weight: 600; }
.dj-nak-meta  { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dj-nak-chip {
  font-size: 12px;
  background: #fff7ed;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 12px;
  color: #7c2d12;
  font-weight: 600;
}
.dj-nak-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  font-style: italic;
  border-left: 3px solid var(--line);
  padding-left: 12px;
}

/* ── Cosmic Summary ───────────────────────────────────────────── */
.dj-summary-box {
  background: linear-gradient(135deg, #fff7ed, #fef3e8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.dj-summary-text {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.8;
  margin: 0;
}
.dj-summary-text strong { color: var(--brand); }

/* Headline banner — shown for stelliums, exaltations, etc. */
.dj-cosmic-headline {
  background: linear-gradient(135deg, #9a3412, #c2410c);
  color: #fff;
  border-radius: 10px;
  padding: 13px 18px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 3px 14px rgba(154,52,18,0.28);
}

/* Guidance / prediction block */
.dj-guidance {
  margin-top: 18px;
  padding: 15px 18px;
  background: rgba(255,255,255,0.72);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.dj-guidance-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand);
  margin-bottom: 8px;
}
.dj-guidance-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  margin: 0;
}
.dj-guidance-text strong { color: var(--brand); }

/* Yoga chip row — one chip per active yoga */
.dj-yoga-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.dj-yoga-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 14px;
  white-space: nowrap;
  line-height: 1;
}
.dj-yoga-tag.tension {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
}
.dj-yoga-tag.auspicious {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
}

/* Yoga detail blocks — full description per yoga */
.dj-yoga-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 4px;
}
.dj-yoga-detail {
  padding: 13px 15px;
  border-radius: 9px;
  border-left: 3px solid;
}
.dj-yoga-detail.tension   { background: #fef2f2; border-color: #ef4444; }
.dj-yoga-detail.auspicious { background: #f0fdf4; border-color: #22c55e; }
.dj-yoga-detail-header {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.dj-yoga-detail.tension    .dj-yoga-detail-header { color: #991b1b; }
.dj-yoga-detail.auspicious .dj-yoga-detail-header { color: #166534; }
.dj-yoga-detail-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

/* ── Notable Placements ───────────────────────────────────────── */
.dj-notable-list { display: flex; flex-direction: column; gap: 10px; }
.dj-np-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  transition: box-shadow 0.15s;
}
.dj-np-card:hover { box-shadow: 0 3px 10px rgba(154,52,18,0.1); }
.dj-np-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.dj-np-symbol { font-size: 24px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.dj-np-info   { flex: 1; min-width: 120px; }
.dj-np-name   { font-size: 15px; font-weight: 700; color: var(--text); }
.dj-np-en     { font-size: 12px; color: var(--muted); font-weight: 400; }
.dj-np-pos    { font-size: 11px; color: var(--brand); font-weight: 600; margin-top: 3px; }
.dj-np-badges { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.dj-np-badge  { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.dj-np-badge.exalted { background: #dbeafe; color: #1e40af; }
.dj-np-badge.own     { background: #dcfce7; color: #166534; }
.dj-np-badge.debil   { background: #fef9c3; color: #854d0e; }
.dj-np-badge.retro   { background: #fef3c7; border: 1px solid #f59e0b; color: #92400e; }
.dj-np-badge.conj    { background: #f3e8ff; color: #6b21a8; }
.dj-np-desc { font-size: 13px; color: var(--text); line-height: 1.65; margin: 0; padding-left: 36px; }

/* ── Planetary Energies ───────────────────────────────────────── */
.dj-energy-list { display: flex; flex-direction: column; gap: 10px; }
.dj-energy-row {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: center;
  transition: box-shadow 0.15s;
}
.dj-energy-row:hover { box-shadow: 0 3px 10px rgba(154,52,18,0.1); }
.dj-energy-planet { display: flex; align-items: flex-start; gap: 10px; }
.dj-energy-symbol { font-size: 24px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.dj-energy-name   { font-size: 15px; font-weight: 700; color: var(--text); }
.dj-energy-en     { font-size: 12px; color: var(--muted); font-weight: 400; }
.dj-energy-pos    { font-size: 11px; color: var(--brand); font-weight: 600; margin-top: 3px; }
.dj-retro-inline {
  display: inline-block; font-size: 10px;
  background: #fef3c7; border: 1px solid #f59e0b; color: #92400e;
  border-radius: 4px; padding: 1px 6px; font-weight: 600; margin-top: 4px;
}
.dj-energy-desc { font-size: 13px; color: var(--text); line-height: 1.65; margin: 0; }

/* ── Gochara section ──────────────────────────────────────────── */
.dj-hint-bubble {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 16px;
  padding: 8px 16px;
  background: rgba(120,50,8,0.72);
  border: 1px solid rgba(217,119,6,0.55);
  border-radius: 20px;
  font-size: 13px; color: #fde68a; line-height: 1.4;
}
.dj-hint-action { color: #fbbf24; font-weight: 600; }

.dj-gochara-list { display: flex; flex-direction: column; gap: 12px; }
.dj-gochara-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.dj-gochara-card.dj-gochara-soon { border-color: #f59e0b; }
.dj-gochara-header {
  padding: 12px 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; user-select: none;
}
.dj-gochara-header:hover { background: var(--soft); }
.dj-gochara-symbol { font-size: 22px; flex-shrink: 0; }
.dj-gochara-info   { flex: 1; }
.dj-gochara-planet { font-weight: 700; font-size: 15px; color: var(--text); }
.dj-gochara-move   { font-size: 13px; color: var(--muted); margin-top: 2px; }
.dj-gochara-date   { font-size: 13px; font-weight: 600; color: var(--brand); text-align: right; flex-shrink: 0; }
.dj-gochara-date.dj-date-imminent { color: #dc2626; }
.dj-gochara-toggle { font-size: 12px; color: var(--muted); flex-shrink: 0; margin-left: 8px; }
.dj-gochara-impacts {
  display: none; border-top: 1px solid var(--line);
  padding: 14px 16px; background: var(--soft);
}
.dj-gochara-card.open .dj-gochara-impacts { display: block; }
.dj-impact-title {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.dj-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.dj-impact-row { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; line-height: 1.45; }
.dj-impact-rashi { font-weight: 700; color: var(--text); min-width: 72px; font-size: 11px; }
.dj-impact-text  { color: var(--text); }
.dj-quality-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.dj-quality-dot.good        { background: #22c55e; }
.dj-quality-dot.neutral     { background: #94a3b8; }
.dj-quality-dot.challenging { background: #ef4444; }

/* ── Loading / Error ──────────────────────────────────────────── */
.dj-loading {
  text-align: center; padding: 48px;
  color: var(--muted); font-size: 14px;
}
.dj-spinner {
  display: inline-block; width: 28px; height: 28px;
  border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: dj-spin 0.8s linear infinite; margin-bottom: 12px;
}
@keyframes dj-spin { to { transform: rotate(360deg); } }

/* ── Left panel feature highlights ───────────────────────────── */
.dj-features {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dj-feat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dj-feat-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 34px;
  text-align: center;
  line-height: 1;
}
.dj-feat-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--brand);
  line-height: 1.3;
}
.dj-feat-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.4;
}

/* ── Space between content cards ─────────────────────────────── */
#dj-content .card { margin-bottom: 18px; }
#dj-content .card:last-child { margin-bottom: 0; }

/* ── Page layout ─────────────────────────────────────────────── */
.dj-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 48px;
  grid-template-columns: 300px 1fr;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 980px) {
  .dj-layout {
    grid-template-columns: 1fr;
    padding: 0 12px 40px;
  }
  .dj-layout .form-card {
    position: static;
  }
  /* Hide feature highlights on mobile to keep left panel compact */
  .dj-features {
    display: none;
  }
}

@media (max-width: 640px) {
  .dj-planet-grid  { grid-template-columns: repeat(2, 1fr); }
  .dj-energy-row   { grid-template-columns: 1fr; gap: 8px; }
  .dj-occ-row      { flex-direction: column; align-items: flex-start; gap: 6px; }
  .dj-occ-rashi    { width: auto; }
  .dj-impact-grid  { grid-template-columns: 1fr; }
  .dj-nak-header   { flex-direction: column; }
}
