/* ============================================
   NikkiGuide.com - Modern Gaming Guide Style
   Inspired by IGN, GameSpot, ProGameGuides
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:wght@700;900&display=swap');

:root {
  --accent: #e8739b;
  --accent-dark: #c44a72;
  --accent-light: #fce4ec;
  --accent-glow: rgba(232, 115, 155, 0.12);

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-hero: #1a1a2e;

  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;

  --card-bg: #ffffff;
  --card-border: #e8e8ed;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04);

  --header-bg: #1a1a2e;
  --header-border: rgba(255,255,255,0.08);
  --nav-hover: rgba(255,255,255,0.08);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --max-w: 1120px;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ============================================
   HEADER - Dark, clean navigation
   ============================================ */
header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo-icon {
  font-size: 1.3em;
  line-height: 1;
}

header h1 {
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #fff;
}

header h1 a { color: #fff; font-weight: 700; }
header h1 a:hover { color: var(--accent); }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  color: rgba(255,255,255,0.65);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 500;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}
nav a:hover {
  color: #fff;
  background: var(--nav-hover);
}

/* ============================================
   HERO - Featured guide
   ============================================ */
.hero-section {
  background: #fafafc;
  border-bottom: 1px solid var(--card-border);
  padding: 0;
  margin: 0;
}

.hero-featured {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero-featured-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8em;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.hero-featured-content p {
  color: var(--text-secondary);
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 18px;
}

.hero-featured-content .btn-guide {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(232, 115, 155, 0.3);
}

.hero-featured-content .btn-guide:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 115, 155, 0.4);
}

.hero-featured-visual {
  background: linear-gradient(135deg, var(--accent-light), #f0e6ff);
  border-radius: var(--radius-md);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  color: var(--accent);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text);
}

.section-all-link {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--accent-dark);
}

/* ============================================
   CARDS - Clean, sharp gaming cards
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--card-shadow);
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.45;
}

.card-body h3 a {
  color: var(--text);
  font-weight: 600;
}

.card-body h3 a:hover {
  color: var(--accent-dark);
}

.card-body p {
  color: var(--text-secondary);
  font-size: 0.82em;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: var(--text-tertiary);
  font-size: 0.75em;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--card-border);
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 48px;
}

.breadcrumb {
  font-size: 0.8em;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-tertiary);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--accent-dark);
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--card-border);
}

.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: 2em;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.article-header .meta {
  color: var(--text-tertiary);
  font-size: 0.8em;
  font-weight: 500;
}

.article-content {
  font-size: 1em;
  line-height: 1.75;
  color: var(--text);
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.45em;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--card-border);
  letter-spacing: -0.2px;
}

.article-content h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 28px 0 10px;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.article-content ul, .article-content ol {
  margin: 12px 0 18px;
  padding-left: 24px;
}

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

.article-content li::marker {
  color: var(--accent);
}

.article-content strong {
  font-weight: 700;
}

/* Tip box */
.tip-box {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.tip-box strong {
  color: var(--accent-dark);
}

/* TOC - ProGameGuides style */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 0 0 28px;
}

.toc-title {
  font-weight: 700;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  padding: 3px 0;
  margin: 0;
}

.toc-list li::marker { content: ''; }

.toc-list a {
  font-size: 0.88em;
  font-weight: 500;
  color: var(--accent-dark);
}

.toc-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================
   SIDEBAR / RELATED GUIDES
   ============================================ */
.related-guides {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--card-border);
}

.related-guides h3 {
  font-family: var(--font-heading);
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ============================================
   AD PLACEHOLDER
   ============================================ */
.ad-placeholder {
  text-align: center;
  padding: 10px;
  margin: 0 0 24px;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 0.75em;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ============================================
   FOOTER - Dark
   ============================================ */
footer {
  background: var(--header-bg);
  color: var(--text-tertiary);
  text-align: center;
  padding: 32px 24px;
  margin-top: 60px;
  font-size: 0.8em;
  line-height: 1.8;
  border-top: 1px solid var(--header-border);
}

footer p:first-child {
  color: #fff;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .header-inner { height: 50px; padding: 0 16px; }
  header h1 { font-size: 1em; }
  nav a { padding: 6px 10px; font-size: 0.78em; }

  .hero-featured {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 16px;
  }
  .hero-featured-content h2 { font-size: 1.4em; }
  .hero-featured-visual { display: none; }

  .section-title { font-size: 1.1em; }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .card-body { padding: 14px; }
  .container { padding: 0 16px; }

  article { padding: 20px 0 32px; }
  .article-header h1 { font-size: 1.5em; }
  .article-content h2 { font-size: 1.25em; }
  .article-content { font-size: 0.95em; }

  footer { padding: 24px 16px; margin-top: 40px; }
}

@media (max-width: 400px) {
  .header-inner { flex-direction: column; height: auto; padding: 10px 16px; gap: 6px; }
  nav { width: 100%; justify-content: center; }
}
