/* === CSS Variables === */
:root {
  --bg: #0f0f1a;
  --bg-secondary: #16162a;
  --bg-card: #1e1e35;
  --neon-pink: #ff2d78;
  --neon-cyan: #00d4ff;
  --neon-yellow: #ffe000;
  --text: #e8e8ff;
  --text-muted: #8888aa;
  --border: #2a2a45;
  --accent: #ff2d78;
  --radius: 6px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', 'Outfit', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--neon-cyan); text-decoration: none; }
a:hover { color: var(--neon-pink); }

h1, h2, h3, h4, h5 {
  font-family: 'Orbitron', monospace;
  line-height: 1.2;
  color: var(--text);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* === Flash Message === */
.flash-message {
  background: #1a3a1a;
  border-bottom: 1px solid #006b2b;
  color: #00ff88;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* === Header === */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--neon-pink);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-banner {
  background: #050510;
  text-align: center;
  line-height: 0;
}

.header-banner .banner-img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.logo-hero-img {
  height: 48px;
  width: auto;
  display: block;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.logo-text {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px var(--neon-pink);
}

.logo-accent { color: var(--neon-pink); }

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-random {
  background: var(--neon-cyan);
  color: var(--bg);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
}
.btn-random:hover { background: var(--neon-pink); color: #fff; }

/* === Nav === */
.site-nav {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  flex: 1;
}

.nav-links a {
  display: block;
  padding: 0.7rem 0.9rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--neon-pink);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-user {
  font-size: 0.8rem;
  color: var(--neon-cyan);
  font-weight: 600;
}

.btn-nav {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.btn-nav:hover { color: var(--text); border-color: var(--text-muted); }
.btn-nav-primary { background: var(--neon-pink); color: #fff; border-color: var(--neon-pink); }
.btn-nav-primary:hover { background: #e0255f; color: #fff; }

/* === Decade Bar === */
.decade-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 0.4rem 0;
}
.decade-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.decade-bar-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Outfit', sans-serif;
}

/* === Decade Pills === */
.decade-pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.decade-pill:hover, .decade-pill.active {
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
  background: rgba(255, 224, 0, 0.07);
}

/* === Buttons === */
.btn-primary {
  display: inline-block;
  background: var(--neon-pink);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-primary:hover { background: #e0255f; color: #fff; }
.btn-full { width: 100%; text-align: center; display: block; }

/* === Main Content === */
.site-main { min-height: 60vh; }

/* === On This Day Banner === */
.on-this-day-banner {
  background: linear-gradient(135deg, #1a0a2e 0%, #0f0f1a 100%);
  border-bottom: 1px solid var(--neon-yellow);
  padding: 0.9rem 0;
}
.otd-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.otd-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon-yellow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.otd-text {
  font-size: 0.9rem;
  color: var(--text);
  flex: 1;
}
.otd-link {
  color: var(--neon-cyan);
  font-size: 0.85rem;
  white-space: nowrap;
  font-weight: 600;
}

/* === Featured Hero === */
.featured-hero { padding: 3rem 0 2rem; }
.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.featured-image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.section-badge {
  display: inline-block;
  background: var(--neon-pink);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.featured-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.featured-title a { color: var(--text); }
.featured-title a:hover { color: var(--neon-pink); }
.featured-excerpt {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.featured-meta { margin-bottom: 1.2rem; }
.i-remember-count { color: var(--neon-pink); font-size: 0.85rem; font-weight: 600; }

/* === Decade Browser === */
.decade-browser { padding: 2rem 0; border-top: 1px solid var(--border); }
.decade-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.decade-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
  display: block;
  text-decoration: none;
}
.decade-card:hover { border-color: var(--neon-yellow); transform: translateY(-2px); }
.decade-number {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: var(--neon-yellow);
  text-shadow: 0 0 20px rgba(255, 224, 0, 0.5);
}
.decade-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* === Section Preview === */
.section-preview { padding: 2rem 0; border-top: 1px solid var(--border); }
.section-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-heading {
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-more { font-size: 0.85rem; color: var(--neon-cyan); font-weight: 600; }

/* === Article Grid === */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.article-grid-2 { grid-template-columns: repeat(2, 1fr); }

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { border-color: var(--neon-pink); transform: translateY(-2px); }
.card-image-link { display: block; overflow: hidden; }
.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.card-image-link:hover .card-image { transform: scale(1.03); }
.card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--neon-pink); }
.card-excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  flex: 1;
  margin-bottom: 0.75rem;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.card-remember { color: var(--neon-pink); font-weight: 600; }

/* === Pagination === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 0;
}
.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--neon-pink); color: var(--neon-pink); }
.page-info { color: var(--text-muted); font-size: 0.85rem; }

/* === Section Page === */
.section-page { padding: 2rem 0; }
.section-hero { margin-bottom: 1.5rem; }
.page-title {
  font-size: 2rem;
  color: var(--neon-pink);
  text-shadow: 0 0 30px rgba(255, 45, 120, 0.4);
  margin-bottom: 0.5rem;
}
.page-desc { color: var(--text-muted); font-size: 0.95rem; }
.section-desc { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.3rem; }
.decade-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.no-content { color: var(--text-muted); padding: 2rem 0; }

/* === Article Page === */
.article-page { padding: 2rem 0; }
.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--neon-cyan); }
.article-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
}
.article-standfirst {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  border-left: 3px solid var(--neon-pink);
  padding-left: 1rem;
}
.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.tag-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: all 0.2s;
}
.tag-decade {
  background: rgba(255, 224, 0, 0.1);
  border: 1px solid var(--neon-yellow);
  color: var(--neon-yellow);
}
.tag-decade:hover { background: rgba(255, 224, 0, 0.2); color: var(--neon-yellow); }
.tag-medium {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}
.tag-medium:hover { background: rgba(0, 212, 255, 0.2); color: var(--neon-cyan); }
.tag-platform {
  background: rgba(255, 45, 120, 0.1);
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
}
.tag-platform:hover { background: rgba(255, 45, 120, 0.2); color: var(--neon-pink); }

.article-featured-image {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-featured-image img { width: 100%; display: block; border-radius: var(--radius); }

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2rem;
}
.article-body h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; color: var(--neon-cyan); }
.article-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; color: var(--text); }
.article-body p { margin-bottom: 1.2rem; }
.article-body blockquote {
  border-left: 4px solid var(--neon-pink);
  padding: 0.75rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.5rem; }
.article-body li { margin-bottom: 0.3rem; }

/* === I Remember This === */
.i-remember-section {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.btn-i-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 2px solid var(--neon-pink);
  color: var(--neon-pink);
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-i-remember:hover, .btn-i-remember.remembered {
  background: var(--neon-pink);
  color: #fff;
}
.i-remember-heart { font-size: 1.1rem; }
.i-remember-count {
  background: var(--neon-pink);
  color: #fff;
  border-radius: 100px;
  padding: 0.1rem 0.5rem;
  font-size: 0.8rem;
  min-width: 24px;
  text-align: center;
}
.btn-i-remember.remembered .i-remember-count { background: #fff; color: var(--neon-pink); }

/* === Comment Tabs === */
.comments-area { margin-top: 2rem; }
.comment-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn.active { color: var(--neon-pink); border-bottom-color: var(--neon-pink); }
.tab-btn:hover { color: var(--text); }

/* === Comments === */
.comment-form { margin-bottom: 2rem; }
.comment-form textarea, .memory-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  margin-bottom: 0.75rem;
}
.comment-form textarea:focus, .memory-form textarea:focus {
  outline: none;
  border-color: var(--neon-pink);
}
.btn-submit-comment {
  background: var(--neon-pink);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.btn-submit-comment:hover { background: #e0255f; }
.btn-memory { background: var(--neon-cyan); color: var(--bg); }
.btn-memory:hover { background: #00a8cc; color: var(--bg); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

.login-prompt { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.login-prompt a { color: var(--neon-cyan); font-weight: 600; }
.no-comments { color: var(--text-muted); font-size: 0.9rem; padding: 1rem 0; }

.comment-list { display: flex; flex-direction: column; gap: 1.2rem; }
.comment {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.memory-comment { border-color: var(--neon-cyan); }
.comment-reply { margin-left: 1.5rem; margin-top: 0.75rem; }
.comment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.comment-author { font-weight: 700; color: var(--neon-cyan); font-size: 0.9rem; }
.comment-date { color: var(--text-muted); font-size: 0.78rem; }
.comment-body { font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.5rem; }
.comment-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-upvote {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.btn-upvote:hover:not(:disabled) { border-color: var(--neon-pink); color: var(--neon-pink); }
.btn-upvote:disabled { opacity: 0.5; cursor: default; }
.upvote-static { font-size: 0.8rem; color: var(--text-muted); }
.btn-reply-toggle {
  background: none;
  border: none;
  color: var(--neon-cyan);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  padding: 0;
}
.btn-reply-toggle:hover { color: var(--neon-pink); }
.comment-replies { margin-top: 0.75rem; }
.reply-form { margin-top: 0.75rem; }
.reply-form textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.5rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

/* === Sidebar === */
.article-sidebar { position: sticky; top: 140px; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}
.widget-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-yellow);
  margin-bottom: 1rem;
  font-family: 'Orbitron', monospace;
}
.related-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.related-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.related-thumb { display: block; flex-shrink: 0; width: 60px; height: 40px; overflow: hidden; border-radius: 3px; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-title { font-size: 0.85rem; color: var(--text); line-height: 1.3; }
.related-title:hover { color: var(--neon-pink); }
.btn-random-sidebar {
  display: block;
  text-align: center;
  background: var(--neon-cyan);
  color: var(--bg);
  padding: 0.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.btn-random-sidebar:hover { background: var(--neon-pink); color: #fff; }
.decade-browse-widget .decade-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* === Decade Page === */
.decade-page { padding: 2rem 0; }

/* === Auth Pages === */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem 1.5rem;
}
.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}
.auth-box-wide { max-width: 640px; }
.auth-title {
  font-size: 1.5rem;
  color: var(--neon-pink);
  margin-bottom: 1.5rem;
  text-align: center;
}
.auth-form .form-group { margin-bottom: 1.2rem; }
.auth-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.auth-form input[type=text],
.auth-form input[type=email],
.auth-form input[type=password] {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.auth-form input:focus { outline: none; border-color: var(--neon-pink); }
.form-hint { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.auth-links { text-align: center; margin-top: 1.2rem; font-size: 0.85rem; color: var(--text-muted); }

/* Era options */
.era-options { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.era-option { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.era-option input[type=radio] { accent-color: var(--neon-pink); }
.era-label {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-family: 'Orbitron', monospace;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.era-option input[type=radio]:checked + .era-label {
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
  background: rgba(255, 224, 0, 0.07);
}

/* Platform checkboxes */
.platform-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.platform-option { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.platform-option input[type=checkbox] { accent-color: var(--neon-cyan); }
.platform-label {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.platform-option input[type=checkbox]:checked + .platform-label {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.07);
}

/* === Alert === */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-error { background: #2a0000; border: 1px solid #8b0000; color: #ff8888; }
.alert-success { background: #001a0e; border: 1px solid #006b2b; color: #00ff88; }

/* === Profile === */
.profile-page { padding: 2rem 0; }
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.avatar-placeholder {
  width: 80px;
  height: 80px;
  background: var(--neon-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Orbitron', monospace;
  flex-shrink: 0;
}
.profile-username { font-size: 1.8rem; margin-bottom: 0.5rem; }
.era-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  margin-right: 0.5rem;
  background: rgba(255, 224, 0, 0.1);
  border: 1px solid var(--neon-yellow);
  color: var(--neon-yellow);
}
.profile-role {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.profile-joined { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.3rem; }

.platform-badges-display { margin-bottom: 2rem; }
.platform-badges-display h3 { font-size: 0.9rem; margin-bottom: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.platform-badge-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.platform-badge {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.profile-activity h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.activity-list { display: flex; flex-direction: column; gap: 1rem; }
.activity-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.activity-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.activity-type { color: var(--neon-pink); font-weight: 600; }
.activity-date { color: var(--text-muted); }
.activity-body { font-size: 0.9rem; }

/* === Error Page === */
.error-page { padding: 4rem 0; text-align: center; }
.error-message { color: var(--text-muted); margin: 1rem 0 2rem; }

/* === Footer === */
.site-footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--neon-pink);
  margin-top: 4rem;
  padding: 2.5rem 0 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-sections a {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-sections a:hover { color: var(--neon-pink); }
.footer-newsletter { margin-bottom: 1.5rem; }
.footer-newsletter h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--neon-yellow);
  font-family: 'Orbitron', monospace;
}
.footer-nl-form { display: flex; gap: 0.5rem; max-width: 380px; }
.footer-nl-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
}
.footer-nl-form input:focus { outline: none; border-color: var(--neon-pink); }
.footer-nl-form button {
  background: var(--neon-pink);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  font-size: 0.85rem;
}
.footer-nl-form button:hover { background: #e0255f; }
.newsletter-msg { font-size: 0.85rem; margin-top: 0.5rem; }
.footer-patreon { margin-bottom: 1.5rem; }
.btn-patreon {
  display: inline-block;
  background: #ff424d;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-patreon:hover { background: #e0333d; color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--neon-cyan); }

/* === Decade-specific card styles === */
.decade-70s:hover { border-color: #ff8c00; }
.decade-70s .decade-number { color: #ff8c00; text-shadow: 0 0 20px rgba(255, 140, 0, 0.5); }
.decade-80s:hover { border-color: var(--neon-pink); }
.decade-80s .decade-number { color: var(--neon-pink); text-shadow: 0 0 20px rgba(255, 45, 120, 0.5); }
.decade-90s:hover { border-color: var(--neon-cyan); }
.decade-90s .decade-number { color: var(--neon-cyan); text-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
.decade-00s:hover { border-color: #a855f7; }
.decade-00s .decade-number { color: #a855f7; text-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }

/* === Responsive === */
@media (max-width: 768px) {
  .featured-inner { grid-template-columns: 1fr; }
  .decade-cards { grid-template-columns: repeat(2, 1fr); }
  .article-grid-2 { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .logo-text { font-size: 1.1rem; }
  .header-inner { padding: 0.6rem 1rem; }
  .nav-links a { padding: 0.5rem 0.6rem; font-size: 0.7rem; }
  .decade-bar { display: none; }
  .auth-box { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .decade-cards { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-nl-form { flex-direction: column; }
}
