/* ===========================
   GUIDE PAGES
=========================== */

.guide-page {
  background: var(--bg-soft);
  min-height: 100vh;
  padding: 48px 0 80px;
}

.guide-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ---- Guide hero ---- */
.guide-hero {
  margin-bottom: 32px;
}

.guide-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.guide-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.guide-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Progress ---- */
.progress-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.progress-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.progress-track {
  background: var(--border);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  background: var(--accent);
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Guide items ---- */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 20px 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.2s;
  user-select: none;
}

.guide-item:hover {
  border-color: #ffc4b3;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.guide-item.done {
  background: #f6fef9;
  border-color: #a7f3d0;
}

/* Checkbox */
.check-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s;
  pointer-events: none;
}

.guide-item.done .check-btn {
  background: #10b981;
  border-color: #10b981;
}

.check-icon {
  font-size: 13px;
  color: transparent;
  transition: color 0.15s;
}

.guide-item.done .check-icon {
  color: #fff;
}

/* Content */
.guide-content {
  flex: 1;
  min-width: 0;
}

.guide-step {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.guide-item.done .guide-step {
  color: #10b981;
}

.guide-content h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color 0.15s;
}

.guide-item.done .guide-content h3 {
  color: #6b7280;
}

.guide-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.guide-item.done .guide-content p {
  color: #9ca3af;
}

.guide-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.guide-link:hover {
  text-decoration: underline;
}

.guide-item.done .guide-link {
  color: #9ca3af;
}

/* ---- Completion ---- */
.guide-complete {
  display: none;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
  border: 2px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-top: 16px;
  animation: fadeSlideIn 0.4s ease;
}

.guide-complete.visible {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.guide-complete-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.guide-complete h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 8px;
}

.guide-complete p {
  color: #047857;
  font-size: 0.95rem;
  line-height: 1.6;
}

.guide-complete .btn {
  margin-top: 20px;
}

/* ---- Reset link ---- */
.guide-reset {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.guide-reset:hover {
  color: var(--accent);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .guide-page {
    padding: 32px 0 64px;
  }

  .guide-item {
    padding: 16px 16px 16px 14px;
  }
}
