/* ═══════════════════════════════════════════════════════════════════
   Bitikka Labs — Public Directory (/explore)
   Layered on top of /landing.css: tokens, navbar, buttons and footer
   all come from there, so this file only owns the directory itself.
═══════════════════════════════════════════════════════════════════ */

/* ── Page shell ──────────────────────────────────────────────────── */
.dir-head {
  padding: clamp(7rem, 16vh, 10rem) var(--gutter) clamp(2rem, 5vh, 3rem);
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.dir-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand);
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--brand-glow-sm);
  border-radius: var(--r-full);
  background: var(--brand-ultra);
  margin-bottom: 1.5rem;
}
.dir-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
  animation: dirPulse 2.4s ease-in-out infinite;
}
@keyframes dirPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.dir-head h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900; line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
[dir="ltr"] .dir-head h1 { font-family: 'Inter', sans-serif; }

.dir-sub {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: var(--text-1);
  max-width: 620px; margin: 0 auto;
  line-height: 1.8;
}

/* ── Toolbar: search + type filters ──────────────────────────────── */
.dir-toolbar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.75rem;
}

.dir-search {
  position: relative;
  flex: 1 1 340px; max-width: 440px;
}
.dir-search svg {
  position: absolute; inset-inline-start: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-2); pointer-events: none;
}
.dir-search input {
  width: 100%;
  padding: 0.85rem 1rem;
  padding-inline-start: 2.9rem;
  font: inherit; font-size: 0.95rem;
  color: var(--text-0);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.dir-search input::placeholder { color: var(--text-3); }
.dir-search input:focus {
  outline: none;
  border-color: var(--brand-glow);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px var(--brand-ultra);
}

.dir-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.dir-chip {
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  background: transparent;
  transition: all var(--t-fast);
}
.dir-chip:hover { color: var(--text-0); border-color: var(--glass-hover); }
.dir-chip[aria-pressed="true"] {
  color: #000; font-weight: 700;
  background: var(--brand);
  border-color: var(--brand);
}

.dir-count {
  max-width: var(--max-w);
  margin: 1.75rem auto 0;
  padding: 0 var(--gutter);
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--text-2);
  text-align: center;
}

/* ── Grid ────────────────────────────────────────────────────────── */
.dir-grid {
  max-width: var(--max-w);
  margin: 1.25rem auto 0;
  padding: 0 var(--gutter) clamp(4rem, 9vh, 6rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Venue card ──────────────────────────────────────────────────── */
.venue-card {
  --v1: var(--brand);
  --v2: var(--brand-dark);
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  background: var(--ink-1);
  overflow: hidden;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.venue-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-glow);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 1px var(--brand-glow-sm);
}
.venue-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Cover — the venue's own colours, or the brand gradient as a fallback */
.venue-cover {
  position: relative;
  height: 132px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--v1) 0%, var(--v2) 100%);
  overflow: hidden;
}
.venue-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(6,6,8,0.55) 100%);
}
.venue-mono {
  position: relative; z-index: 1;
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 20px;
  font-family: 'Cairo', sans-serif;
  font-size: 1.9rem; font-weight: 900;
  color: #fff;
  background: rgba(6,6,8,0.42);
  border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.venue-logo {
  position: relative; z-index: 1;
  width: 72px; height: 72px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(6,6,8,0.42);
  border: 1px solid rgba(255,255,255,0.18);
}

/* Type pill — sits on the cover */
.venue-type {
  position: absolute; z-index: 2;
  top: 0.75rem; inset-inline-end: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem; font-weight: 700;
  color: var(--text-0);
  background: rgba(6,6,8,0.62);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-full);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.venue-type svg { flex-shrink: 0; }

/* Body */
.venue-body { padding: 1.15rem 1.25rem 0.5rem; flex: 1; }
.venue-name {
  font-family: 'Cairo', sans-serif;
  font-size: 1.12rem; font-weight: 800;
  color: var(--text-0);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
[dir="ltr"] .venue-name { font-family: 'Inter', sans-serif; }
.venue-tagline {
  font-size: 0.85rem; color: var(--text-2);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.venue-slug {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem; color: var(--text-3);
  letter-spacing: 0.02em;
  direction: ltr; unicode-bidi: isolate;
}

.venue-badges {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.9rem 1.25rem 0;
}
.venue-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-1);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
}

/* Footer row */
.venue-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.15rem;
  font-size: 0.85rem; font-weight: 700;
  color: var(--brand);
}
.venue-foot svg { transition: transform var(--t-med); }
.venue-card:hover .venue-foot svg { transform: translateX(-4px); }
[dir="ltr"] .venue-card:hover .venue-foot svg { transform: translateX(4px); }
[dir="ltr"] .venue-foot svg { transform: scaleX(-1); }

/* ── Loading skeletons ───────────────────────────────────────────── */
.venue-skeleton {
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  background: var(--ink-1);
  overflow: hidden;
  height: 300px;
}
.sk-cover { height: 132px; }
.sk-line { height: 12px; border-radius: 6px; margin: 1rem 1.25rem 0; }
.sk-line.short { width: 45%; }
.sk-cover, .sk-line {
  background: linear-gradient(90deg, var(--ink-2) 25%, var(--ink-3) 50%, var(--ink-2) 75%);
  background-size: 200% 100%;
  animation: skShimmer 1.4s ease-in-out infinite;
}
@keyframes skShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── States ──────────────────────────────────────────────────────── */
.dir-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(3rem, 8vh, 5rem) 1rem;
  border: 1px dashed var(--glass-border);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
}
.dir-state svg { color: var(--text-3); margin: 0 auto 1rem; }
.dir-state h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: var(--text-0);
  margin-bottom: 0.5rem;
}
.dir-state p { font-size: 0.9rem; color: var(--text-2); margin-bottom: 1.25rem; }

/* ── Join CTA ────────────────────────────────────────────────────── */
.dir-cta {
  max-width: var(--max-w);
  margin: 0 auto clamp(4rem, 9vh, 6rem);
  padding: clamp(2rem, 5vw, 3rem) var(--gutter);
  text-align: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 50% 0%, var(--brand-dim) 0%, transparent 60%),
    var(--ink-1);
}
.dir-cta h2 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.3rem, 3.5vw, 1.9rem); font-weight: 900;
  margin-bottom: 0.65rem;
}
[dir="ltr"] .dir-cta h2 { font-family: 'Inter', sans-serif; }
.dir-cta p { color: var(--text-1); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* Room for the CTA card's own gutter inside the section padding */
@media (max-width: 720px) {
  .dir-cta { margin-inline: var(--gutter); }
}

/* ── Motion preferences ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .venue-card, .venue-foot svg { transition: none; }
  .venue-card:hover { transform: none; }
  .sk-cover, .sk-line, .dir-eyebrow .dot { animation: none; }
}
