/* =====================================================================
   Inwardly Guide — Shared Article Stylesheet
   Dark Premium / Golden Hour — Canvas #1C1A24 · Indigo #7B6BAA · Gold #D4A854

   Used by every standalone guide article (/guide/<slug>/index.html) and
   the guide hub (/guide/index.html). This is the reusable template's
   single stylesheet — when creating a new article, copy an existing
   article's index.html, link this same file, and follow its class
   conventions (page-hero, prose, steps, bullets, callout, related-grid).
   ===================================================================== */

:root {
  --indigo: #7B6BAA;
  --indigo-light: #9B8EC4;
  --indigo-dark: #5B4A8A;
  --indigo-glow: rgba(123, 107, 170, 0.35);
  --gold: #D4A854;
  --gold-light: #E0B96E;
  --gold-glow: rgba(212, 168, 84, 0.25);

  --canvas: #1C1A24;
  --surface: rgba(37, 34, 48, 0.65);
  --surface-solid: #252230;
  --elevated: #2E2A3B;

  --text-primary: #F0EDF8;
  --text-secondary: #B0A9C4;
  --text-tertiary: #7A728E;
  --text-inverse: #FFFFFF;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(212, 168, 84, 0.30);
  --border-indigo: rgba(123, 107, 170, 0.30);

  --glass-bg: rgba(37, 34, 48, 0.60);
  --glass-blur: blur(24px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);

  --topbar-height: 64px;
  --content-max: 740px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 88px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--canvas);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }

/* =====================================================================
   Floating Orbs
   ===================================================================== */

.orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform; }

.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(91, 74, 138, 0.28) 0%, transparent 70%); top: -180px; left: -160px; filter: blur(60px); animation: orbFloat1 18s ease-in-out infinite; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(212, 168, 84, 0.18) 0%, transparent 70%); top: 10%; right: -140px; filter: blur(70px); animation: orbFloat2 22s ease-in-out infinite; }
.orb-3 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(123, 107, 170, 0.22) 0%, transparent 70%); top: 45%; left: 35%; filter: blur(80px); animation: orbFloat3 26s ease-in-out infinite; }

@keyframes orbFloat1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, 30px) scale(1.05); } 66% { transform: translate(-20px, 50px) scale(0.97); } }
@keyframes orbFloat2 { 0%, 100% { transform: translate(0, 0) scale(1); } 40% { transform: translate(-50px, 40px) scale(1.08); } 70% { transform: translate(30px, -30px) scale(0.95); } }
@keyframes orbFloat3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, -40px) scale(1.06); } }

/* =====================================================================
   Top Nav
   ===================================================================== */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  background: rgba(28, 26, 36, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.topbar-left { display: flex; align-items: center; gap: 16px; flex-shrink: 0; min-width: 0; }
.topbar-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-icon { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; box-shadow: 0 2px 10px rgba(91, 74, 138, 0.45); }
.topbar-wordmark { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.3px; }
.topbar-divider { width: 1px; height: 20px; background: var(--border-medium); flex-shrink: 0; }
.topbar-label { font-size: 13px; font-weight: 500; color: var(--text-tertiary); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.topbar-link { font-size: 13px; font-weight: 500; color: var(--text-tertiary); transition: color 0.2s; white-space: nowrap; }
.topbar-link:hover { color: var(--text-primary); }

/* =====================================================================
   Main / Layout
   ===================================================================== */

.main { padding: calc(var(--topbar-height) + 48px) 24px 100px; }
.content-wrap { max-width: var(--content-max); margin: 0 auto; }
.content-wrap-wide { max-width: 980px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-tertiary); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-tertiary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--indigo-light); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current { color: var(--text-secondary); }

/* =====================================================================
   Page Hero
   ===================================================================== */

.page-hero { margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border-subtle); }

.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 168, 84, 0.10);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.page-hero p { font-size: 16px; color: var(--text-secondary); max-width: 620px; line-height: 1.7; }

/* =====================================================================
   Article Sections
   ===================================================================== */

.article-section { margin-bottom: 48px; scroll-margin-top: 88px; }

.article-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-section h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

/* =====================================================================
   Content Elements
   ===================================================================== */

.prose p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.78; margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }

/* Numbered steps */
.steps { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(123, 107, 170, 0.18); border: 1px solid var(--border-indigo);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--indigo-light); margin-top: 1px;
}
.step-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; padding-top: 3px; }
.step-text strong { color: var(--text-primary); font-weight: 600; }

/* Bullet list */
.bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.bullets li::before { content: ''; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--indigo); margin-top: 9px; }

/* Callout boxes */
.callout { border-radius: var(--radius-md); padding: 16px 18px; margin: 18px 0; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.65; }
.callout-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.callout-text { flex: 1; }
.callout-text strong { display: block; margin-bottom: 4px; font-weight: 600; }

.callout.tip { background: rgba(123, 107, 170, 0.10); border: 1px solid var(--border-indigo); color: var(--text-secondary); }
.callout.tip strong { color: var(--indigo-light); }

.callout.warn { background: rgba(212, 168, 84, 0.08); border: 1px solid var(--border-gold); color: var(--text-secondary); }
.callout.warn strong { color: var(--gold-light); }

.callout.premium { background: linear-gradient(135deg, rgba(123, 107, 170, 0.12), rgba(212, 168, 84, 0.06)); border: 1px solid rgba(212, 168, 84, 0.22); color: var(--text-secondary); }
.callout.premium strong { color: var(--gold); }

