/* =============================================
   Tank Logic — Guides Index CSS
   ============================================= */

/* ==================== HERO ==================== */
.guides-hero {
  padding-top: calc(var(--nav-h) + 52px);
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.guides-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,148,255,0.07) 0%, transparent 70%);
  top: -80px; right: -120px;
  pointer-events: none;
}
.guides-hero__inner { max-width: 700px; position: relative; z-index: 1; }
.guides-hero h1     { margin-bottom: 16px; }

/* ==================== FILTER BAR ==================== */
.guides-filter-bar {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guides-search {
  width: 100%;
  max-width: 480px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 18px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--tx-hi);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.guides-search::placeholder { color: var(--tx-lo); }
.guides-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,200,160,0.12);
}

.filter-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--tx);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.filter-btn:hover  { border-color: var(--accent); color: var(--tx-hi); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ==================== FEATURED CARD ==================== */
.featured-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, var(--bg-1) 0%, rgba(0,200,160,0.05) 100%);
  border: 1px solid rgba(0,200,160,0.25);
  border-radius: var(--r-lg);
  padding: 36px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(0,200,160,0.06), transparent 60%);
  pointer-events: none;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,200,160,0.12);
  border-color: rgba(0,200,160,0.45);
}

.featured-card__body       { flex: 1; }
.featured-card__tags       { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.featured-card__title      { font-family: var(--font); font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; color: var(--tx-hi); line-height: 1.25; margin-bottom: 14px; }
.featured-card__desc       { font-size: 0.95rem; color: var(--tx); line-height: 1.75; margin-bottom: 20px; }
.featured-card__meta       { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.8rem; color: var(--tx); margin-bottom: 20px; }
.featured-card__cta        { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-weight: 700; font-size: 0.9rem; color: var(--accent); transition: gap 0.2s; }
.featured-card:hover .featured-card__cta { gap: 10px; }
.featured-card__emoji      { font-size: 5rem; flex-shrink: 0; opacity: 0.85; display: none; }

/* ==================== SECTION HEADER ==================== */
.guides-section-header     { margin-bottom: 28px; }
.guides-section-header h2  { font-size: 1.5rem; }
.guides-count              { font-size: 0.88rem; font-weight: 400; color: var(--tx-lo); font-family: var(--font); margin-left: 8px; }
#noResults                 { color: var(--tx-lo); font-size: 0.9rem; margin-top: 10px; }

/* ==================== CATEGORY LABELS ==================== */
.cat-label {
  grid-column: 1 / -1;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tx-lo);
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-top: 8px;
}
.cat-label.hidden { display: none; }

/* ==================== GUIDES INDEX GRID ==================== */
.guides-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

/* ==================== GUIDE INDEX CARD ==================== */
.gi-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.gi-card:hover            { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.22); }
.gi-card.hidden           { display: none; }

.gi-card__link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
}
/* Live guide hover */
.gi-card:not(:has(.gi-card__link--soon)):hover {
  border-color: rgba(0,148,255,0.35);
}
.gi-card:not(:has(.gi-card__link--soon)):hover .gi-card__title { color: var(--blue); }

/* Soon guides — muted hover */
.gi-card:has(.gi-card__link--soon) { opacity: 0.75; }
.gi-card:has(.gi-card__link--soon):hover { transform: none; box-shadow: none; border-color: var(--border); }

.gi-card__icon {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.gi-card__icon.teal   { background: rgba(0,200,160,0.12); }
.gi-card__icon.blue   { background: rgba(0,148,255,0.12); }
.gi-card__icon.purple { background: rgba(130,80,255,0.12); }
.gi-card__icon.gold   { background: rgba(245,200,66,0.12); }

.gi-card__body  { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.gi-card__tags  { display: flex; gap: 6px; flex-wrap: wrap; }

.gi-essential {
  background: rgba(0,200,160,0.1);
  color: var(--accent);
  border-color: rgba(0,200,160,0.2);
}

.gi-card__title {
  font-family: var(--font);
  font-size: var(--sz-14);
  font-weight: 600;
  color: var(--tx-hi);
  line-height: 1.35;
  margin: 0;
  transition: color 0.2s;
}

.gi-card__desc {
  font-size: 0.8rem;
  color: var(--tx);
  line-height: 1.6;
  margin: 0;
}

.gi-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: var(--sz-12);
  color: var(--tx);
}

.badge-live {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--accent);
  background: rgba(0,200,160,0.1);
  border: 1px solid rgba(0,200,160,0.2);
  border-radius: 100px;
  padding: 2px 8px;
}

