/* ============================================================
   GUIDES.CSS — Blog-style guides index page
   Prefix: .gd-*
   ============================================================ */

:root {
  --gd-blue: #2563eb;
  --gd-blue-lt: #eff6ff;
  --gd-text: #0f172a;
  --gd-muted: #64748b;
  --gd-border: #e2e8f0;
  --gd-bg: #f8fafc;
  --gd-white: #ffffff;
  --gd-radius: 14px;
  --gd-card-radius: 12px;
  --gd-max: 1200px;
  --gd-shadow: 0 2px 12px rgba(0,0,0,.07);
  --gd-shadow-hover: 0 8px 32px rgba(37,99,235,.12);
}

/* ── HERO ─────────────────────────────────────────────────── */
.gd-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1a3155 100%);
  padding: 100px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(37,99,235,.18) 0%, transparent 70%);
  pointer-events: none;
}
.gd-hero__inner {
  position: relative;
  max-width: var(--gd-max);
  margin: 0 auto;
}
.gd-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.gd-hero__badge svg { width: 14px; height: 14px; }
.gd-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.gd-hero__sub {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── FILTER BAR ───────────────────────────────────────────── */
.gd-filter {
  background: var(--gd-white);
  border-bottom: 1px solid var(--gd-border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 64px;
  z-index: 100;
}
.gd-filter::-webkit-scrollbar { display: none; }
.gd-filter__label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gd-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  margin-right: 8px;
  padding: 14px 0;
}
.gd-filter__btn {
  padding: 10px 18px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gd-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all .18s;
  border: none;
  background: none;
  cursor: pointer;
}
.gd-filter__btn:hover,
.gd-filter__btn.active {
  background: var(--gd-blue-lt);
  color: var(--gd-blue);
}

/* ── FEED WRAPPER ─────────────────────────────────────────── */
.gd-feed {
  max-width: var(--gd-max);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* ── FEATURED CARD ────────────────────────────────────────── */
.gd-featured {
  border-radius: var(--gd-radius);
  overflow: hidden;
  background: var(--gd-text);
  position: relative;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  box-shadow: var(--gd-shadow-hover);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.gd-featured:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,.18); }
.gd-featured__img {
  position: relative;
  overflow: hidden;
}
.gd-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gd-featured:hover .gd-featured__img img { transform: scale(1.04); }
.gd-featured__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(15,23,42,.6) 100%);
}
.gd-featured__body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}
.gd-featured__tag {
  display: inline-block;
  background: rgba(37,99,235,.2);
  color: #93c5fd;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  align-self: flex-start;
}
.gd-featured__label {
  font-size: .78rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gd-featured__title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 16px;
}
.gd-featured__excerpt {
  font-size: .95rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0 0 28px;
}
.gd-featured__meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: .8rem;
  color: #64748b;
  margin-bottom: 28px;
}
.gd-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gd-blue);
  color: #ffffff;
  font-size: .88rem;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 100px;
  text-decoration: none;
  align-self: flex-start;
  transition: background .18s, transform .18s;
}
.gd-featured__cta:hover { background: #1d4ed8; transform: translateX(3px); }
.gd-featured__cta svg { width: 16px; height: 16px; }

/* ── SECTION HEADING ──────────────────────────────────────── */
.gd-section-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gd-text);
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gd-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.gd-section-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--gd-blue);
  border-radius: 2px;
}

/* ── CARD GRID ────────────────────────────────────────────── */
.gd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

/* ── CARD ─────────────────────────────────────────────────── */
.gd-card {
  background: var(--gd-white);
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--gd-shadow);
}
.gd-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gd-shadow-hover);
  border-color: #bfdbfe;
}
.gd-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.gd-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gd-card:hover .gd-card__img img { transform: scale(1.06); }
.gd-card__body {
  padding: 22px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gd-card__tag {
  display: inline-block;
  background: var(--gd-blue-lt);
  color: var(--gd-blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.gd-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gd-text);
  line-height: 1.35;
  margin: 0 0 10px;
}
.gd-card__excerpt {
  font-size: .875rem;
  color: var(--gd-muted);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}
.gd-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--gd-border);
  margin-top: auto;
}
.gd-card__meta {
  font-size: .76rem;
  color: var(--gd-muted);
}
.gd-card__read {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gd-blue);
  display: flex;
  align-items: center;
  gap: 4px;
}
.gd-card__read svg { width: 14px; height: 14px; transition: transform .18s; }
.gd-card:hover .gd-card__read svg { transform: translateX(3px); }

/* ── CTA STRIP ────────────────────────────────────────────── */
.gd-cta-strip {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  border-radius: var(--gd-radius);
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 56px;
  box-shadow: 0 8px 32px rgba(37,99,235,.3);
  position: relative;
  overflow: hidden;
}
.gd-cta-strip::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}
.gd-cta-strip__text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}
.gd-cta-strip__text p {
  font-size: .97rem;
  color: rgba(255,255,255,.88);
  margin: 0;
}
.gd-cta-strip__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: .9rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  flex-shrink: 0;
}
.gd-cta-strip__btn:hover { background: #eff6ff; color: #1e40af; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.gd-cta-strip__btn svg { width: 16px; height: 16px; }

/* ── SECTION DIVIDER ──────────────────────────────────────── */
.gd-divider {
  height: 1px;
  background: var(--gd-border);
  margin: 0 0 48px;
}

/* ── NO RESULTS ───────────────────────────────────────────── */
.gd-no-results {
  display: none;
  text-align: center;
  padding: 60px 24px;
  color: var(--gd-muted);
}
.gd-no-results.visible { display: block; }

/* ── PRE-FOOTER ───────────────────────────────────────────── */
.gd-prefooter {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gd-prefooter__bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  color: rgba(255,255,255,.03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -.02em;
}
.gd-prefooter__inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.gd-prefooter__badge {
  display: inline-block;
  background: rgba(37,99,235,.2);
  color: #93c5fd;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.gd-prefooter__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 14px;
  letter-spacing: -.02em;
}
.gd-prefooter__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  margin: 0 0 32px;
}
.gd-prefooter__links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gd-prefooter__link {
  padding: 13px 28px;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .18s;
}
.gd-prefooter__link--primary {
  background: var(--gd-blue);
  color: #ffffff;
}
.gd-prefooter__link--primary:hover { background: #1d4ed8; }
.gd-prefooter__link:not(.gd-prefooter__link--primary) {
  background: rgba(255,255,255,.08);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.1);
}
.gd-prefooter__link:not(.gd-prefooter__link--primary):hover {
  background: rgba(255,255,255,.14);
  color: #ffffff;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .gd-featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .gd-featured__img { aspect-ratio: 16/7; }
  .gd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gd-hero { padding: 80px 20px 56px; }
  .gd-feed { padding: 40px 16px 60px; }
  .gd-grid { grid-template-columns: 1fr; }
  .gd-featured__body { padding: 32px 24px; }
  .gd-cta-strip { flex-direction: column; text-align: center; padding: 36px 24px; }
  .gd-filter__btn { padding: 10px 14px; }
}
