/* ============================================
   PICKURAI.AI — AI Tools Directory Styles
   ============================================ */

/* ── NAV ACTIVE STATE ── */
.nav-link--active {
  background: rgba(15,25,35,0.09);
  font-weight: 700;
}

/* ── HERO OVERRIDE ── */
.dir-hero {
  padding: 36px 0 28px;
}
.dir-hero .page-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}
.dir-hero .page-hero-sub {
  font-size: 15px;
}

/* ── FILTERS WRAP (sticky shell) ── */
.dir-filters-wrap {
  background: var(--white);
  border-bottom: 1.5px solid rgba(15,25,35,0.08);
  box-shadow: 0 2px 12px rgba(15,25,35,0.07);
  position: sticky;
  top: 66px;
  z-index: 90;
}

/* ── TOP BAR (always visible) ── */
.dir-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 28px;
}

/* ── SEARCH BOX ── */
.dir-search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.dir-search-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
  flex-shrink: 0;
}

.dir-search-input {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 42px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  background: #F7F8FA;
  border: 1.5px solid rgba(15,25,35,0.12);
  border-radius: 100px;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.dir-search-input::placeholder { color: #9AA5B0; }
.dir-search-input:focus {
  background: var(--white);
  border-color: var(--yellow-dark);
  box-shadow: 0 0 0 3px rgba(201,168,32,0.15);
}

.dir-search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #9AA5B0;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}
.dir-search-clear:hover { color: var(--dark); }

/* ── FILTERS TOGGLE BUTTON ── */
.dir-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  background: #F7F8FA;
  border: 1.5px solid rgba(15,25,35,0.12);
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.dir-filters-toggle:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-dark);
}
.dir-filters-toggle.open {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  box-shadow: 0 2px 8px rgba(201,168,32,0.25);
}
.dir-toggle-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.dir-filters-toggle.open .dir-toggle-chevron {
  transform: rotate(180deg);
}

/* Active filters badge */
.dir-filters-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--dark);
  color: var(--yellow);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

/* ── COUNT PILL ── */
.dir-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--mid);
  white-space: nowrap;
  padding: 6px 14px;
  background: #F7F8FA;
  border-radius: 100px;
  border: 1.5px solid rgba(15,25,35,0.10);
  letter-spacing: -0.2px;
  margin-left: auto;
}

/* ── COLLAPSIBLE PANEL ── */
.dir-filters-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, border-top-width 0.3s;
  border-top: 0px solid rgba(15,25,35,0.08);
}
.dir-filters-panel.open {
  max-height: 400px;
  border-top-width: 1px;
}

.dir-filters-inner {
  padding: 14px 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── FILTER GROUPS ── */
.dir-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dir-filter-group--inline {
  flex: 1;
}

.dir-filter-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue-dark);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 70px;
}

.dir-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── PILL BUTTONS ── */
.dir-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  background: #F7F8FA;
  border: 1.5px solid rgba(15,25,35,0.10);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s, box-shadow 0.15s;
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.dir-pill:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-dark);
  color: var(--dark);
}
.dir-pill.active {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201,168,32,0.25);
}
.dir-pill.active:hover {
  transform: translateY(-1px);
}

/* Indie toggle pill */
.dir-pill--indie {
  background: #F0FBF4;
  border: 1.5px dashed #3ECF6A;
  color: #1A7A3B;
}
.dir-pill--indie:hover {
  background: #E2F7EB;
  border-color: #2AAD55;
  color: #155F2E;
}
.dir-pill--indie.active {
  background: #D1F2DC;
  border-color: #2AAD55;
  color: #155F2E;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(62,207,106,0.25);
}

/* ── BOTTOM FILTER ROW ── */
.dir-filter-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── TOOLS GRID ── */
.dir-body {
  padding: 40px 0 96px;
  background: var(--blue);
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── TOOL CARD ── */
.tool-card {
  background: var(--white);
  border: 1.5px solid rgba(15,25,35,0.08);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.tool-card:hover {
  border-color: var(--yellow-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Card top row: badges */
.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  margin-bottom: 14px;
}

.tool-card-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--blue-mid);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.2px;
  text-transform: capitalize;
  white-space: nowrap;
}

.tool-card-indie {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #F0FBF4;
  border: 1px dashed #3ECF6A;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: #1A7A3B;
  white-space: nowrap;
}

/* Card name */
.tool-card-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 7px;
}

/* Card tagline */
.tool-card-tagline {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Biggest achievement */
.tool-card-achievement {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 18px;
  background: #F7F8F9;
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--yellow-dark);
}

