/* ════════════════════════════════════════════════
   Revelation Agency — Dev Environment
   Modeled after Infinite Roofing Solutions pattern
   ════════════════════════════════════════════════ */

/* ── Reset & Tokens ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #3096EF;
  --blue-dim:    rgba(48,150,239,0.30);
  --blue-deep:   #1A3A5C;
  --dark:        #0C0F14;
  --dark-mid:    #0F1318;

  --text-primary:   #E8ECF1;
  --text-secondary: #8B99AE;
  --text-dim:       #5A6A80;
  --border:         rgba(255,255,255,0.06);
  --border-card:    rgba(255,255,255,0.08);

  --surface:        rgba(255,255,255,0.025);
  --surface-hover:  rgba(255,255,255,0.05);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Libre Franklin', 'Inter', system-ui, sans-serif;
}

/* ── Base ────────────────────────────────────── */
html {
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(48,150,239,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(48,150,239,0.04) 0%, transparent 40%),
    var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Ambient Grain ──────────────────────────── */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── Cinematic Entrance ─────────────────────── */
.cin-fade {
  opacity: 0;
  transform: translateY(14px);
  animation: cinIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cin-d1 { animation-delay: 0.15s; }
.cin-d2 { animation-delay: 0.30s; }
.cin-d3 { animation-delay: 0.48s; }
.cin-d4 { animation-delay: 0.64s; }

@keyframes cinIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.18s; }

/* ══════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════ */
.top-bar {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.top-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-wordmark {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  opacity: 0.85;
}

.env-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
}

.env-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue-dim);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--blue-dim); }
  50% { opacity: 0.6; box-shadow: 0 0 14px var(--blue-dim); }
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 12vw, 140px) 32px clamp(60px, 8vw, 100px);
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-dim);
}

.eyebrow-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-dim), transparent);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 12px;
}

.hero-detail {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0;
}

/* ══════════════════════════════════════════════
   PROJECTS SECTION
   ══════════════════════════════════════════════ */
.projects-section {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0 32px 80px;
}

.projects-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Section Label */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.section-label h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  white-space: nowrap;
}

.section-label-line {
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
  flex-shrink: 0;
}

.section-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: dotPulse 2.5s ease-in-out infinite;
}

/* ── Project Grid ──────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

/* ── Project Card ──────────────────────────── */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  cursor: pointer;
}

.project-card:not(.project-card--empty):hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.25),
    0 4px 16px rgba(0,0,0,0.15);
}

.project-card--empty {
  opacity: 0.4;
  cursor: default;
  border-style: dashed;
}

/* Ambient glow on hover */
.card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.card-glow-blue { background: var(--blue); }
.card-glow-amber { background: #fbbf24; }
.project-card:not(.project-card--empty):hover .card-glow { opacity: 0.07; }

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: 100px;
}

.badge-live {
  background: rgba(48,150,239,0.12);
  color: var(--blue);
  border: 1px solid rgba(48,150,239,0.22);
}

.badge-active {
  background: rgba(251,191,36,0.10);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.28);
}

.badge-active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251,191,36,0.6);
  animation: dotPulse 2.5s ease-in-out infinite;
}

.badge-pending {
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  border: 1px solid var(--border-card);
}

.card-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  letter-spacing: 0.02em;
}

/* Card Body */
.card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.card-title--dim { color: var(--text-dim); }

.card-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0;
  flex: 1;
}

.card-desc code {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: var(--text-secondary);
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.card-path {
  font-size: 12px;
  color: var(--text-dim);
}

.card-path code {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-card);
  color: var(--text-dim);
  transition: all 0.35s ease;
}
.project-card:not(.project-card--empty):hover .card-arrow {
  background: var(--blue-deep);
  border-color: rgba(48,150,239,0.30);
  color: var(--text-primary);
  transform: translateX(3px);
}

.card-arrow--dim { color: var(--text-dim); opacity: 0.4; }

/* ── Add Note ──────────────────────────────── */
.add-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  padding: 14px 18px;
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.add-note svg { flex-shrink: 0; margin-top: 2px; }

