/**
 * Guides help-center page — built on zTyping theme tokens.
 */
body.page-guides .guides-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

body.page-guides .guides-hero {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  animation: guides-rise 0.65s cubic-bezier(0.19, 1, 0.22, 1) 60ms forwards;
}

body.page-guides .guides-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text);
}

body.page-guides .guides-hero .lead {
  margin: 0;
  max-width: 620px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-dim);
}

body.page-guides .guides-tools {
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transform: translateY(16px);
  animation: guides-rise 0.65s cubic-bezier(0.19, 1, 0.22, 1) 140ms forwards;
}

body.page-guides .featured-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  animation: guides-rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 220ms forwards;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.3s ease,
    box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

body.page-guides .featured-guide:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

body.page-guides .featured-visual {
  position: relative;
  min-height: 240px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(255, 63, 164, 0.22), transparent 65%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(155, 107, 255, 0.18), transparent 60%),
    linear-gradient(160deg, #1a0f2c 0%, #120a1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.page-guides .featured-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
}

body.page-guides .keycaps {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
}

body.page-guides .keycap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2a2238 0%, #1a1428 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dim);
  animation: key-bob 2.5s ease-in-out infinite;
}

body.page-guides .keycap:nth-child(2) {
  animation-delay: 0.2s;
}
body.page-guides .keycap:nth-child(3) {
  animation-delay: 0.4s;
}
body.page-guides .keycap:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes key-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

body.page-guides .featured-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  padding: 28px 30px;
}

body.page-guides .featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.page-guides .featured-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

body.page-guides .featured-body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-dim);
}

body.page-guides .featured-body .btn-primary {
  align-self: flex-start;
  margin-top: 4px;
}

body.page-guides .guides-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

body.page-guides .guides-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

body.page-guides .guides-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

body.page-guides .guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

body.page-guides .guide-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(18px);
  animation: guides-rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) calc(var(--i, 0) * 90ms + 280ms)
    forwards;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.3s ease,
    box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

body.page-guides .guide-card:hover {
  transform: translateY(-5px);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

body.page-guides .guide-card.is-hidden {
  display: none;
}

body.page-guides .guide-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 107, 255, 0.12);
  border: 1px solid rgba(155, 107, 255, 0.22);
  color: var(--violet-2);
}

body.page-guides .guide-icon svg {
  width: 18px;
  height: 18px;
}

body.page-guides .guide-cat {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-2);
}

body.page-guides .guide-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
}

body.page-guides .guide-card p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dim);
}

body.page-guides .guide-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

body.page-guides .guide-mins {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

body.page-guides .guide-read {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), letter-spacing 0.3s ease;
}

body.page-guides .guide-card:hover .guide-read {
  transform: translateX(3px);
}

body.page-guides .guides-empty {
  display: none;
  text-align: center;
  padding: 40px 16px;
  color: var(--text-dim);
  font-size: 0.98rem;
}

body.page-guides .guides-empty.is-visible {
  display: block;
}

@keyframes guides-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  body.page-guides .featured-guide {
    grid-template-columns: 1fr;
  }

  body.page-guides .featured-visual {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-guides .guides-hero,
  body.page-guides .guides-tools,
  body.page-guides .featured-guide,
  body.page-guides .guide-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.page-guides .keycap {
    animation: none !important;
  }

  body.page-guides .featured-guide:hover,
  body.page-guides .guide-card:hover {
    transform: none;
  }
}
