/*
Theme Name: Shironeko
Theme URI: https://www.shironeko.gg
Description: Minimal, SEO-first WordPress theme for Shironeko.gg — crypto education and content hub.
Version: 1.0.0
Author: Shironeko
Author URI: https://www.shironeko.gg
License: GNU General Public License v2 or later
Text Domain: shironeko
*/

/* ===========================
   CSS RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #000000;
  --color-surface: #111111;
  --color-surface-hover: #1a1a1a;
  --color-border: #222222;
  --color-text: #c5c5c5;
  --color-text-muted: #888888;
  --color-heading: #ffffff;
  --color-accent: #c5614f;
  --color-accent-hover: #dc9285;
  --color-gold: #ffbc7d;
  --color-link: #dc9285;
  --font-heading: 'Bowlby One', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --max-width: 1200px;
  --content-width: 780px;
  --radius: 8px;
  --transition: 0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ===========================
   LAYOUT
   =========================== */
.site-container { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--content-width); margin: 0 auto; }

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.site-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.primary-nav a:hover { color: var(--color-heading); background: var(--color-surface); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-heading);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ===========================
   HERO (Homepage)
   =========================== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-heading) 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: background var(--transition);
}
.hero-cta:hover { background: var(--color-accent-hover); color: #fff; }

/* ===========================
   CATEGORY NAV (Homepage)
   =========================== */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0 0 48px;
}

.category-nav a {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition);
}
.category-nav a:hover {
  border-color: var(--color-accent);
  color: var(--color-heading);
  background: var(--color-surface);
}

/* ===========================
   ARTICLE GRID
   =========================== */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

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

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.article-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.article-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--color-surface-hover);
}

.article-card-body { padding: 20px; }

.article-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.article-card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.4;
  margin-bottom: 8px;
}
.article-card-title a { color: inherit; }
.article-card-title a:hover { color: var(--color-gold); }

.article-card-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================
   SINGLE ARTICLE
   =========================== */
.article-header {
  padding: 48px 0 32px;
  text-align: center;
}

.article-header h1 {
  font-size: 2.2rem;
  max-width: 800px;
  margin: 0 auto 16px;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 16px;
  justify-content: center;
}

.article-content {
  padding-bottom: 64px;
}

.article-content h2 {
  font-size: 1.6rem;
  margin: 48px 0 16px;
  padding-top: 16px;
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}

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

.article-content ul, .article-content ol {
  margin: 0 0 16px 24px;
}
.article-content li { margin-bottom: 8px; }

.article-content strong { color: var(--color-heading); }

.article-content a { color: var(--color-link); border-bottom: 1px solid transparent; }
.article-content a:hover { border-bottom-color: var(--color-link); }

.article-featured-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

/* Table of Contents */
.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.toc-title { font-size: 0.9rem; font-weight: 600; color: var(--color-heading); margin-bottom: 12px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 6px; }
.toc a { font-size: 0.85rem; color: var(--color-text-muted); }
.toc a:hover { color: var(--color-link); }

/* ===========================
   ARCHIVE / CATEGORY
   =========================== */
.archive-header {
  padding: 48px 0 32px;
}
.archive-header h1 { font-size: 2rem; }
.archive-header p { color: var(--color-text-muted); margin-top: 8px; }

/* ===========================
   PAGINATION
   =========================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0 64px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--color-text);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--color-accent); color: var(--color-heading); }
.pagination .current { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 12px; line-height: 1.6; }

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--color-text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--color-link); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .menu-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px;
  }
  .primary-nav.active { display: flex; }
  .primary-nav a { padding: 12px 0; }
  .article-header h1 { font-size: 1.6rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
