/* ── STORIES PAGE — Dark Theme ── */

/* ── PAGE HEADER ── */
.stories-header {
  padding-top: 72px; /* nav height */
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--blue-glow), transparent 70%),
    var(--black);
}

.stories-header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 100px 60px 72px;
}

.stories-eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; animation: fadeUp 0.7s ease 0.1s forwards;
}

.stories-eyebrow::before {
  content: ''; display: inline-block;
  width: 24px; height: 1px; background: var(--blue);
}

.stories-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 700; line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--white);
  opacity: 0; animation: fadeUp 0.8s ease 0.25s forwards;
}

.stories-title em {
  font-style: italic; font-weight: 300;
  color: var(--blue);
}

.stories-subtitle {
  font-size: 16px; color: rgba(255, 255, 255, 0.4);
  max-width: 520px; line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0; animation: fadeUp 0.8s ease 0.4s forwards;
}

.stories-stats-row {
  display: flex; gap: 40px;
  opacity: 0; animation: fadeUp 0.8s ease 0.55s forwards;
}

.stories-stat {
  display: flex; flex-direction: column; gap: 4px;
}

.stories-stat-number {
  font-family: 'Raleway', sans-serif;
  font-size: 28px; font-weight: 700;
  color: var(--white); line-height: 1;
}

.stories-stat-number.blue { color: var(--blue); }

.stories-stat-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--light);
}

/* ── CONTROLS BAR ── */
.stories-controls {
  position: sticky; top: 72px; z-index: 90;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; padding: 14px 60px;
  flex-wrap: wrap;
}

.sc-left { flex: 1; min-width: 0; overflow: hidden; }

.stories-tags {
  margin-bottom: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stories-tags::-webkit-scrollbar { display: none; }

.sc-right {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}

.sort-select {
  font-family: 'Satoshi', sans-serif;
  font-size: 11px; font-weight: 500;
  color: var(--mid);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 9px 28px 9px 14px;
  cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23A1A1AA'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}

.sort-select:focus { border-color: var(--blue); }
.sort-select option { background: #18181B; color: var(--white); }

.view-toggle {
  display: flex; gap: 2px;
}

.view-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  color: var(--mid); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.view-btn:hover { border-color: var(--blue); color: var(--blue); }
.view-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.view-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── RESULT COUNT BAR ── */
.stories-result-bar {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 60px;
  font-size: 11px; color: var(--light);
  letter-spacing: 0.06em; min-height: 40px;
  display: flex; align-items: center;
}

/* ── BODY ── */
.stories-body {
  padding: 0 60px 120px;
  background: var(--bg-mid);
  min-height: 60vh;
}

/* Override grid for stories page — 3 col, roomier */
.stories-grid {
  columns: 3;
  column-gap: 28px;
}

/* ── LIST VIEW ── */
.stories-grid.list-view {
  columns: 1;
}

.stories-grid.list-view .testimony-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  padding: 32px 36px;
}

.stories-grid.list-view .card-left {
  flex: 1; min-width: 0;
}

.stories-grid.list-view .card-meta-wrap {
  flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px;
  min-width: 160px;
}

.stories-grid.list-view .card-quote {
  font-size: 20px;
}

.stories-grid.list-view .card-image img {
  height: 140px;
}

/* Bless count chip on card */
.card-bless {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--mid);
  margin-top: 14px;
}

.card-bless-heart { font-size: 13px; color: #e05d6e; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .stories-grid { columns: 2; }
}

@media (max-width: 860px) {
  .stories-header-inner { padding: 72px 24px 52px; }
  .stories-controls { padding: 12px 24px; top: 64px; }
  .stories-result-bar { padding: 10px 24px; }
  .stories-body { padding: 0 24px 80px; }
  .stories-grid { columns: 1; }
  .stories-grid.list-view .testimony-card { flex-direction: column; }
  .stories-grid.list-view .card-meta-wrap { align-items: flex-start; }
  .view-toggle { display: none; }

  .stories-title {
    font-size: clamp(40px, 10vw, 64px);
  }

  .stories-stats-row { gap: 28px; }
  .stories-stat-number { font-size: 22px; }
}

@media (max-width: 480px) {
  .sc-right { gap: 6px; }
  .search-input { width: 140px; }
  .stories-stats-row { gap: 20px; }
}