.tool-card-achievement-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.tool-card-achievement-text {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
}

/* Card footer: price + CTA */
.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,25,35,0.07);
  margin-top: auto;
}

.tool-card-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: -0.2px;
}
.tool-card-price .price-free {
  color: #1A7A3B;
  font-weight: 800;
}

.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--dark);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tool-card-cta:hover {
  background: #1e2e3e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15,25,35,0.25);
}
.tool-card-cta svg { transition: transform 0.15s; }
.tool-card-cta:hover svg { transform: translateX(2px); }

/* ── EMPTY STATE ── */
.dir-empty {
  text-align: center;
  padding: 80px 20px;
}
.dir-empty-icon {
  font-size: 52px;
  margin-bottom: 20px;
  opacity: 0.6;
}
.dir-empty-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.dir-empty-sub {
  font-size: 15px;
  color: var(--mid);
  margin-bottom: 28px;
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .dir-grid { grid-template-columns: 1fr; }
  .dir-topbar { padding: 10px 16px; gap: 8px; }
  .dir-search-box { max-width: 100%; flex: 1; }
  .dir-filters-inner { padding: 12px 16px 16px; }
  .dir-filter-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dir-filter-label { min-width: 60px; }
  .dir-filters-panel.open { max-height: 600px; }
}

@media (max-width: 480px) {
  .tool-card { padding: 18px 16px 14px; }
  .dir-count { display: none; }
}

/* ── TOOL CARD: LOGO + NAME ROW ── */
.tool-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.tool-card-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
}

.tool-card-name-row .tool-card-name {
  margin-bottom: 0;
}

/* ── TOOL CARD: ACTIONS ROW ── */
.tool-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── COMPARE BUTTON ON CARD ── */
.tool-card-compare-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--mid);
  background: #F7F8FA;
  border: 1.5px solid rgba(15,25,35,0.12);
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.tool-card-compare-btn:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-dark);
  color: var(--dark);
}
.tool-card-compare-btn.active {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  color: var(--dark);
}

/* ── COMPARE BAR (sticky bottom) ── */
.dir-compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  z-index: 200;
  box-shadow: 0 -4px 24px rgba(15,25,35,0.30);
  padding: 12px 0;
}

.dir-compare-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dir-compare-selected {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.dir-compare-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.dir-compare-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dir-compare-go {
  font-size: 14px;
  padding: 10px 22px;
}
.dir-compare-go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.dir-compare-clear {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.dir-compare-clear:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* ── COMPARE PANEL ── */
.dir-compare-panel {
  background: var(--white);
  border-top: 3px solid var(--yellow-dark);
  padding: 48px 0 72px;
  margin-bottom: 80px;
}

.dir-cmp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dir-cmp-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
}

.dir-cmp-close {
  background: none;
  border: 1.5px solid rgba(15,25,35,0.15);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--mid);
  transition: border-color 0.15s, color 0.15s;
}
.dir-cmp-close:hover { border-color: var(--dark); color: var(--dark); }

.dir-cmp-table {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(15,25,35,0.08);
}

.dir-cmp-row {
  display: grid;
  border-bottom: 1px solid rgba(15,25,35,0.07);
}
.dir-cmp-row:last-child { border-bottom: none; }

.dir-cmp-row-header .dir-cmp-cell {
  background: #F7F8FA;
  font-size: 14px;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
}

.dir-cmp-dim {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--mid);
  background: #F7F8FA;
  border-right: 1px solid rgba(15,25,35,0.07);
  display: flex;
  align-items: center;
}

.dir-cmp-cell {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  border-right: 1px solid rgba(15,25,35,0.05);
  min-width: 100px;
}
.dir-cmp-cell:last-child { border-right: none; }

.dir-cmp-header {
  flex-direction: column;
  gap: 5px;
  text-align: center;
  justify-content: center;
  font-weight: 700;
  color: var(--dark);
}

.dir-cmp-logo {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
}

.dir-cmp-score {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  min-width: 22px;
}

.dir-cmp-best {
  background: #FFFBEC;
}
.dir-cmp-best .dir-cmp-score {
  color: var(--yellow-dark);
}

.price-free {
  color: #1A7A3B;
  font-weight: 800;
}

@media (max-width: 600px) {
  .dir-compare-bar-inner { gap: 10px; }
  .dir-compare-chip { font-size: 12px; padding: 4px 10px; }
  .dir-cmp-close { display: none; }
}