.add-note code {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-wordmark {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  opacity: 0.6;
  letter-spacing: -0.01em;
}

.footer-divider {
  color: var(--text-dim);
  opacity: 0.3;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.7;
}

.footer-meta {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.5;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .top-bar-inner { padding: 14px 20px; }
  .hero { padding: clamp(60px, 10vw, 100px) 20px clamp(40px, 6vw, 60px); }
  .hero h1 { font-size: clamp(28px, 5vw, 40px); }
  .projects-section { padding: 0 20px 60px; }
  .project-grid { grid-template-columns: 1fr; gap: 20px; }
  .card-title { font-size: 20px; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
  .footer-brand { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-eyebrow { gap: 10px; font-size: 10px; letter-spacing: 2px; }
  .eyebrow-line { width: 20px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 15px; }
  .project-card { padding: 24px 20px; }
  .section-label { flex-wrap: wrap; gap: 10px; }
  .section-status { margin-left: 0; }
  .top-bar-inner { padding: 12px 16px; }
}

/* ── Catalog filter bar mobile ── */
@media (max-width: 768px) {
  .filter-bar > div {
    gap: 6px !important;
    padding: 0 12px !important;
  }
  .filter-bar .filter-btn,
  .filter-bar button,
  .filter-bar select {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }
  .filter-bar input[type="text"] {
    width: 140px !important;
    font-size: 11px !important;
  }
  .filter-bar span[style*="width:1px"] {
    display: none !important;
  }
  #catalog-stats {
    padding: 6px 12px !important;
    flex-wrap: wrap;
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  .filter-bar > div {
    justify-content: center;
  }
  .filter-bar .filter-btn,
  .filter-bar button {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
  .filter-bar input[type="text"] {
    width: 120px !important;
  }
  .filter-bar select {
    max-width: 100px;
  }
}

/* ── Catalog Card Hover Enhancements ── */
.project-card[data-quality] {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.project-card[data-quality]:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  border-color: rgba(255,255,255,.12);
}
.project-card[data-quality] .card-arrow {
  transition: transform .2s ease;
}
.project-card[data-quality]:hover .card-arrow {
  transform: translateX(4px);
}

/* ── Quality Badge Styling ── */
.quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .02em;
}
.quality-badge.high {
  background: rgba(34,197,94,.12);
  color: rgba(34,197,94,.8);
}
.quality-badge.mid {
  background: rgba(245,166,35,.1);
  color: rgba(245,166,35,.7);
}
.quality-badge.low {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.35);
}

/* ── RA Recommended Glow ── */
.project-card[data-ra-fit="strong"] {
  border-left: 2px solid rgba(245,166,35,.25);
}
.project-card[data-ra-fit="strong"]:hover {
  border-left-color: rgba(245,166,35,.5);
}

/* ── Catalog Scroll Indicator ── */
.filter-bar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.filter-bar::-webkit-scrollbar {
  height: 3px;
}
.filter-bar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.1);
  border-radius: 3px;
}

/* ── Focus Styles for Catalog Inputs ── */
.filter-bar input[type="text"]:focus {
  border-color: rgba(48,150,239,.4) !important;
  box-shadow: 0 0 0 2px rgba(48,150,239,.1);
}
.filter-bar select:focus {
  border-color: rgba(48,150,239,.4) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(48,150,239,.1);
}

/* ── Template Card Hover Improvements ── */
.project-card .card-title {
  transition: color .15s ease;
}
.project-card:hover .card-title {
  color: var(--blue);
}
.project-card .card-desc {
  transition: opacity .15s ease;
}
.project-card:hover .card-desc {
  opacity: .9;
}

/* ── Catalog Mobile Responsive ── */
@media (max-width: 768px) {
  .filter-bar > div {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    flex-wrap: nowrap !important;
  }
  .filter-bar .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  #catalog-search {
    width: 150px !important;
    min-width: 120px;
  }
  .project-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .hero h1 {
    font-size: 2rem !important;
  }
  .hero-sub {
    font-size: .9rem !important;
  }
  #catalog-stats {
    flex-wrap: wrap;
    gap: 8px !important;
  }
  .section-label h2 {
    font-size: 1.1rem !important;
  }
}
@media (max-width: 480px) {
  .top-bar-inner {
    padding: 0 12px;
  }
  .hero-inner {
    padding: 48px 16px 32px !important;
  }
  .project-card {
    padding: 16px !important;
  }
  .card-title {
    font-size: .95rem !important;
  }
}

