/* ==========================================================================
   ASTROLOGER LISTING PAGE REDESIGN — scoped to Astrologers.blade.php only.
   Ported from the "homepage & Astrologer page design" reference mockup,
   remapped onto the site's existing --nk-* design tokens. Card markup was
   restructured from the old horizontal (avatar-left/info-right) split to a
   vertical layout (avatar-top, stacked info, price+buttons at bottom) to
   match the homepage's redesigned card and the mockup — all gating
   logic/JS in Astrologers.blade.php and Partials/AstrologerCards.blade.php
   is untouched; only markup order and these classes changed. See approved
   plan, 2026-10-08.
   ========================================================================== */

/* ── Hero header ──────────────────────────────────────────────────────── */
.nkChatHeader {
  text-align: left;
  max-width: none;
  margin: 0 0 var(--nk-space-xl);
  padding-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nk-space-xl);
}

.nkChatHeaderText {
  max-width: 640px;
}

.nkChatBreadcrumb {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nk-marigold-deep);
  margin-bottom: var(--nk-space-sm);
}

.nkChatBreadcrumb a {
  color: var(--nk-ink-faint);
}

.nkChatHeader h1 {
  text-align: left;
  font-size: var(--nk-fs-h1);
}

.nkChatDescription {
  text-align: left;
  margin: 0;
}

.nkZodiacDivider {
  display: none;
}

/* Decorative zodiac wheel graphic, right side of the hero (desktop only).
   Slow continuous rotation, ported from the mockup's .zodiac-svg
   (animation: slowSpin 60s linear infinite) — missed in the initial port.
   See approved plan, 2026-10-08. */
.nkChatHeaderGraphic {
  flex-shrink: 0;
  width: 320px;
  height: 320px;
}

.nkChatHeaderGraphic svg {
  animation: nkSlowSpin 60s linear infinite;
}

@keyframes nkSlowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Filter bar ───────────────────────────────────────────────────────── */
.nkDirectoryControls {
  flex-wrap: wrap;
  overflow-x: visible;
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  border-radius: var(--nk-radius-lg);
  padding: var(--nk-space-sm);
  box-shadow: var(--nk-shadow-sm);
}

.nkFilterPill.isActive,
.nkFilterPill[data-category="All"] {
  background: var(--nk-marigold-pale);
  border-color: var(--nk-marigold-deep);
}

/* ── Astrologer grid ──────────────────────────────────────────────────── */
.nkAstrologerGrid {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--nk-space-md);
  align-items: stretch;
}

/* Override carousel-specific styles (.nkAstroCard is 260px fixed in style.css) */
.nkAstrologerGrid .nkAstroCard {
  width: auto;
  flex-shrink: 1;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Push card bottom to the foot of every card so they align across a row */
.nkAstrologerGrid .nkAstroCardBottom {
  margin-top: auto;
  flex-direction: column;
  align-items: stretch;
  gap: var(--nk-space-sm);
}

/* Buttons: flex-row wrapping — Schedule always full-width on its own row */
.nkAstrologerGrid .nkAstroCardBtns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.nkAstrologerGrid .nkAstroCardBtns .nkChatConnectBtn {
  border-radius: var(--nk-radius-pill);
  flex: 1 1 0;
  justify-content: center;
  white-space: nowrap;
  padding: 9px 14px;
}

/* Schedule breaks to its own full-width row only when there are 3+ buttons.
   With 2 buttons (e.g. Chat + Schedule) they share the row equally.
   :nth-child(n+3) matches Schedule only when it is the 3rd+ child. */
.nkAstrologerGrid .nkAstroCardBtns .nkSchedListBtn:nth-child(n+3) {
  flex: 1 1 100%;
}

/* ==========================================================================
   RESPONSIVE — breakpoints match home-assets/css/responsive.css (1024/992/
   768/576/480) for consistency with the rest of the site.
   ========================================================================== */
@media (max-width: 1024px) {
  .nkAstrologerGrid { grid-template-columns: repeat(3, 1fr); }
  .nkChatHeaderGraphic { display: none; }
}

@media (max-width: 992px) {
  .nkAstrologerGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nkChatHeader { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 576px) {
  .nkAstrologerGrid { grid-template-columns: 1fr; }
  .nkDirectoryControls { padding: var(--nk-space-xs); }
}
