/* ══════════════════════════════════════════════
   NICKNAME HUB THEME — Dark gaming aesthetic
   ══════════════════════════════════════════════ */
:root {
  --primary: #8b5cf6;
  --primary-dark: #6d28d9;
  --accent: #f59e0b;
  --accent2: #10b981;
  --bg: #0d0d1a;
  --bg2: #13131f;
  --surface: #1a1a2e;
  --surface2: #222238;
  --border: #2d2d4e;
  --border-glow: rgba(139,92,246,0.35);
  --text: #e8e8f8;
  --text-muted: #9090b8;
  --text-light: #5a5a8a;
  --glow: 0 0 20px rgba(139,92,246,0.25);
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --radius: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: #a78bfa; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Container ── */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, #0a0a16 0%, #16162a 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(139,92,246,0.15);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-title-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-title-link::before {
  content: '🎮';
  font-size: 1.5rem;
  flex-shrink: 0;
}
.header-inner h1 {
  font-size: 1.35rem;
  font-weight: 900;
  background: linear-gradient(90deg, #a78bfa, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}
.header-inner > p {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(139,92,246,0.12);
  border: 1px solid var(--border-glow);
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
@media (max-width: 600px) { .header-inner > p { display: none; } }

/* ── Layout ── */
.content-layout {
  max-width: var(--max-w);
  margin: 28px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
  flex: 1;
}
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--primary); }

/* ── Article ── */
article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s;
}
article:hover { border-color: var(--border-glow); }
@media (max-width: 700px) { article { padding: 20px; } }

article h2 {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #e8e8f8 60%, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

/* ── Metadata ── */
.crypto-metadata {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.crypto-metadata .read-time {
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  border: 1px solid rgba(139,92,246,0.25);
}

/* ── Hero image ── */
.article-hero-image {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}
.article-hero-image img { width: 100%; max-height: 400px; object-fit: cover; }
.image-credit {
  font-size: 0.7rem;
  color: var(--text-light);
  padding: 6px 10px;
  background: var(--bg2);
  text-align: right;
}

/* ── Article content ── */
.article-content { font-size: 1.03rem; line-height: 1.85; color: var(--text); }
.article-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #a78bfa;
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.3;
}
.article-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 10px;
}
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: #c4b5fd; }
.article-content a { color: #a78bfa; text-decoration: underline; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(139,92,246,0.08);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-content th {
  background: var(--primary-dark);
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
}
.article-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.article-content tr:nth-child(even) td { background: var(--surface2); }
.article-content tr:last-child td { border-bottom: none; }

/* ── Keyword tags ── */
.keyword-tags {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
}
.keyword-tags strong { color: var(--text-muted); margin-right: 4px; }
.tag {
  background: rgba(139,92,246,0.12);
  color: #c4b5fd;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(139,92,246,0.25);
}

/* ── Related articles ── */
.related-articles {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.related-articles h3 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #a78bfa;
  margin-bottom: 14px;
}
.related-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.related-list li { padding-left: 12px; border-left: 3px solid rgba(139,92,246,0.3); }
.related-list a { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.related-list a:hover { color: #a78bfa; text-decoration: underline; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.sidebar-widget:hover { border-color: var(--border-glow); }
.widget-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #a78bfa;
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.sidebar-list li { padding-bottom: 11px; border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list a { font-size: 0.83rem; font-weight: 600; color: var(--text); display: block; line-height: 1.4; }
.sidebar-list a:hover { color: #a78bfa; }
.sidebar-date { font-size: 0.7rem; color: var(--text-light); margin-top: 3px; display: block; }

/* ── Homepage ── */
.latest-articles {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px;
  flex: 1;
}
.latest-articles::before {
  content: '🔥 Fresh Name Ideas';
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #a78bfa;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(139,92,246,0.35);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}
.article-card .meta time {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(139,92,246,0.1);
  padding: 2px 9px;
  border-radius: 4px;
  border: 1px solid rgba(139,92,246,0.2);
}
.article-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  flex: 1;
}
.article-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
  align-self: flex-start;
  margin-top: auto;
}
.read-more-btn::after { content: ' →'; }
.read-more-btn:hover { opacity: 0.88; text-decoration: none; color: #fff; }

/* ── Ad slot ── */
.ad-slot { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 16px; }

/* ── Footer ── */
footer {
  background: #080812;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  margin-top: auto;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  article h2 { font-size: 1.45rem; }
  .latest-articles { padding: 16px; }
  .article-grid { grid-template-columns: 1fr; }
}