/* ── Catalog View Toggle Styles ── */
.view-toggle-btn {
  background: transparent;
  color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.view-toggle-btn.active,
.view-toggle-btn:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.15);
}

/* ── Compact List View for Catalog ── */
.project-grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}
.project-grid.list-view .project-card {
  padding: 12px 16px !important;
  display: flex;
  align-items: center;
  gap: 16px;
}
.project-grid.list-view .card-header {
  min-width: 120px;
}
.project-grid.list-view .card-desc {
  display: none;
}
.project-grid.list-view .card-footer {
  margin-top: 0;
}
.project-grid.list-view .card-glow {
  display: none;
}

/* ── View Toggle Focus & Keyboard Styles ── */
.view-toggle-btn:focus-visible {
  outline: 2px solid rgba(48,150,239,.6);
  outline-offset: 2px;
}
.view-toggle-btn[aria-pressed="true"] {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

/* ── Filter Button Focus & Active States ── */
.filter-btn:focus-visible {
  outline: 2px solid rgba(48,150,239,.6);
  outline-offset: 2px;
}
#ra-filter-btn:focus-visible {
  outline: 2px solid rgba(56,189,248,.5);
  outline-offset: 2px;
}
#clear-filters-btn:focus-visible {
  outline: 2px solid rgba(255,100,100,.5);
  outline-offset: 2px;
}

/* ── Quality Badge Accessibility (ensure contrast) ── */
.quality-badge.q-high {
  background: rgba(34,197,94,.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.2);
}
.quality-badge.q-mid {
  background: rgba(245,166,35,.12);
  color: #f5a623;
  border: 1px solid rgba(245,166,35,.15);
}
.quality-badge.q-low {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.08);
}
.quality-badge.q-ra {
  background: rgba(245,166,35,.1);
  color: #f5a623;
  border: 1px solid rgba(245,166,35,.2);
}

/* ── Star Rating Accessibility ── */
.quality-stars { font-size: 9px; letter-spacing: 1px; }
.star-on { color: #f5a623; }
.star-off { color: rgba(255,255,255,.15); }

/* ── Tooltip Keyboard Accessibility ── */
.project-card:focus-within .card-meta-tooltip,
.project-card:focus .card-meta-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Card Meta Tooltip Base ── */
.card-meta-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15,15,20,.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 220px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  pointer-events: none;
}
.project-card:hover .card-meta-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
}
.meta-label { color: rgba(255,255,255,.4); }
.meta-value { color: rgba(255,255,255,.8); font-weight: 500; }
.meta-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 8px 0;
}
.meta-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: 10px;
  color: rgba(255,255,255,.45);
  margin: 2px;
}

/* ── RA Recommended Card Highlight ── */
.project-card[data-ra="strong"] {
  border-left: 2px solid rgba(245,166,35,.3);
}
.project-card[data-ra="strong"]:hover {
  border-left-color: rgba(245,166,35,.6);
}

/* ── Print: hide catalog controls ── */
@media print {
  .filter-bar, #catalog-stats, #revdev-back, .bg-grain { display: none !important; }
}

/* ── Featured picks scrollbar ── */
#featured-picks-row::-webkit-scrollbar { height: 4px; }
#featured-picks-row::-webkit-scrollbar-track { background: rgba(255,255,255,.03); border-radius: 2px; }
#featured-picks-row::-webkit-scrollbar-thumb { background: rgba(56,189,248,.2); border-radius: 2px; }

/* ── Catalog card NEW badge pulse ── */
.card .new-badge,
.project-card .new-badge { animation: pulse-new 2s ease-in-out infinite; }
@keyframes pulse-new { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }

/* ── Catalog loading skeleton ── */
.card-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
  min-height: 280px;
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Catalog breadcrumb ── */
.catalog-breadcrumb {
  font-size: 13px;
  font-family: Inter, system-ui, sans-serif;
  color: rgba(255,255,255,.4);
  padding: 0 24px;
  max-width: 1200px;
  margin: 12px auto 0;
}
.catalog-breadcrumb a { color: var(--blue); text-decoration: none; }
.catalog-breadcrumb a:hover { text-decoration: underline; }
.catalog-breadcrumb span { margin: 0 6px; }

/* ── Filter active count badge ── */
.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  margin-left: 6px;
  padding: 0 4px;
}
