/* Guides — shared styles for index and show pages */
/* impeccable.style: PRODUCT register, dark-first with body.imp-light overrides */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body, 'Geist Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  color: #cbd5e1;
  background: #0a0e1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.imp-light { color: #334155; background: #faf9f7; }

a { color: #13B5EA; text-decoration: none; }
a:hover { color: #0078C8; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.guides-nav {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #111827;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
body.imp-light .guides-nav { background: rgba(250, 249, 247, 0.95); border-bottom-color: #e2e8f0; }

.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; filter: brightness(0) invert(1); }
body.imp-light .guides-nav-logo img { filter: none; }

.guides-nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.875rem; }
.guides-nav-links a { color: #94a3b8; font-weight: 500; transition: color 0.2s; }
.guides-nav-links a:hover, .guides-nav-links a.active { color: #13B5EA; }
body.imp-light .guides-nav-links a { color: #64748b; }
body.imp-light .guides-nav-links a:hover, body.imp-light .guides-nav-links a.active { color: #0078C8; }

.guides-nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ── Mode toggle ─────────────────────────────────────────────────────── */
.mode-toggle {
  background: none; border: none; color: #94a3b8; font-size: 1.125rem;
  cursor: pointer; width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.mode-toggle:hover { background: #111827; color: #faf9f7; }
body.imp-light .mode-toggle { color: #475569; }
body.imp-light .mode-toggle:hover { background: #e2e8f0; color: #0a0e1a; }

/* ── 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;
  cursor: pointer;
  border: none;
  min-height: 44px;
}
.btn-primary { background: #0078C8; color: #faf9f7; }
.btn-primary:hover { background: #13B5EA; color: #faf9f7; }
.btn-outline { background: transparent; border: 1.5px solid #1e293b; color: #cbd5e1; }
.btn-outline:hover { border-color: #13B5EA; color: #13B5EA; }
body.imp-light .btn-outline { border-color: #e2e8f0; color: #334155; }
body.imp-light .btn-outline:hover { border-color: #0078C8; color: #0078C8; }
.btn-ghost { background: transparent; color: #cbd5e1; }
.btn-ghost:hover { background: #111827; color: #faf9f7; }
body.imp-light .btn-ghost { color: #475569; }
body.imp-light .btn-ghost:hover { background: #f1f5f9; color: #0a0e1a; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.guides-hero {
  position: relative;
  padding: 5rem 2rem 4rem;
  text-align: center;
  color: #faf9f7;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guides-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.guides-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guides-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.6) 0%,
    rgba(10, 14, 26, 0.75) 50%,
    rgba(10, 14, 26, 0.9) 100%
  );
  z-index: 1;
}

.guides-hero-content {
  position: relative;
  z-index: 2;
}

.guides-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: #faf9f7;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.guides-hero p {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ── Category Jump Strip ──────────────────────────────────────────────── */
.category-strip {
  background: #111827;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 57px;
  z-index: 90;
}
body.imp-light .category-strip { background: #fff; border-bottom-color: #e2e8f0; }

.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: #94a3b8;
  border: 1px solid #1e293b;
  border-radius: 6px;
  transition: all 0.2s;
  background: #0a0e1a;
}
body.imp-light .category-strip a { color: #64748b; border-color: #e2e8f0; background: #f8fafc; }
.category-strip a:hover { color: #13B5EA; border-color: #13B5EA; background: rgba(0, 120, 200, 0.08); }
body.imp-light .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: #e2e8f0; }
body.imp-light .category-heading h2 { color: #1e293b; }

/* ── Card Grid ────────────────────────────────────────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.guide-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
body.imp-light .guide-card { background: #fff; border-color: #e2e8f0; }
.guide-card:hover {
  border-color: #13B5EA;
  box-shadow: 0 8px 30px rgba(0,120,200,0.12);
  transform: translateY(-2px);
  color: inherit;
}
.guide-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1e293b 0%, #0a0e1a 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.imp-light .guide-card-img { background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%); }
.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: #e2e8f0; }
body.imp-light .guide-card-body h3 { color: #1e293b; }
.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: #13B5EA; 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: #13B5EA; }
.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: #64748b; padding: 0.25rem 0.75rem; margin-bottom: 0.25rem; }
.sidebar-link { display: block; padding: 0.375rem 0.75rem; font-size: 0.8125rem; color: #94a3b8; border-radius: 6px; transition: all 0.15s; border-left: 2px solid transparent; }
body.imp-light .sidebar-link { color: #64748b; }
.sidebar-link:hover { color: #e2e8f0; background: #111827; }
body.imp-light .sidebar-link:hover { color: #1e293b; background: #f8fafc; }
.sidebar-link.active { color: #13B5EA; background: rgba(0, 120, 200, 0.08); font-weight: 600; border-left-color: #0078C8; }
body.imp-light .sidebar-link.active { color: #0078C8; background: #f0f7ff; }

/* Content */
.guide-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.01em; color: #e2e8f0; }
body.imp-light .guide-content h1 { color: #1e293b; }
.guide-screenshot { width: 100%; border-radius: 12px; border: 1px solid #1e293b; margin-bottom: 2rem; overflow: hidden; }
body.imp-light .guide-screenshot { border-color: #e2e8f0; }
.guide-screenshot img { width: 100%; display: block; }
.guide-screenshot-placeholder { background: linear-gradient(135deg, #1e293b 0%, #0a0e1a 100%); padding: 3rem; text-align: center; color: #64748b; font-size: 0.875rem; }
body.imp-light .guide-screenshot-placeholder { background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%); color: #94a3b8; }
.guide-section { margin-bottom: 2rem; }
.guide-section h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: #e2e8f0; }
body.imp-light .guide-section h2 { color: #1e293b; }
.guide-section p { font-size: 0.9375rem; color: #94a3b8; line-height: 1.7; }
body.imp-light .guide-section p { color: #475569; }
.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: #94a3b8; margin-bottom: 0.5rem; line-height: 1.5; }
body.imp-light .guide-section ul li { color: #475569; }
.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: rgba(0, 120, 200, 0.08); border: 1px solid #1e293b;
  border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
body.imp-light .guide-cta { background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%); border-color: transparent; }
.guide-cta p { font-size: 0.9375rem; font-weight: 500; color: #e2e8f0; margin: 0; }
body.imp-light .guide-cta p { color: #1e293b; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { background: #0a0e1a; padding: 4rem 2rem 2rem; color: #94a3b8; border-top: 1px solid #1e293b; }
.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: #faf9f7; 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: #64748b; text-decoration: none; font-size: 0.9375rem; transition: color 0.2s; }
.footer ul li a:hover { color: #faf9f7; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid #1e293b; 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 #1e293b; border-radius: 8px; padding: 1rem; }
  body.imp-light .guide-sidebar { border-color: #e2e8f0; }
}

@media (max-width: 768px) {
  .guides-nav-links { display: none; }
  .guides-hero { min-height: 200px; padding: 4rem 1.5rem 3rem; }
  .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; }
}
