/* ===== Shared Tutorial Styles — GENKAI GM Dashboard ===== */

/* Theme Variables */
:root {
  --bg: #1a1714;
  --bg-rgb: 26, 23, 20;
  --text: #e8e0d4;
  --accent: #c9a96e;
  --accent-rgb: 201, 169, 110;
  --accent-hover: #e0c48a;
  --btn-text: #1a1714;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s, color 0.5s;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; border-radius: 6px; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(var(--bg-rgb), 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
  transition: background-color 0.5s, border-color 0.5s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 800px; margin: 0 auto; padding: 0 1.5rem; height: 56px;
}
.nav-logo {
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.5px;
}
.nav-back {
  font-size: 0.85rem; color: var(--text); font-weight: 500;
}
.nav-back:hover { color: var(--accent); }

/* Article Container */
.article {
  max-width: 800px; margin: 0 auto; padding: 6rem 1.5rem 4rem;
}

/* Hero Header */
.article-header {
  margin-bottom: 3rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
}
.article-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem;
}
.article-title {
  font-size: 2rem; color: var(--text); margin-bottom: 0.6rem; font-weight: 700;
}
.article-subtitle {
  font-size: 1.1rem; color: var(--accent); font-style: italic; opacity: 0.85;
}

/* Headings */
h2 {
  font-size: 1.4rem; color: var(--text); margin: 2.5rem 0 1rem;
  padding-bottom: 0.3rem; border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}
h3 { font-size: 1.15rem; color: var(--accent); margin: 1.8rem 0 0.8rem; }

/* Paragraphs */
p { margin-bottom: 1rem; opacity: 0.9; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1rem 1rem 1rem 3.5rem; margin-bottom: 0.5rem;
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 6px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 1rem; top: 1rem;
  width: 1.6rem; height: 1.6rem; line-height: 1.6rem;
  text-align: center; font-size: 0.8rem; font-weight: 700;
  background: var(--accent); color: var(--btn-text); border-radius: 50%;
}
.steps li strong { color: var(--accent); }

/* Lists */
ul:not(.steps) { margin: 1rem 0 1rem 1.2rem; }
ul:not(.steps) li { margin-bottom: 0.4rem; }
ul:not(.steps) li::marker { color: var(--accent); }

/* Code */
code {
  background: rgba(var(--accent-rgb), 0.12);
  padding: 0.15rem 0.45rem; border-radius: 3px;
  font-size: 0.9em; font-family: 'Consolas', 'Monaco', monospace;
  color: var(--accent-hover);
}
pre {
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 6px; padding: 1.2rem; margin: 1.2rem 0;
  overflow-x: auto; font-size: 0.88rem; line-height: 1.6;
}
pre code { background: none; padding: 0; color: var(--text); }

/* Info/Tip Boxes */
.tip, .warning, .info {
  padding: 1rem 1.2rem; border-radius: 6px; margin: 1.5rem 0;
  font-size: 0.95rem;
}
.tip {
  background: rgba(106, 184, 106, 0.08);
  border-left: 3px solid #6ab86a;
}
.warning {
  background: rgba(216, 106, 106, 0.08);
  border-left: 3px solid #d86a6a;
}
.info {
  background: rgba(106, 159, 216, 0.08);
  border-left: 3px solid #6a9fd8;
}

/* Table */
table {
  width: 100%; border-collapse: collapse; margin: 1.2rem 0;
  font-size: 0.92rem;
}
th, td {
  padding: 0.6rem 0.8rem; text-align: left;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}
th { color: var(--accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Download Button */
.btn-download {
  display: inline-block; padding: 0.7rem 1.8rem;
  background: var(--accent); color: var(--btn-text);
  font-weight: 700; font-size: 0.95rem; border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}
.btn-download:hover { background: var(--accent-hover); color: var(--btn-text); transform: translateY(-2px); }

/* Related Guides */
.related {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}
.related h3 { margin-top: 0; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem; margin-top: 1rem;
}
.related-card {
  display: block; padding: 1rem;
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 6px; font-size: 0.9rem;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: rgba(var(--accent-rgb), 0.4); color: var(--text); }
.related-card strong { display: block; color: var(--accent); margin-bottom: 0.2rem; }

/* Footer */
footer {
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
  padding: 2rem 1.5rem; text-align: center;
  font-size: 0.85rem; opacity: 0.5;
  max-width: 800px; margin: 2rem auto 0;
}

/* Color Badges */
.color-badge {
  display: inline-block; width: 0.8em; height: 0.8em;
  border-radius: 50%; vertical-align: middle; margin-right: 0.3em;
}

/* Score Colors */
.score-neg2 { color: #d86a6a; font-weight: 700; }
.score-neg1 { color: #d8a06a; font-weight: 700; }
.score-0 { color: #888; font-weight: 700; }
.score-pos1 { color: #6ab86a; font-weight: 700; }
.score-pos2 { color: #4ade4a; font-weight: 700; }

/* Responsive */
@media (max-width: 600px) {
  .article { padding: 5rem 1rem 3rem; }
  .article-title { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .steps li { padding-left: 3rem; }
  .related-grid { grid-template-columns: 1fr; }
}
