/* KP Horary • Divine Prasna (1–249) Stylesheet */
.horary-card {
  border: 1px solid #d4cbb8;
  background: linear-gradient(180deg, #fffdf8 0%, #faf6ec 100%);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(50, 40, 20, 0.05);
}

.horary-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdf3e3;
  color: #8c4c23;
  border: 1px solid #e8cdab;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.horary-form-grid {
  display: grid;
  grid-template-columns: 160px 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  background: #f5f0e4;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 12px;
  margin: 18px 0;
}

.horary-num-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.horary-num-input {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #1e453c;
  padding: 8px;
  border-radius: 8px;
  border: 2px solid #b87536;
  background: #ffffff;
}

.horary-dice-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.horary-dice-btn:hover {
  background: #f1f5f9;
  transform: rotate(20deg) scale(1.08);
}

.horary-ask-btn {
  background: linear-gradient(135deg, #1e453c 0%, #2e6255 100%);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 69, 60, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.horary-ask-btn:hover {
  background: linear-gradient(135deg, #14322b 0%, #224d43 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 69, 60, 0.35);
}

/* Verdict Display */
.horary-verdict-box {
  margin-top: 20px;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.horary-verdict-box.status-PROMISED {
  background: linear-gradient(135deg, #f2f8f5 0%, #e6f3ee 100%);
  border-color: #9eccba;
}
.horary-verdict-box.status-FAVORABLE_DELAYED {
  background: linear-gradient(135deg, #fdfaf2 0%, #faedd3 100%);
  border-color: #e5cb93;
}
.horary-verdict-box.status-UNFAVORABLE {
  background: linear-gradient(135deg, #fcf4f2 0%, #fbe8e4 100%);
  border-color: #e8b3ab;
}

.verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-PROMISED .verdict-pill {
  background: #1e453c;
  color: #ffffff;
}
.status-FAVORABLE_DELAYED .verdict-pill {
  background: #8c4c23;
  color: #ffffff;
}
.status-UNFAVORABLE .verdict-pill {
  background: #9b3d2f;
  color: #ffffff;
}

.verdict-confidence {
  font-size: 12px;
  font-weight: 700;
  color: #556960;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.verdict-headline {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #172a24;
  margin: 0 0 10px;
}

.verdict-text {
  font-size: 14px;
  line-height: 1.6;
  color: #2c3e38;
  margin-bottom: 14px;
}

/* Insight Cards Grid */
.horary-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.horary-card-sub {
  background: #ffffff;
  border: 1px solid #e2ddd0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.horary-card-sub h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8c4c23;
  display: flex;
  align-items: center;
  gap: 6px;
}

.horary-pill-tag {
  display: inline-block;
  background: #edf3eb;
  color: #1e453c;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin: 2px 4px 2px 0;
  border: 1px solid #d5e2d2;
}

/* Toggle Pro / Comprehensive Section */
.horary-pro-section {
  margin-top: 24px;
  border-top: 1px solid #dfd8c5;
  padding-top: 20px;
}

.horary-table-container {
  overflow-x: auto;
  margin-top: 12px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e0dbcb;
}

.horary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.horary-table th {
  background: #f4efe4;
  color: #1e453c;
  padding: 9px 11px;
  text-align: left;
  border-bottom: 2px solid #d7cebc;
  font-weight: 700;
}

.horary-table td {
  padding: 8px 11px;
  border-bottom: 1px solid #eee8da;
  color: #2b3a35;
}

.horary-table tr:hover {
  background: #fbf9f4;
}

.sub-lord-highlight {
  font-weight: 700;
  color: #8c4c23;
}

@media (max-width: 880px) {
  .horary-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .horary-form-grid .horary-ask-btn {
    grid-column: 1 / -1;
  }
  .horary-insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .horary-form-grid {
    grid-template-columns: 1fr;
  }
}
