/*
 * Onimusha Strats — New Design Theme
 * Based on the new homepage design system
 * Dark fantasy samurai: blood crimson + imperial gold + jade + spirit blue
 */

:root {
  /* === Brand Primary Scale (Blood Crimson) === */
  --om-crimson: #8B1A1A;
  --om-crimson-light: #B52828;
  --om-crimson-dark: #6B1010;
  --om-crimson-muted: rgba(139, 26, 26, 0.15);
  --om-crimson-glow: rgba(181, 40, 40, 0.4);

  /* === Accent Scale (Imperial Gold) === */
  --om-gold: #C9A84C;
  --om-gold-light: #DFC06A;
  --om-gold-dark: #A88A30;
  --om-gold-muted: rgba(201, 168, 76, 0.15);
  --om-gold-glow: rgba(201, 168, 76, 0.3);

  /* === Secondary Accent (Jade Green) === */
  --om-jade: #2D8B6B;
  --om-jade-light: #3DAA85;
  --om-jade-dark: #1E6B50;
  --om-jade-muted: rgba(45, 139, 107, 0.12);

  /* === Spirit Blue === */
  --om-spirit: #4A6FA5;
  --om-spirit-light: #5E88C0;
  --om-spirit-muted: rgba(74, 111, 165, 0.12);

  /* === Neutral Scale === */
  --om-bg: #080808;
  --om-bg-elevated: #0E0E0E;
  --om-surface: #151515;
  --om-surface-2: #1C1C1C;
  --om-surface-hover: #252525;

  /* === Text Scale === */
  --om-ink: #E8E0D4;
  --om-ink-secondary: #A89E90;
  --om-ink-tertiary: #6E655A;
  --om-ink-muted: #3E3830;

  /* === Divider / Border === */
  --om-line: rgba(232, 224, 212, 0.06);
  --om-border: rgba(232, 224, 212, 0.10);

  /* === State Colors === */
  --om-state-success: #3D8B4F;
  --om-state-warning: #C4851C;
  --om-state-error: #C43C3C;
  --om-state-info: #4A7FB5;

  /* === Shadows === */
  --om-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
  --om-shadow-float: 0 8px 24px -6px rgba(0, 0, 0, 0.7);
  --om-shadow-overlay: 0 24px 60px -16px rgba(0, 0, 0, 0.85);
  --om-shadow-crimson: 0 0 20px rgba(139, 26, 26, 0.2);
  --om-shadow-gold: 0 0 20px rgba(201, 168, 76, 0.15);

  /* === Radius === */
  --om-radius-sm: 4px;
  --om-radius-md: 8px;
  --om-radius-lg: 12px;
  --om-radius-full: 9999px;

  /* === Spacing === */
  --om-space-1: 4px;
  --om-space-2: 8px;
  --om-space-3: 12px;
  --om-space-4: 16px;
  --om-space-5: 24px;
  --om-space-6: 32px;
  --om-space-7: 48px;
  --om-space-8: 80px;
  --om-space-9: 120px;

  /* === Typography === */
  --om-font-display: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --om-font-body: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --om-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* === Article Page Styles === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--om-font-body);
  background: var(--om-bg);
  color: var(--om-ink);
  line-height: 1.6;
  padding-top: 64px;
}

a {
  color: var(--om-crimson-light);
  text-decoration: none;
  transition: color 160ms;
}
a:hover {
  text-decoration: underline;
  color: var(--om-gold-light);
}

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

/* === Navbar === */
.om-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--om-border);
}

.om-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.om-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.om-logo-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.om-logo-text-gold {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--om-gold);
  font-family: var(--om-font-display);
}

.om-logo-text-ink {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--om-ink);
  font-family: var(--om-font-display);
}

.om-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.om-nav-link {
  position: relative;
  color: var(--om-ink-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  transition: color 200ms;
}

.om-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--om-crimson-light);
  transition: width 250ms cubic-bezier(.2,.8,.2,1);
  border-radius: 1px;
}

.om-nav-link:hover {
  color: var(--om-ink);
  text-decoration: none;
}