.badge-soon {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--tx-lo);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 8px;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 600px) {
  .guides-index-grid     { grid-template-columns: repeat(2, 1fr); }
  .featured-card__emoji  { display: block; }
}
@media (min-width: 900px) {
  .guides-index-grid     { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════════════
   PHASE 4 — GUIDES INDEX POLISH PATCH
   ════════════════════════════════════════════════ */

/* ── Search — icon inset ───────────────────────── */
.guides-search-wrap { position: relative; max-width: 480px; }
.guides-search      { padding-left: 38px; width: 100%; }

/* ── Filter pills — gap on mobile ──────────────── */
@media (max-width: 480px) {
  .filter-btns { gap: 6px; }
  .filter-btn  { padding: 6px 13px; font-size: 0.78rem; }
}

/* ── gi-card — border-left accent on hover ─────── */
.gi-card:not(:has(.gi-card__link--soon)) {
  border-left: 2px solid transparent;
  transition: border-left-color 160ms var(--ease), transform 160ms var(--ease),
              box-shadow 160ms var(--ease), border-color 160ms var(--ease);
}
.gi-card:not(:has(.gi-card__link--soon)):hover {
  border-left-color: var(--blue);
}

/* ── Category label — dot separator ────────────── */
.cat-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Featured card — inner shimmer line ─────────── */
.featured-card::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,150,0.3), transparent);
  pointer-events: none;
}


/* ════════════════════════════════════════════════
   PHASE 1 — GUIDES INDEX READABILITY PATCH
   ════════════════════════════════════════════════ */

/* Featured card */
.featured-card__desc {
  font-size: var(--sz-15);
  color: var(--tx);
  line-height: 1.75;
  margin-bottom: 20px;
}
.featured-card__title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--tx-hi);
  line-height: 1.25;
  margin-bottom: 14px;
}

/* Guide index cards */
.gi-card__title {
  font-size: var(--sz-14);
  font-weight: 600;
  color: var(--tx-hi);
  line-height: 1.35;
}
.gi-card__desc {
  font-size: var(--sz-13);
  color: var(--tx);
  line-height: 1.6;
}

/* Category labels */
.cat-label {
  font-size: var(--sz-12);
  color: var(--tx-lo);
  letter-spacing: 0.08em;
}

/* Filter buttons */
.filter-btn {
  font-size: var(--sz-13);
  color: var(--tx);
}

/* Search input */
.guides-search {
  font-size: var(--sz-15);
  color: var(--tx-hi);
}

/* ════════════════════════════════════════════════
   PHASE 1 READABILITY — guides-index.css
   ════════════════════════════════════════════════ */

.gi-card__title { font-size: var(--sz-14); color: var(--tx-hi); font-weight: 600; }
.gi-card__desc  { font-size: var(--sz-13); color: var(--tx); line-height: 1.6; }
.gi-card__meta  { font-size: var(--sz-12); color: var(--tx-lo); }

.cat-label { color: var(--tx); font-size: var(--sz-11); }

.featured-card__title { font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
.featured-card__desc  { font-size: var(--sz-15); color: var(--tx); line-height: 1.72; }
.featured-card__meta  { font-size: var(--sz-13); color: var(--tx-lo); }

.filter-btn { font-size: var(--sz-12); }
.guides-section-header h2 { font-size: var(--sz-20); color: var(--tx-hi); }
.guides-count { color: var(--tx-lo); }

/* ════════════════════════════════════════════════
   PHASE 1 — READABILITY FIXES (guides-index.css)
   ════════════════════════════════════════════════ */

.gi-card__title     { font-size: var(--sz-15); }
.gi-card__desc      { font-size: var(--sz-14); color: var(--tx); line-height: 1.62; }
.gi-card__meta      { font-size: var(--sz-13); }
.cat-label          { font-size: var(--sz-12); }
.filter-btn         { font-size: var(--sz-13); }
.guides-search      { font-size: var(--sz-15); }
.featured-card__desc { font-size: var(--sz-15); line-height: 1.74; }
.featured-card__title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
