/* ========================================
   GUIDE PAGES (UGC & Partners) - Styles
   ======================================== */

/* ===== LOGIN REQUIRED ===== */
.login-required {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #F8F7FF 0%, #EDE8FF 60%, #FFF0F5 100%);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  text-align: center;
}

.lr-bg { position: absolute; inset: 0; pointer-events: none; }
.lr-circle { position: absolute; border-radius: 50%; }
.lr-c1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(107,70,255,0.1), transparent); top: -200px; left: -100px; }
.lr-c2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,107,157,0.08), transparent); bottom: -100px; right: -100px; }

.lr-content {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto; padding: 60px 24px;
}

.lr-icon {
  width: 80px; height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 2rem;
  margin: 0 auto 24px;
  box-shadow: 0 12px 32px rgba(107,70,255,0.3);
}

.lr-content .section-title { margin-bottom: 16px; }
.lr-content .section-subtitle { margin: 0 auto 40px; }

.lr-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.lr-preview-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  cursor: default;
}
.lr-preview-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(107,70,255,0.2); }
.lr-preview-card i { font-size: 1.5rem; color: var(--primary); }
.lr-preview-card span { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

/* ===== GUIDE HERO ===== */
.guide-hero {
  padding: 120px 0 64px;
  background: linear-gradient(135deg, #F8F7FF 0%, #EDE8FF 100%);
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(107,70,255,0.1), transparent);
  border-radius: 50%;
}

.guide-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.guide-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.guide-meta span i { color: var(--primary); }

.guide-book {
  width: 180px; height: 240px;
  position: relative;
}
.book-cover {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 4px 16px 16px 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  box-shadow: -8px 8px 32px rgba(107,70,255,0.3), 4px 0 0 rgba(0,0,0,0.1);
  position: relative;
}
.book-cover::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 16px; background: rgba(0,0,0,0.15);
  border-radius: 4px 0 0 4px;
}
.book-icon { font-size: 2.5rem; }
.book-title { color: white; font-weight: 800; font-size: 1rem; }
.book-sub { color: rgba(255,255,255,0.7); font-size: 0.75rem; }

/* ===== GUIDE LAYOUT ===== */
.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* ===== SIDEBAR ===== */
.guide-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }

.toc-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1.5px solid var(--border);
  margin-bottom: 20px;
}
.toc-card h4 {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

.toc-nav { display: flex; flex-direction: column; gap: 2px; }
.toc-link {
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--text-secondary);
  transition: var(--transition); font-weight: 500;
  display: block;
}
.toc-link:hover { color: var(--primary); background: rgba(107,70,255,0.06); }
.toc-link.active { color: var(--primary); background: rgba(107,70,255,0.08); font-weight: 600; }

.progress-card {
  background: var(--bg-white); border-radius: var(--radius-lg); padding: 24px;
  border: 1.5px solid var(--border);
}
.progress-card h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 12px; }
.progress-bar-wrap { height: 8px; background: var(--bg-light); border-radius: 4px; margin-bottom: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 4px; transition: width 0.5s ease; }
.progress-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== GUIDE CONTENT ===== */
.guide-chapter {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  margin-bottom: 28px;
}

.chapter-header {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #F8F7FF, white);
}

.chapter-num {
  font-size: 2rem; font-weight: 900; color: var(--primary);
  opacity: 0.3; line-height: 1; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.chapter-header h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.chapter-desc { color: var(--text-secondary); font-size: 0.9rem; }

.chapter-body { padding: 32px; }
.chapter-body h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 16px; color: var(--text-primary); }
.chapter-body h3:first-child { margin-top: 0; }

