/* File: insights.css
 * rps-x-csg × v0.2
 */

/* HERO placeholder (full height inside your existing .hero-full) */
.hero-placeholder {
  width: 100%;
  height: 100%;
  background: #d9d9d9;
}

/* ---------- LAYOUT ---------- */
.insights-page-container {
  display: flex;
  gap: var(--breche-l);
  margin: 0;
  margin-top: 2rem;
  align-items: flex-start;
}

/* Sidebar = 1/3 */
.insights-filter-column {
  flex: 0 0 33.333%;
  min-width: 16rem;
  max-width: 22rem;
}

/* Results = 2/3 */
.insights-results-column {
  flex: 1 1 66.666%;
  min-width: 0;
}

/* Make the search input fill the sidebar (input no longer defines layout) */
.insights-search-input {
  width: 100%;
}

/* ---------- FILTERS (match canids.css aesthetics) ---------- */

/* Reuse the same spacing rhythm as canids */
.insights-filter-column .filter-section {
  margin-bottom: var(--breche-s);
}

.insights-filter-column .filter-section h3 {
  margin: 0 0 6px 0;
  font-weight: 500;
  color: var(--color-black);
}

/* Stack options like canids */
.insights-filter-column .filter-options {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Make labels look like canids clickable text */
.insights-filter-column .filter-option {
  cursor: pointer;
  padding: 0px 0;
  position: relative;
  display: inline-block;
  width: fit-content;
  color: var(--color-black);
  transition: color 0.18s ease;
  user-select: none;
}

/* Hover/focus -> orange */
.insights-filter-column .filter-option:hover,
.insights-filter-column .filter-option:focus-visible {
  color: var(--color-s-orange);
}

/* Active -> stays orange (JS will toggle .active when checked) */
.insights-filter-column .filter-option.active {
  color: var(--color-s-orange);
}

/* Hide native checkbox/radio boxes (like show-names toggle behaviour) */
.insights-filter-column .filter-option input[type="checkbox"],
.insights-filter-column .filter-option input[type="radio"] {
  display: none;
}

/* Canid select styled like the canids input */
.insights-filter-column select.canid-search-input {
  width: 100%;
  padding: 6px 0px;
  font-size: 20px;
  font-family: var(--font-serif);
  box-sizing: border-box;
  outline: none;
  border: 0;
  background-color: transparent;
  border-bottom: 1px solid var(--color-black);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Keep the same input look (search already uses .canid-search-input) */
.insights-filter-column .canid-search-input::placeholder {
  color: #999;
  transition: color 0.2s ease;
}

.insights-filter-column .canid-search-input:focus::placeholder {
  color: transparent;
}

/* ---------- RESULTS LIST ---------- */
.insights-results-header {
  margin-bottom: var(--breche-m);
}

.insights-results {
  display: flex;
  flex-direction: column;
  gap: var(--breche-m);
}

.insights-item {
  padding-bottom: var(--breche-s);
  border-bottom: 0.9px solid var(--color-black);

  /* subtle movement like canids */
  opacity: 0;
  transform: translateY(18px);
  animation: insightsFadeInUp 0.45s ease-out forwards;
}

.insights-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Meta line */
.insights-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.insights-badge {
  display: inline-block;
}

/* Titles and summaries */
.insights-item-title {
  margin: 0 0 0.35rem 0;
}

.insights-item-summary {
  margin: 0;
  max-width: 70ch;
}

/* ---------- ANIMATION ---------- */
@keyframes insightsFadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  #c-hero {
    display: none;
  }

  .insights-page-container {
    flex-direction: column;
    margin-top: 1.5rem;
    gap: var(--breche-m);
  }

  .insights-filter-column {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .insights-results-column {
    width: 100%;
  }
}
