/* Idols of Ash Guide - Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #080806; color: #ccc5b9; line-height: 1.7;
}
a { color: #c4760a; text-decoration: none; transition: color 0.2s; }
a:hover { color: #e09020; }
strong { color: #c4b99a; }
kbd {
  display: inline-block; background: #1a1510; border: 1px solid #2a2218;
  border-radius: 3px; padding: 1px 7px; font-family: inherit;
  font-size: 13px; color: #c4b99a;
}

/* Header */
.header {
  background: linear-gradient(180deg, #0e0c0a 0%, #0a0908 100%);
  border-bottom: 1px solid #1a1714; padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 20px; font-weight: 700; color: #e8e0d4; letter-spacing: 0.5px; }
.logo span { color: #b43c0a; }
nav { display: flex; gap: 6px; }
nav a {
  color: #7a7268; padding: 4px 12px; font-size: 14px;
  letter-spacing: 0.3px; border-radius: 4px; transition: color 0.2s, background 0.2s;
}
nav a:hover { color: #e8e0d4; background: rgba(255,255,255,0.03); }
nav a.active { color: #e8e0d4; }

/* Hero (homepage) */
.hero-banner {
  position: relative; width: 100%; max-height: 360px; overflow: hidden;
  border-bottom: 1px solid #1a1510;
}
.hero-banner img {
  width: 100%; height: 360px; object-fit: cover; display: block;
  filter: brightness(0.5);
}
.hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 20px 30px;
  background: linear-gradient(transparent, rgba(8,8,6,0.95));
}
.hero-overlay h1 {
  font-size: 36px; font-weight: 700; color: #e8e0d4;
  letter-spacing: -0.5px; line-height: 1.2; max-width: 1100px; margin: 0 auto;
}
.hero-overlay .tagline {
  font-size: 16px; color: #948e84; max-width: 1100px; margin: 6px auto 0;
}

/* Content */
.content { max-width: 1100px; margin: 0 auto; padding: 28px 20px 48px; }
.grid-2col { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.content-narrow { max-width: 900px; margin: 0 auto; padding: 32px 20px 48px; }

/* Breadcrumb */
.breadcrumb { color: #4a443c; font-size: 14px; margin-bottom: 20px; }
.breadcrumb a { color: #7a7268; }
.breadcrumb a:hover { color: #b8a88a; }

/* Typography */
h1 { font-size: 28px; color: #e8e0d4; margin-bottom: 10px; letter-spacing: -0.3px; line-height: 1.3; }
h2 {
  font-size: 22px; color: #e8e0d4;
  margin: 32px 0 14px; padding-top: 20px;
  border-top: 1px solid #1a1510; letter-spacing: -0.2px;
}
h2:first-child, .no-border { border-top: none; padding-top: 0; }
h3 { font-size: 18px; color: #b8a88a; margin: 22px 0 8px; }
p { margin-bottom: 14px; color: #948e84; }
ul, ol { margin: 0 0 14px 24px; color: #948e84; }
li { margin-bottom: 6px; }
.lead { color: #7a7268; font-size: 15px; margin-bottom: 24px; }

/* Article images */
.article-img {
  width: 100%; height: auto; border-radius: 6px; margin: 16px 0;
  border: 1px solid #1a1510; display: block;
  aspect-ratio: 16 / 9; object-fit: cover;
}
.img-caption {
  font-size: 13px; color: #5e564c; font-style: italic;
  margin: -10px 0 18px; padding: 0 4px;
}

/* Controls Table */
.controls-table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; }
.controls-table th,
.controls-table td { padding: 10px 14px; border: 1px solid #1a1510; text-align: left; }
.controls-table th {
  background: #120f0b; color: #c4b99a; font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px;
}
.controls-table td { color: #948e84; font-size: 14px; }
.controls-table tr:nth-child(even) td { background: #0c0a08; }
.controls-table tr:hover td { background: #14100c; transition: background 0.15s; }

/* Sidebar */
.sidebar-box {
  background: linear-gradient(180deg, #0e0c0a 0%, #0a0908 100%);
  border: 1px solid #1a1510; border-radius: 6px;
  padding: 20px; margin-bottom: 20px;
}
.sidebar-box h3 {
  font-size: 13px; color: #7a7268; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 1.2px;
}
.sidebar-box p { font-size: 14px; color: #7a7268; margin-bottom: 8px; }
.sidebar-box p strong { color: #948e84; }
.info-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #12100d; }
.info-row:last-child { border-bottom: none; }
.info-label { color: #7a7268; font-size: 13px; }
.info-value { color: #c4b99a; font-size: 13px; font-weight: 500; }
.sidebar-box .btn {
  display: block; text-align: center; padding: 11px;
  background: linear-gradient(180deg, #a83a08, #8b2500);
  color: #e8e0d4; border-radius: 4px; font-weight: 600;
  margin-top: 12px; letter-spacing: 0.3px; transition: all 0.2s;
}
.sidebar-box .btn:hover { background: linear-gradient(180deg, #c44a0a, #a83a08); }
.sidebar-box .btn-secondary {
  background: transparent; border: 1px solid #2a1e12; color: #c4760a;
}
.sidebar-box .btn-secondary:hover { background: rgba(180,60,10,0.08); border-color: #3d2a18; }
.sidebar-links a { display: block; padding: 6px 0; color: #c4760a; font-size: 14px; }
.sidebar-links a:hover { color: #e09020; }

.tag {
  display: inline-block; background: #120f0b; border: 1px solid #1a1510;
  padding: 4px 10px; border-radius: 3px;
  font-size: 12px; color: #7a7268; margin: 3px 4px 3px 0;
  transition: border-color 0.2s;
}
.tag:hover { border-color: #3d2a18; color: #948e84; }

/* Guide directory (homepage) */
.guide-directory {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 12px 0;
}
.guide-link {
  display: block; padding: 14px 16px;
  background: #0c0a08; border: 1px solid #1a1510; border-radius: 4px;
  color: #c4760a; font-size: 14px; font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.guide-link:hover { border-color: #3d2a18; background: #120f0b; color: #e09020; }
.guide-link-title { display: block; color: #c4b99a; font-weight: 600; margin-bottom: 2px; }
.guide-link-desc { display: block; font-size: 12px; color: #5e564c; font-weight: 400; }

/* Tip / Warning / Spoiler boxes */
.tip-box {
  background: linear-gradient(90deg, #140e08 0%, #0e0c0a 100%);
  border-left: 3px solid #c4760a; padding: 14px 18px; margin: 20px 0;
  border-radius: 0 4px 4px 0;
}
.tip-box strong {
  color: #c4760a; display: block; margin-bottom: 4px;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.tip-box p { color: #948e84; margin-bottom: 0; }

.warn-box {
  background: linear-gradient(90deg, #14080a 0%, #0e0c0a 100%);
  border-left: 3px solid #b43c0a; padding: 14px 18px; margin: 20px 0;
  border-radius: 0 4px 4px 0;
}
.warn-box strong {
  color: #b43c0a; display: block; margin-bottom: 4px;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.warn-box p { color: #948e84; margin-bottom: 0; }

.spoiler-box {
  background: linear-gradient(90deg, #0e0a14 0%, #0e0c0a 100%);
  border-left: 3px solid #6a4a8a; padding: 14px 18px; margin: 20px 0;
  border-radius: 0 4px 4px 0;
}
.spoiler-box strong {
  color: #6a4a8a; display: block; margin-bottom: 4px;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.spoiler-box p { color: #948e84; margin-bottom: 0; }
.spoiler-content { filter: blur(5px); transition: filter 0.3s; cursor: pointer; user-select: none; }
.spoiler-content:hover, .spoiler-content.revealed { filter: none; user-select: auto; }

/* FAQ */
.faq-item { margin-bottom: 22px; }
.faq-item h3 {
  font-size: 16px; color: #c4b99a; margin-bottom: 6px;
  padding-left: 16px; border-left: 2px solid #b43c0a;
}
.faq-item p { color: #948e84; margin-bottom: 0; padding-left: 16px; }

/* Related pages */
.related-pages { margin-top: 36px; padding-top: 20px; border-top: 1px solid #1a1510; }
.related-pages h3 { font-size: 16px; color: #7a7268; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.8px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* Footer */
.footer {
  background: #0a0908; border-top: 1px solid #1a1510;
  padding: 32px 0; text-align: center; color: #4a443c; font-size: 13px;
}
.footer-links { margin-bottom: 12px; }
.footer-links a { color: #5e564c; margin: 0 14px; transition: color 0.2s; }
.footer-links a:hover { color: #b8a88a; }
.footer .disclaimer {
  max-width: 620px; margin: 0 auto; font-size: 12px;
  color: #3a352e; line-height: 1.5;
}

/* Ad Slots */
.ad-slot { min-height: 90px; margin: 20px 0; }

/* Responsive */
@media (max-width: 840px) {
  .grid-2col { grid-template-columns: 1fr; }
  .guide-directory { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hero-overlay h1 { font-size: 26px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
}