.guide-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.guide-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }
.guide-list li::before { content: '✓'; color: var(--accent-green); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

.guide-highlight {
  display: flex; gap: 16px;
  background: rgba(107,70,255,0.05); border: 1.5px solid rgba(107,70,255,0.15);
  border-radius: var(--radius-md); padding: 20px; margin-bottom: 24px;
}
.guide-highlight > i { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.guide-highlight strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.guide-highlight p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

.guide-callout {
  display: flex; gap: 14px;
  border-radius: var(--radius-md); padding: 18px 20px; margin: 20px 0;
}
.guide-callout.info { background: rgba(0,212,255,0.06); border: 1.5px solid rgba(0,212,255,0.2); }
.guide-callout.info i { color: #0099BB; flex-shrink: 0; margin-top: 2px; }
.guide-callout.warning { background: rgba(255,213,0,0.08); border: 1.5px solid rgba(255,213,0,0.25); }
.guide-callout.warning i { color: #C9A800; flex-shrink: 0; margin-top: 2px; }
.guide-callout p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ===== STEPS ===== */
.guide-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.guide-step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-content h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== CODE BLOCK ===== */
.code-block {
  background: #1A1A2E;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 20px 0;
}
.code-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-header span { color: rgba(255,255,255,0.5); font-size: 0.82rem; font-weight: 500; }
.copy-btn {
  padding: 5px 14px; border-radius: var(--radius-full);
  background: rgba(107,70,255,0.3); color: rgba(255,255,255,0.8);
  font-size: 0.78rem; font-weight: 600; cursor: pointer; border: none;
  transition: var(--transition); font-family: inherit;
}
.copy-btn:hover { background: var(--primary); color: white; }
.code-block pre {
  padding: 20px; color: rgba(255,255,255,0.85); font-size: 0.85rem;
  line-height: 1.8; overflow-x: auto; font-family: 'Monaco', 'Menlo', monospace;
  white-space: pre-wrap;
}

/* ===== TIP CARDS ===== */
.guide-tip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.guide-tip-card {
  background: var(--bg-light); border-radius: var(--radius-md);
  padding: 24px; border: 1.5px solid var(--border); transition: var(--transition);
}
.guide-tip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(107,70,255,0.2); }
.tip-icon { font-size: 1.8rem; margin-bottom: 12px; }
.guide-tip-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.guide-tip-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== LOCKED CHAPTER ===== */
.locked-chapter { position: relative; min-height: 200px; }
.locked-overlay {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 32px; text-align: center;
  background: linear-gradient(135deg, #F8F7FF, #F0EEFF);
}
.locked-overlay > i { font-size: 2rem; color: var(--primary); opacity: 0.5; margin-bottom: 16px; }
.locked-overlay h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.locked-overlay p { color: var(--text-secondary); font-size: 0.9rem; max-width: 480px; margin: 0 auto 24px; }

.locked-previews { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.lp-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-full);
  background: var(--bg-white); border: 1.5px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
}
.lp-item i { color: var(--primary); }

/* ===== POLICY CARDS (Partners) ===== */
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 32px; }
.policy-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  padding: 28px; border: 1.5px solid var(--border); transition: var(--transition);
}
.policy-card:hover { border-color: rgba(107,70,255,0.2); box-shadow: var(--shadow-sm); }
.policy-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(107,70,255,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.policy-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.policy-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== ADMIN GUIDE ===== */
.admin-steps { display: flex; flex-direction: column; gap: 24px; }
.admin-step {
  background: var(--bg-white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); overflow: hidden;
}
.admin-step-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; background: var(--bg-light);
}
.admin-step-num {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--primary); color: white;
  font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-step-header h4 { font-size: 0.95rem; font-weight: 700; margin: 0; }
.admin-step-body { padding: 20px 24px; }
.admin-step-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== PARTNER BADGE ===== */
.partner-badge-card {
  background: linear-gradient(135deg, rgba(38,208,124,0.08), rgba(0,153,187,0.06));
  border: 1.5px solid rgba(38,208,124,0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}
.pb-icon { font-size: 1.8rem; color: #26D07C; margin-bottom: 8px; }
.pb-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.pb-desc { font-size: 0.78rem; color: var(--text-muted); }

/* ===== TIER TABLE ===== */
.tier-table {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border);
  margin: 16px 0;
}
.tier-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  padding: 14px 20px; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--border);
}
.tier-row:last-child { border-bottom: none; }
.tier-header { background: var(--bg-light); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.tier-row:not(.tier-header) { font-size: 0.88rem; color: var(--text-secondary); }
.tier-badge { font-weight: 600; color: var(--text-primary); font-size: 0.88rem; }

/* ===== SUPPORT CARDS ===== */
.support-channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.support-card {
  background: var(--bg-light); border-radius: var(--radius-md);
  padding: 24px; border: 1.5px solid var(--border); transition: var(--transition);
}
.support-card:hover { border-color: rgba(107,70,255,0.2); box-shadow: var(--shadow-sm); }
.support-card > i { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.support-card h4 { font-weight: 700; margin-bottom: 8px; }
.support-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .guide-layout { grid-template-columns: 240px 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .guide-hero-inner { grid-template-columns: 1fr; }
  .guide-book { display: none; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }
  .lr-preview { grid-template-columns: repeat(2, 1fr); }
  .guide-tip-grid { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
  .chapter-body { padding: 24px; }
  .chapter-header { padding: 24px; }
}