.callout.danger { background: rgba(200, 80, 80, 0.08); border: 1px solid rgba(200, 80, 80, 0.22); color: var(--text-secondary); }
.callout.danger strong { color: #E08080; }

/* Premium badge */
.badge-premium {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, rgba(91, 74, 138, 0.25), rgba(212, 168, 84, 0.15));
  border: 1px solid rgba(212, 168, 84, 0.35); border-radius: 100px; padding: 2px 9px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: var(--gold);
  vertical-align: middle;
}

/* Info grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.info-card { background: rgba(37, 34, 48, 0.50); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; }
.info-card-icon { font-size: 22px; margin-bottom: 8px; }
.info-card-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.info-card-desc { font-size: 12.5px; color: var(--text-tertiary); line-height: 1.55; }

/* Feature table */
.feature-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.feature-table th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); border-bottom: 1px solid var(--border-medium); }
.feature-table td { padding: 11px 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); vertical-align: top; line-height: 1.5; }
.feature-table tr:last-child td { border-bottom: none; }
.feature-table .check-free { color: var(--text-secondary); }
.feature-table .check-premium { color: var(--gold); font-weight: 600; }
.feature-table .check-no { color: var(--text-tertiary); }
.feature-table th:not(:first-child), .feature-table td:not(:first-child) { text-align: center; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Code */
code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12.5px; background: rgba(123, 107, 170, 0.12); border: 1px solid var(--border-indigo); border-radius: 5px; padding: 1px 7px; color: var(--indigo-light); }

/* Divider */
.divider { height: 1px; background: var(--border-subtle); margin: 40px 0; }

/* Inline text link */
.text-link { color: var(--indigo-light); text-decoration: underline; }

/* =====================================================================
   Mood scale / tab bar / template pills (product visual references)
   ===================================================================== */

.mood-scale { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.mood-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(37, 34, 48, 0.60); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 10px 14px; min-width: 70px; flex: 1; }
.mood-chip-emoji { font-size: 20px; }
.mood-chip-dot { width: 8px; height: 8px; border-radius: 50%; margin: 2px 0; }
.mood-chip-label { font-size: 11px; font-weight: 500; color: var(--text-tertiary); }

.tab-bar-demo { display: flex; background: rgba(37, 34, 48, 0.75); border: 1px solid var(--border-medium); border-radius: 20px; padding: 8px 12px; gap: 4px; align-items: center; justify-content: space-around; margin: 18px 0; max-width: 340px; }
.tab-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 14px; border-radius: 12px; transition: background 0.18s; cursor: default; }
.tab-item.active { background: rgba(123, 107, 170, 0.15); }
.tab-item-icon { font-size: 18px; }
.tab-item-label { font-size: 10px; font-weight: 500; color: var(--text-tertiary); }
.tab-item.active .tab-item-label { color: var(--indigo-light); }
.tab-compose { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--indigo-dark), var(--indigo)); display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 4px 20px rgba(91, 74, 138, 0.45); flex-shrink: 0; }

.template-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.template-pill { background: rgba(37, 34, 48, 0.60); border: 1px solid var(--border-subtle); border-radius: 100px; padding: 5px 14px; font-size: 12.5px; color: var(--text-secondary); }
.template-pill.system { border-color: var(--border-indigo); color: var(--indigo-light); background: rgba(123, 107, 170, 0.08); }

/* =====================================================================
   Related Articles
   ===================================================================== */

.related-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border-subtle); }
.related-title { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.related-card {
  display: block; background: rgba(37, 34, 48, 0.50); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 16px 18px; transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.related-card:hover { border-color: var(--border-indigo); background: rgba(123, 107, 170, 0.08); transform: translateY(-2px); }
.related-card-title { font-size: 13.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.related-card-desc { font-size: 12px; color: var(--text-tertiary); line-height: 1.5; }

/* =====================================================================
   Guide Hub — topic grid
   ===================================================================== */

.guide-category { margin-bottom: 44px; }
.guide-category-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.guide-card {
  display: flex; flex-direction: column; gap: 10px; background: var(--surface);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 22px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.2s, transform 0.2s;
}
.guide-card:hover { border-color: var(--border-indigo); transform: translateY(-2px); }
.guide-card-top { display: flex; align-items: center; gap: 12px; }
.guide-card-icon {
  width: 40px; height: 40px; border-radius: 11px; background: rgba(123, 107, 170, 0.12);
  border: 1px solid var(--border-indigo); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.guide-card-title { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.guide-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* =====================================================================
   Footer
   ===================================================================== */

.guide-footer { text-align: center; padding: 32px 0 0; }
.guide-footer img { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; box-shadow: 0 4px 20px rgba(91,74,138,0.40); }
.guide-footer-word { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; color: var(--text-primary); margin-bottom: 6px; }
.guide-footer-tag { font-size: 13px; color: var(--text-tertiary); margin-bottom: 20px; }
.guide-footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.guide-footer-links a { font-size: 13px; color: var(--text-tertiary); transition: color 0.2s; }
.guide-footer-links a:hover { color: var(--text-secondary); }
.guide-footer-copy { font-size: 12px; color: var(--text-tertiary); margin-top: 24px; opacity: 0.6; }

/* =====================================================================
   Back to Top
   ===================================================================== */

.back-to-top {
  position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(37, 34, 48, 0.85); border: 1px solid var(--border-medium);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 16px; color: var(--text-secondary); z-index: 150;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, color 0.2s, border-color 0.2s;
  pointer-events: none; text-decoration: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { color: var(--indigo-light); border-color: var(--border-indigo); }

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 900px) {
  .main { padding: calc(var(--topbar-height) + 32px) 20px 80px; }
  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 80px; }
  .topbar-label { display: none; }
  .topbar-divider { display: none; }
  .page-hero h1 { font-size: 28px; }
  .article-section h2 { font-size: 20px; }
  .info-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
}