.om-nav-link:hover::after {
  width: 100%;
}

.om-crimson-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--om-crimson), transparent);
}

/* === Mobile Nav === */
@media (max-width: 768px) {
  .om-nav-links {
    display: none;
  }
}

/* === Article Header === */
.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--om-border);
  margin-bottom: 40px;
}

.article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--om-crimson-muted);
  color: var(--om-crimson-light);
  border-radius: var(--om-radius-full);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}

.article-header h1 {
  font-family: var(--om-font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--om-ink);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-meta {
  color: var(--om-ink-tertiary);
  font-size: 14px;
  margin-bottom: 20px;
}

.article-summary {
  background: var(--om-surface);
  border-left: 4px solid var(--om-crimson);
  padding: 20px 24px;
  border-radius: 0 var(--om-radius-md) var(--om-radius-md) 0;
  margin-bottom: 32px;
}

.article-summary p {
  color: var(--om-ink-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* === Article Content === */
.article-content h2 {
  font-family: var(--om-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--om-ink);
  margin: 48px 0 20px;
  letter-spacing: -0.015em;
}

.article-content h3 {
  font-family: var(--om-font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--om-ink);
  margin: 32px 0 16px;
  letter-spacing: -0.01em;
}

.article-content p {
  color: var(--om-ink-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 24px;
  color: var(--om-ink-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: var(--om-ink);
  font-weight: 600;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.article-content th {
  background: var(--om-surface);
  color: var(--om-ink);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--om-border);
}

.article-content td {
  padding: 12px 16px;
  border: 1px solid var(--om-border);
  color: var(--om-ink-secondary);
}

.article-content tr:nth-child(even) {
  background: var(--om-bg-elevated);
}

/* === Tip / Warning Boxes === */
.tip-box {
  background: var(--om-surface);
  border: 1px solid var(--om-border);
  border-radius: var(--om-radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
}

.tip-box-title {
  font-weight: 600;
  color: var(--om-gold-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-box p {
  margin: 0;
  color: var(--om-ink-secondary);
  font-size: 15px;
}

.warning-box {
  background: rgba(196, 60, 60, 0.1);
  border: 1px solid rgba(196, 60, 60, 0.3);
  border-radius: var(--om-radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
}

.warning-box-title {
  font-weight: 600;
  color: var(--om-state-error);
  margin-bottom: 8px;
}

/* === Related Guides === */
.related-guides {
  background: var(--om-surface);
  border: 1px solid var(--om-border);
  border-radius: var(--om-radius-lg);
  padding: 24px;
  margin-top: 60px;
}

.related-guides h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--om-ink);
}

.related-guides ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-guides li {
  margin-bottom: 10px;
}

.related-guides a {
  color: var(--om-crimson-light);
  font-size: 15px;
  text-decoration: none;
  transition: color 160ms;
}

.related-guides a:hover {
  color: var(--om-gold-light);
}

/* === Footer === */
.om-footer {
  padding: 48px 24px;
  border-top: 2px solid transparent;
  background-image: linear-gradient(var(--om-bg), var(--om-bg)), linear-gradient(90deg, transparent, var(--om-gold), transparent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.om-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.om-footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.om-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .om-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.om-footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  color: var(--om-ink);
}

.om-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.om-footer-col a {
  color: var(--om-ink-tertiary);
  font-size: 13px;
  text-decoration: none;
  transition: color 200ms;
}

.om-footer-col a:hover {
  color: var(--om-ink);
  text-decoration: none;
}

.om-gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--om-gold) 30%, var(--om-gold) 70%, transparent 100%);
  opacity: 0.25;
  margin-bottom: 24px;
}

.om-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .om-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.om-footer-copy {
  color: var(--om-ink-tertiary);
  font-size: 12px;
}

.om-footer-back {
  color: var(--om-ink-tertiary);
  font-size: 12px;
  text-decoration: none;
  transition: color 200ms;
}

.om-footer-back:hover {
  color: var(--om-gold);
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
