/* Beast of Reincarnation Guide Site — Dirty Gold Wasteland Theme */
/* Based on game's post-apocalyptic Japan aesthetic (2026-08-04) */

:root {
  --bg-primary: #1A1612;
  --bg-card: #2D2418;
  --bg-secondary: #3D3425;
  --bg-hover: #4A3F2E;
  --text-primary: #E0CAA5;
  --text-secondary: #A89B7C;
  --text-muted: #6D5D47;
  --accent-gold: #C69D5D;
  --accent-bright: #E0CAA5;
  --accent-blight: #4CAF50;
  --accent-danger: #D32F2F;
  --accent-flame: #FF6F00;
  --border-subtle: rgba(198,157,93,0.12);
  --border-light: rgba(198,157,93,0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-secondary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

/* ── Header / Nav ── */
.site-header {
  background: linear-gradient(180deg, #2D2418 0%, #1A1612 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent-blight), var(--accent-gold));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.main-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-bright);
  background: rgba(198,157,93,0.1);
}

/* ── Main Content ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  width: 100%;
  flex: 1;
}

.hero-section {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-badge {
  background: var(--bg-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent-blight), var(--accent-gold));
  opacity: 0;
  transition: opacity 0.25s;
}

.content-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.content-card:hover::before { opacity: 1; }

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.tag-guide { background: rgba(76,175,80,0.15); color: var(--accent-blight); }
.tag-build { background: rgba(255,111,0,0.15); color: var(--accent-flame); }
.tag-tips { background: rgba(198,157,93,0.15); color: var(--accent-gold); }
.tag-boss { background: rgba(211,47,47,0.15); color: var(--accent-danger); }

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}

.card-link:hover { color: var(--accent-bright); }

.card-link::after { content: '→'; font-size: 1.1em; }

/* ── Article Layout ── */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-subtle);
}

.article-body h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--accent-bright);
  margin: 1.75rem 0 0.75rem;
}

.article-body p { margin-bottom: 1.1rem; }

.article-body ul, .article-body ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

.article-body li { margin-bottom: 0.45rem; }

.article-body strong { color: var(--accent-bright); font-weight: 600; }

.article-body a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover { color: var(--accent-bright); }

/* ── Info Boxes ── */
.info-box {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.info-box.tip { border-left-color: var(--accent-blight); }
.info-box.warn { border-left-color: var(--accent-flame); }
.info-box.danger { border-left-color: var(--accent-danger); }

.info-box strong { display: block; margin-bottom: 0.35rem; font-size: 0.95rem; }

/* ── Tier List / Tables ── */
.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.tier-table th {
  background: var(--bg-secondary);
  color: var(--accent-gold);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-light);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.tier-table tr:hover td { background: rgba(198,157,93,0.05); }

.tier-s { border-left: 4px solid #FFD700; }
.tier-a { border-left: 4px solid var(--accent-blight); }
.tier-b { border-left: 4px solid var(--accent-gold); }
.tier-c { border-left: 4px solid var(--text-muted); }

.tier-label {
  font-weight: 700;
  font-size: 1.1rem;
  width: 60px;
  text-align: center;
}

/* ── Image Placeholders ── */
.img-placeholder {
  background: var(--bg-secondary);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}

.img-placeholder .icon { font-size: 2rem; opacity: 0.4; }

/* ── Ad Container (AdSense auto-fill) ── */
.ad-container {
  min-height: 90px;
  margin: 1.5rem 0;
  text-align: center;
}

/* ── Affiliate Button ── */
.aff-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent-gold), #B8860B);
  color: #1A1612;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  margin: 1rem 0;
  border: none;
  cursor: pointer;
}

.aff-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(198,157,93,0.3);
}

/* ── Promo Card (Buy Section) ── */
.promo-card {
  background: linear-gradient(135deg, #2D2418, #3D3425);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.promo-card h2 {
  color: var(--accent-bright);
  margin-bottom: 0.75rem !important;
  border: none !important;
  padding: 0 !important;
}

.promo-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.promo-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.btn-steam {
  background: #1b2838;
  color: #c7d5e0;
  border: 1px solid #2a475e;
}
.btn-steam:hover { background: #2a475e; color: #fff; }

.btn-xbox {
  background: #107C10;
  color: #fff;
}
.btn-xbox:hover { background: #0e6b0e; }

.btn-ps5 {
  background: #003791;
  color: #fff;
}
.btn-ps5:hover { background: #002d70; }

.btn-gamepass {
  background: linear-gradient(90deg, #107C10, #0e6b0e);
  color: #fff;
}
.btn-gamepass:hover { opacity: 0.9; }

/* ── FAQ Section ── */
.faq-section {
  margin: 2.5rem 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-bright);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: background 0.2s;
}

.faq-question:hover { background: rgba(198,157,93,0.05); }

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent-gold);
  font-weight: 300;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 500px; }
.faq-item.open .faq-question::after { content: '−'; }

/* ── Breadcrumbs ── */
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover { color: var(--accent-gold); }

/* ── Footer ── */
.site-footer {
  background: #14110E;
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
}

.footer-nav a:hover { color: var(--accent-gold); }

/* ── TOC (Table of Contents) ── */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li { margin-bottom: 0.35rem; }

.toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.toc a:hover { color: var(--accent-gold); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav { width: 100%; overflow-x: auto; padding-bottom: 0.25rem; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 1.5rem 0.5rem; }
  .promo-links { flex-direction: column; align-items: stretch; }
  .promo-links a { justify-content: center; }
  .tier-table { font-size: 0.82rem; }
  .tier-table th, .tier-table td { padding: 0.5rem 0.6rem; }
  main { padding: 1rem 0.75rem 2rem; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero-title { font-size: 1.5rem; }
  .article-title { font-size: 1.35rem; }
  .content-card { padding: 1.15rem; }
}

/* ── Game Screenshots ── */
.game-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  display: block;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.game-img-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
}

.hero-banner {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.img-grid img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-blight { color: var(--accent-blight); }
.text-danger { color: var(--accent-danger); }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 1.5rem; }
