/* daily_jyotish.css — Daily Jyotish page styles */

/* ── Section titles ───────────────────────────────────────────── */
.dj-section-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: var(--brand);
  margin: 32px 0 6px;
}
.dj-section-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
}
.dj-divider {
  width: 48px; height: 2px;
  background: var(--brand);
  margin: 0 0 20px;
}

/* Gochara hint bubble */
.dj-hint-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 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;
}

/* ── Planet Snapshot Grid ─────────────────────────────────────── */
.dj-planet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.dj-planet-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 14px 12px;
  position: relative;
  transition: box-shadow 0.15s;
}
.dj-planet-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.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(--heading);
  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;
}

/* ── Rashifal Grid ────────────────────────────────────────────── */
.dj-rashifal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.dj-rashi-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg, #fff);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.dj-rashi-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.09);
}

.dj-rashi-header {
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dj-rashi-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--heading);
}
.dj-rashi-en {
  font-size: 11px;
  color: var(--muted);
}
.dj-rashi-stars {
  font-size: 13px;
  letter-spacing: 1px;
}

.dj-rashi-body {
  padding: 10px 14px 12px;
}
.dj-rashi-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dj-rashi-badge.favorable   { background: #dcfce7; color: #166534; }
.dj-rashi-badge.highly      { background: #bbf7d0; color: #14532d; }
.dj-rashi-badge.mixed       { background: #fef9c3; color: #854d0e; }
.dj-rashi-badge.challenging { background: #fee2e2; color: #991b1b; }
.dj-rashi-badge.very        { background: #fecaca; color: #7f1d1d; }

.dj-rashi-summary {
  font-size: 12px;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

/* Expanded detail */
.dj-rashi-detail {
  display: none;
  border-top: 1px solid var(--border);
  padding: 10px 14px 12px;
  background: #fafaf9;
}
.dj-rashi-card.open .dj-rashi-detail {
  display: block;
}
.dj-domain-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}
.dj-domain-area {
  font-weight: 600;
  color: var(--heading);
  min-width: 110px;
  font-size: 11px;
}
.dj-domain-note {
  color: var(--text);
  line-height: 1.45;
}
.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; }

/* ── Gochara Section ──────────────────────────────────────────── */
.dj-gochara-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}

.dj-gochara-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg, #fff);
  overflow: hidden;
}

.dj-gochara-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.dj-gochara-header:hover {
  background: #fafaf9;
}

.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(--heading);
}
.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-toggle {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 8px;
}

.dj-gochara-impacts {
  display: none;
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  background: #fafaf9;
}
.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(--heading);
  min-width: 72px;
  font-size: 11px;
}
.dj-impact-text {
  color: var(--text);
}

/* ── Date display bar ─────────────────────────────────────────── */
.dj-date-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  margin-bottom: 24px;
  font-size: 14px;
}
.dj-date-bar strong {
  font-family: 'Cinzel', serif;
  font-size: 15px;
}
.dj-ayanamsha {
  font-size: 12px;
  opacity: 0.85;
}

/* ── 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(--border);
  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); } }

@media (max-width: 600px) {
  .dj-planet-grid { grid-template-columns: repeat(2, 1fr); }
  .dj-rashifal-grid { grid-template-columns: 1fr 1fr; }
  .dj-impact-grid { grid-template-columns: 1fr; }
}
