/* Guides — shared styles for index and show pages */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #0078C8; text-decoration: none; }
a:hover { color: #005fa3; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.guides-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.guides-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guides-nav-logo img { height: 28px; }
.guides-nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.875rem; }
.guides-nav-links a { color: #555; font-weight: 500; }
.guides-nav-links a:hover, .guides-nav-links a.active { color: #0078C8; }
.guides-nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: #13B5EA; color: #fff; }
.btn-primary:hover { background: #0ea5d9; color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid #e2e8f0; color: #1a1a2e; }
.btn-outline:hover { border-color: #0078C8; color: #0078C8; }
.btn-ghost { background: transparent; color: #1a1a2e; }
.btn-ghost:hover { background: rgba(0,0,0,0.05); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.guides-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  color: #fff;
}
.guides-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.guides-hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Category Jump Strip ──────────────────────────────────────────────── */
.category-strip {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 57px;
  z-index: 90;
}
.category-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}
.category-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: #f8fafc;
}
.category-strip a:hover {
  color: #0078C8;
  border-color: #0078C8;
  background: #f0f7ff;
}
.category-strip a i { font-size: 0.875rem; }

/* ── Category Section ─────────────────────────────────────────────────── */
.guides-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.category-section {
  padding-top: 3rem;
}
.category-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.category-heading i {
  font-size: 1.5rem;
  color: #0078C8;
}
.category-heading h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
}

/* ── Card Grid ────────────────────────────────────────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.guide-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.guide-card:hover {
  border-color: #0078C8;
  box-shadow: 0 8px 30px rgba(0,120,200,0.08);
  transform: translateY(-2px);
  color: inherit;
}
.guide-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-card-icon {
  color: #0078C8;
  margin-right: 0.375rem;
  font-size: 1.125rem;
  vertical-align: -0.1em;
}
.guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.guide-card-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: #1a1a2e;
}
.guide-card-body p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}
.guide-card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0078C8;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.guide-card:hover .guide-card-link { gap: 0.5rem; }

/* ── Show Page: Two-column ────────────────────────────────────────────── */
.guide-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
}

/* Breadcrumb */
.guide-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}
.guide-breadcrumb a { color: #64748b; }
.guide-breadcrumb a:hover { color: #0078C8; }
.guide-breadcrumb span { margin: 0 0.375rem; }

/* Sidebar */
.guide-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.sidebar-category {
  margin-bottom: 1.25rem;
}
.sidebar-category-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.25rem;
}
.sidebar-link {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  color: #64748b;
  border-radius: 6px;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}
.sidebar-link:hover {
  color: #1a1a2e;
  background: #f8fafc;
}
.sidebar-link.active {
  color: #0078C8;
  background: #f0f7ff;
  font-weight: 600;
  border-left-color: #0078C8;
}

/* Content */
.guide-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.guide-screenshot {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 2rem;
  overflow: hidden;
}
.guide-screenshot img {
  width: 100%;
  display: block;
}
.guide-screenshot-placeholder {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  padding: 3rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}
.guide-section {
  margin-bottom: 2rem;
}
.guide-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1a1a2e;
}
.guide-section p {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
}
.guide-section ul {
  list-style: none;
  padding: 0;
}
.guide-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.guide-section ul li::before {
  content: '\2713';
  color: #50DCAA;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.guide-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.guide-cta p {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a2e;
  margin: 0;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { background: #0f172a; padding: 4rem 2rem 2rem; color: rgba(255,255,255,0.7); }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4,1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { margin-top: 1rem; font-size: 0.9375rem; line-height: 1.6; }
.footer-brand img { height: 28px; filter: brightness(0) invert(1); }
.footer h6 { color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9375rem; transition: color 0.2s ease; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.875rem; }

/* ── Mobile Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar {
    position: static;
    max-height: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .guides-nav-links { display: none; }
  .guides-hero h1 { font-size: 1.75rem; }
  .guides-hero p { font-size: 1rem; }
  .guides-grid { grid-template-columns: 1fr; }
  .guide-layout { padding: 1.5rem 1rem 3rem; gap: 1.5rem; }
  .guide-breadcrumb { padding: 1rem 1rem 0; }
  .guide-content h1 { font-size: 1.5rem; }
  .guide-cta { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .footer-brand { grid-column: 1 / -1; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .guides-container { padding: 0 1rem 3rem; }
  .category-strip-inner { padding: 0 1rem; }
}
