/* ============================================
   EXPERIENCES PAGE — CSS
   ============================================ */

/* ── HERO ─────────────────────────────────── */
.exp-hero {
  padding: 120px 20px 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,147,42,0.1) 0%, transparent 70%), var(--bg-dark);
  border-bottom: 1px solid var(--border);
}
.exp-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.exp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}
.exp-hero-title em {
  font-style: italic;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.exp-hero-sub {
  font-size: clamp(15px, 2.5vw, 17px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
}
.exp-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.exp-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.exp-stat span {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 900;
  color: var(--accent2);
}
.exp-stat label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.exp-stat-divider { width: 1px; height: 40px; background: var(--border-light); }

/* ── TOOLBAR ──────────────────────────────── */
.experiences-section { padding: 52px 0 72px; }
.exp-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.exp-toolbar-left { flex: 1; }
.exp-toolbar-right { display: flex; align-items: center; padding-top: 4px; }
.exp-count-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.filter-tab:hover { background: rgba(201,147,42,0.06); border-color: rgba(201,147,42,0.3); color: var(--text); }
.filter-tab.active { background: rgba(201,147,42,0.12); border-color: var(--accent); color: var(--accent2); }

/* ── GRID ─────────────────────────────────── */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 36px;
  min-height: 200px;
}

/* ── CARDS ────────────────────────────────── */
.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  animation: fadeUp 0.4s ease both;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.exp-card:hover { border-color: var(--border); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.exp-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.exp-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.exp-card-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; padding-top: 2px; }
.exp-quote-mark { font-family: var(--font-display); font-size: 48px; line-height: 0.5; color: var(--accent); opacity: 0.25; margin-bottom: 10px; }
.exp-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
  flex: 1;
  margin-bottom: 20px;
}
.exp-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.exp-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.exp-author-wrap { display: flex; align-items: center; gap: 10px; }
.exp-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.exp-author { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.exp-company { font-size: 12px; color: var(--text-muted); opacity: 0.7; }
.exp-expand {
  background: none; border: none;
  color: var(--accent2);
  font-size: 13px; cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 4px 0;
  flex-shrink: 0;
  transition: color var(--transition);
}
.exp-expand:hover { color: var(--accent); text-decoration: underline; }

/* Category colours */
.cat-authority     { background: rgba(239,68,68,0.1);  color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.cat-accountability{ background: rgba(249,115,22,0.1); color: #f97316; border: 1px solid rgba(249,115,22,0.2); }
.cat-culture       { background: rgba(168,85,247,0.1); color: #a855f7; border: 1px solid rgba(168,85,247,0.2); }
.cat-ethical       { background: rgba(59,130,246,0.1); color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); }
.cat-positive      { background: rgba(34,197,94,0.1);  color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }

/* ── LOADING ──────────────────────────────── */
.exp-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.exp-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ──────────────────────────── */
.exp-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.exp-empty-state h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.exp-empty-state p { font-size: 15px; }

/* ── LOAD MORE ────────────────────────────── */
.load-more-wrap { text-align: center; padding: 8px 0 16px; }
.btn-load-more {
  padding: 14px 36px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent2);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
}
.btn-load-more:hover { background: rgba(201,147,42,0.1); transform: translateY(-2px); }
.btn-load-more:disabled { opacity: 0.5; cursor: default; transform: none; }
.load-badge {
  background: rgba(201,147,42,0.2);
  border-radius: 100px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--accent2);
}

/* ── SHARE FORM ───────────────────────────── */
.share-section {
  padding: 72px 0 100px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
  border-top: 1px solid var(--border);
}
.share-intro { text-align: center; margin-bottom: 48px; }
.share-intro .section-intro { margin-left: auto; margin-right: auto; }
.share-promises { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.promise-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.promise-item span { font-size: 18px; }

.share-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 760px;
  margin: 0 auto;
}
.share-form-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border-light); }
.share-form-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.share-form-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.char-count { text-align: right; font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ── ANONYMOUS TOGGLE ─────────────────────── */
.anon-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  transition: var(--transition);
}
.anon-toggle-wrap.active { border-color: var(--accent); background: rgba(201,147,42,0.06); }
.anon-toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.anon-toggle input { opacity: 0; width: 0; height: 0; }
.anon-slider {
  position: absolute; inset: 0;
  background: var(--bg-dark);
  border: 2px solid var(--border-light);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.anon-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 2px; top: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}
.anon-toggle input:checked + .anon-slider { background: rgba(201,147,42,0.2); border-color: var(--accent); }
.anon-toggle input:checked + .anon-slider::before { transform: translateX(20px); background: var(--accent2); }
.anon-toggle-label strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.anon-toggle-label span { font-size: 13px; color: var(--text-muted); }

/* Display preview */
.display-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 10px 14px;
  background: var(--bg-dark);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
.display-preview strong { color: var(--accent2); font-size: 14px; }

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.checkbox-label input { display: none; }
.checkbox-custom {
  width: 18px; height: 18px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.checkbox-label input:checked ~ .checkbox-custom { border-color: var(--accent); background: var(--accent); }
.checkbox-label input:checked ~ .checkbox-custom::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; }

/* Share success */
.share-success {
  text-align: center;
  padding: 60px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.share-success-icon { font-size: 56px; margin-bottom: 20px; }
.share-success h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.share-success p { font-size: 16px; color: var(--text-muted); line-height: 1.8; }

/* ── RESPONSIVE ───────────────────────────── */
@media (min-width: 640px) {
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .share-form { padding: 40px 40px; }
}
@media (min-width: 1024px) {
  .exp-grid { grid-template-columns: repeat(3, 1fr); }
  .share-form { padding: 48px 56px; }
}
