/* nakshatra.css v2 — light-theme to match site's warm #fff7ed background */

.nk-intro {
  max-width: 760px;
  color: #44403c;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 6px;
}

/* ── Search & filter bar ─────────────────────────────────────── */
.nk-search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  align-items: center;
}
.nk-search-bar input {
  flex: 1 1 200px;
  padding: 9px 14px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff;
  color: #292524;
  font-size: 14px;
  outline: none;
}
.nk-search-bar input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249,115,22,0.15);
}
.nk-search-bar input::placeholder { color: #a8a29e; }

.nk-filter-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nk-filter-btn {
  padding: 6px 14px;
  border: 1.5px solid #d6d3d1;
  border-radius: 20px;
  background: #fff;
  color: #78716c;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.nk-filter-btn:hover {
  border-color: #f97316;
  color: #9a3412;
  background: #fff7ed;
}
.nk-filter-btn.active {
  background: #9a3412;
  border-color: #9a3412;
  color: #fff;
}

/* ── Grid ────────────────────────────────────────────────────── */
.nk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.nk-card {
  background: #fff;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 12px 12px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(154,52,18,0.07);
}
.nk-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: var(--nk-color, #f97316);
}
.nk-card:hover {
  border-color: #f97316;
  box-shadow: 0 4px 14px rgba(154,52,18,0.15);
  transform: translateY(-2px);
}
.nk-card.selected {
  border-color: #9a3412;
  box-shadow: 0 0 0 2px rgba(154,52,18,0.2), 0 4px 14px rgba(154,52,18,0.12);
  background: #fffaf0;
}
.nk-card-num {
  font-size: 10px;
  color: #a8a29e;
  margin-bottom: 4px;
  font-family: 'Cinzel', serif;
}
.nk-card-symbol {
  font-size: 24px;
  margin-bottom: 6px;
  display: block;
}
.nk-card-name {
  font-family: 'Cinzel', serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #292524;
  margin-bottom: 4px;
}
.nk-card-ruler {
  font-size: 11px;
  color: #78716c;
}
.nk-card-ruler span {
  font-weight: 700;
  color: var(--nk-color, #9a3412);
}
.nk-card-rashi {
  font-size: 10px;
  color: #a8a29e;
  margin-top: 2px;
}
.nk-card-gana {
  display: inline-block;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.nk-gana-deva     { background: #dcfce7; color: #166534; }
.nk-gana-manushya { background: #fef9c3; color: #854d0e; }
.nk-gana-rakshasa { background: #fee2e2; color: #991b1b; }

/* ── Detail panel ────────────────────────────────────────────── */
.nk-detail-panel {
  background: #fff;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-bottom: 28px;
  display: none;
  box-shadow: 0 4px 20px rgba(154,52,18,0.1);
}
.nk-detail-panel.open { display: block; }

.nk-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.nk-detail-symbol { font-size: 52px; line-height: 1; }

.nk-detail-meta { flex: 1; min-width: 180px; }
.nk-detail-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: #9a3412;
  margin: 0 0 4px;
}
.nk-detail-subtitle {
  font-size: 13px;
  color: #78716c;
  margin-bottom: 8px;
}
.nk-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.nk-chip {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #44403c;
  font-weight: 600;
}

.nk-detail-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.nk-keyword {
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1.5px solid #f97316;
  color: #9a3412;
  background: #fff7ed;
  font-weight: 600;
}

.nk-detail-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.nk-detail-section {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 14px 16px;
}
.nk-detail-section h4 {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  color: #9a3412;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nk-detail-section p {
  font-size: 13px;
  color: #292524;
  line-height: 1.65;
  margin: 0;
}

.nk-compatible {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.nk-compat-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.nk-compat-tag:hover {
  background: #bbf7d0;
  border-color: #4ade80;
}

.nk-close-btn {
  float: right;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 8px;
  color: #78716c;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  transition: all .2s;
}
.nk-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.nk-hidden { display: none !important; }

.nk-no-results {
  text-align: center;
  color: #78716c;
  padding: 32px;
  font-size: 14px;
}

@media (max-width: 600px) {
  .nk-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .nk-detail-panel { padding: 18px 14px; }
  .nk-detail-body { grid-template-columns: 1fr; }
}
