/* Recommended pages — css/recommended.css
   Used by recommended-properties.html and recommended-compounds.html */

/* ── Hero ─────────────────────────────────────────────────── */
.rec-hero {
  position: relative;
  background: url("../assets/images/hero-bg.jpg") center / cover no-repeat;
  padding: 56px 0 40px;
  color: var(--color-white);
}

.rec-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25,43,51,0.88) 0%, rgba(65,135,153,0.65) 100%);
}

.rec-hero__content { position: relative; z-index: 1; }

.rec-breadcrumb { margin-bottom: 1rem; }

.rec-breadcrumb .breadcrumb-item a,
.rec-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.65);
}

.rec-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.9); }

.rec-hero__title {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.rec-hero__subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.rec-hero__count {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  margin-right: 4px;
}

/* ── Body ─────────────────────────────────────────────────── */
.rec-body { padding: 40px 0 64px; }

/* ── Filter bar ───────────────────────────────────────────── */
.rec-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
  padding: 16px 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.rec-filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
  margin-right: 4px;
}

.rec-filter-select {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.48rem 2rem 0.48rem 0.75rem;
  font-size: 0.83rem;
  color: var(--color-text);
  background: #fafafa url("../assets/icons/chevron-down.svg") no-repeat right 0.6rem center / 12px;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
  min-width: 130px;
}

.rec-filter-select:focus { border-color: var(--color-primary); }

.rec-clear-btn {
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.48rem 0.9rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.rec-clear-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ── Results label ────────────────────────────────────────── */
.rec-results-label {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.rec-results-label strong { color: var(--color-text); }

/* ── Grid ─────────────────────────────────────────────────── */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Force cards to fill their column in the grid */
.rec-grid .search-card,
.rec-grid .project-card {
  width: 100%;
}

@media (max-width: 1199px) { .rec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .rec-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ── Empty state ──────────────────────────────────────────── */
.rec-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}

.rec-empty img { margin: 0 auto 1.25rem; opacity: 0.5; }
.rec-empty p   { font-size: 0.95rem; }

/* ── Load more ────────────────────────────────────────────── */
.rec-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.rec-load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 2.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(50, 90, 105, 0.28);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.rec-load-more::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("../assets/icons/chevron-down.svg") center / 14px no-repeat;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.rec-load-more:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(50, 90, 105, 0.38);
}

.rec-load-more-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
