/*
Theme Name: AIncome
Theme URI: https://228269.xyz
Description: AI monetization news & insights - forum community curated content
Version: 2.1
Author: AIncome
*/

:root {
  --accent: #1da69a;
  --accent-hover: #178c82;
  --accent-light: #e6f7f5;
  --accent-dark: #167d74;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1a1a2e;
  --text-light: #4a5568;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --header-bg: rgba(255,255,255,0.97);
  --footer-bg: #1a1a2e;
  --footer-text: #94a3b8;
  --radius-sm: 6px;
  --radius: 10px;
  --max-w: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", monospace;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: relative;
}

.logo { flex-shrink: 0; }
.logo a { display: block; }
.logo svg { height: 30px; width: auto; display: block; }

/* Nav */
.main-nav {
  margin-left: 28px;
  flex: 1;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 2px;
}
.nav-list li { position: relative; }
.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.nav-list li a:hover,
.nav-list li.current-menu-item a,
.nav-list li.current_page_item a {
  color: var(--accent);
  background: var(--accent-light);
}
.nav-list li.current-menu-item a,
.nav-list li.current_page_item a {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 15px;
  transition: all .3s;
}
.social-link:hover {
  color: var(--accent);
  background: var(--accent-light);
}
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: all .3s;
}
.search-toggle:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.search-dropdown {
  position: absolute;
  top: 60px;
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.search-dropdown.open {
  max-height: 80px;
  padding: 16px 24px;
}
.search-dropdown form {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 8px;
}
.search-dropdown input {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.search-dropdown input:focus {
  border-color: var(--accent);
}
.search-dropdown button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background .2s;
}
.search-dropdown button:hover { background: var(--accent-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ========== SITE BADGE ========== */
.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ========== ARCHIVE / CATEGORY HEADER ========== */
.archive-header {
  max-width: var(--max-w);
  margin: 80px auto 0;
  padding: 32px 24px 8px;
}
.archive-label {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.archive-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.archive-desc {
  font-size: 15px;
  color: var(--text-light);
  margin-top: 8px;
  max-width: 600px;
}

/* ========== HERO ========== */
.hero-section {
  max-width: var(--max-w);
  margin: 80px auto 0;
  padding: 24px 24px 0;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.hero-main { min-height: 0; }
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.slider-track {
  display: flex;
  transition: transform .5s ease-in-out;
}
.slider-slide {
  min-width: 100%;
  position: relative;
}
.slider-slide a { display: block; }
.slider-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.slider-img-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.slider-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 50px 30px 24px;
  background: linear-gradient(transparent 20%, rgba(0,0,0,0.85) 100%);
}
.slider-category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.slider-title {
  color: #fff;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(255,255,255,0.4); }

.slider-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all .2s;
}
.dot.active { background: #fff; width: 24px; border-radius: 4px; }

.hero-side-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}
.hero-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-side-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, #16213e, #0f3460);
}
.hero-side-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.hero-side-category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.hero-side-content h3 {
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}

/* ========== MAIN CONTENT ========== */
.site-wrapper { padding-top: 0; }

.main-content-area {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px 24px 60px;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ========== FEED LIST (social feed style) ========== */
.feed-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.feed-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.feed-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.feed-list { }

/* Feed Card */
.feed-card {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.feed-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-color: var(--border);
}

/* Left accent bar - color coded by source */
.feed-card-accent {
  width: 4px;
  flex-shrink: 0;
}
.source-reddit .feed-card-accent { background: #ff4500; }
.source-indiehackers .feed-card-accent { background: #7c3aed; }
.source-hn .feed-card-accent { background: #ff6600; }
.source-twitter .feed-card-accent { background: #1d9bf0; }
.source-discord .feed-card-accent { background: #5865f2; }
.source-forum .feed-card-accent { background: #0891b2; }
.source-rumor .feed-card-accent { background: #d97706; }
.source-blog .feed-card-accent { background: #059669; }
.source-community .feed-card-accent { background: var(--accent); }

.feed-card-body {
  flex: 1;
  padding: 18px 20px;
  min-width: 0;
}

/* Header row: source badge + time + category */
.feed-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.feed-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.4;
}
.feed-source-badge i { font-size: 13px; }

/* Source badge colors */
.feed-source-badge.source-reddit { background: #fff0eb; color: #ff4500; }
.feed-source-badge.source-indiehackers { background: #f3e8ff; color: #7c3aed; }
.feed-source-badge.source-hn { background: #fff3e0; color: #ff6600; }
.feed-source-badge.source-twitter { background: #e6f3ff; color: #1d9bf0; }
.feed-source-badge.source-discord { background: #eef0ff; color: #5865f2; }
.feed-source-badge.source-forum { background: #e6fafd; color: #0891b2; }
.feed-source-badge.source-rumor { background: #fef3c7; color: #92400e; }
.feed-source-badge.source-rumor i { color: #d97706; }
.feed-source-badge.source-blog { background: #e6f7ef; color: #059669; }
.feed-source-badge.source-community { background: var(--accent-light); color: var(--accent-dark); }

.feed-time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.feed-category {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: auto;
}
.feed-category a { color: var(--text-muted); }
.feed-category a:hover { color: var(--accent); }

/* Card title */
.feed-card-title {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 8px;
}
.feed-card-title a { color: var(--text); }
.feed-card-title a:hover { color: var(--accent); }

/* Card excerpt */
.feed-card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
}
.feed-card-excerpt p { color: var(--text-light); margin-bottom: 0; }

/* Card footer */
.feed-card-footer {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.feed-original-link,
.feed-discuss-link {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.feed-original-link:hover { color: var(--accent); }
.feed-discuss-link:hover { color: var(--accent); }

/* Source legend in sidebar */
.source-legend { }
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  padding: 4px 0;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.legend-dot.reddit { background: #ff4500; }
.legend-dot.indiehackers { background: #7c3aed; }
.legend-dot.hn { background: #ff6600; }
.legend-dot.twitter { background: #1d9bf0; }
.legend-dot.discord { background: #5865f2; }
.legend-dot.forum { background: #0891b2; }
.legend-dot.rumor { background: #d97706; }
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}
.page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.page-numbers:hover:not(.current) {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== SIDEBAR ========== */
.sidebar-widget {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-widget:last-child { border-bottom: none; }

.widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}

.sidebar-categories ul,
.sidebar-recent ul {
  list-style: none;
}
.sidebar-categories ul li,
.sidebar-recent ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-categories ul li:last-child,
.sidebar-recent ul li:last-child { border-bottom: none; }
.sidebar-categories ul li a,
.sidebar-recent ul li a {
  color: var(--text-light);
  font-size: 14px;
  display: block;
  transition: color .2s;
}
.sidebar-categories ul li a:hover,
.sidebar-recent ul li a:hover {
  color: var(--accent);
}
.cat-count { color: var(--text-muted); font-size: 12px; }

.sidebar-cta p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}
.cta-link:hover { background: var(--accent-hover); color: #fff; }

/* ========== SINGLE POST ========== */
.single-post-area { padding-top: 80px; }
.single-article { }
.single-header {
  margin-bottom: 24px;
}
.single-category {
  margin-bottom: 12px;
}
.single-category a {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.single-source {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.single-source a { color: var(--accent); }
.single-title {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.single-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Featured image in single - optional */
.single-featured-image {
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
}
.single-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}
.single-featured-image-missing {
  display: none; /* just hide if no image */
}

/* Content typography */
.single-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}
.single-content p {
  margin-bottom: 1.2em;
}
.single-content h2 {
  font-size: 23px;
  margin: 1.5em 0 0.6em;
  font-weight: 700;
}
.single-content h3 {
  font-size: 19px;
  margin: 1.3em 0 0.5em;
  font-weight: 600;
}
.single-content ul,
.single-content ol {
  margin: 1em 0;
  padding-left: 24px;
}
.single-content li { margin-bottom: 0.4em; }
.single-content blockquote {
  margin: 1.5em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  color: var(--text-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.single-content blockquote p { margin-bottom: 0; }
.single-content img { border-radius: var(--radius-sm); margin: 1em 0; }
.single-content a { text-decoration: underline; }

/* Source box for forum-sourced articles */
.source-box {
  margin: 32px 0;
  padding: 18px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.source-box-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.source-box a {
  font-size: 14px;
  color: var(--accent);
  word-break: break-all;
}

.single-tags {
  margin: 32px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tag-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}
.single-tags a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-alt);
  color: var(--text-light);
  font-size: 13px;
  border-radius: 20px;
  transition: all .2s;
}
.single-tags a:hover { background: var(--accent); color: #fff; }

.single-share {
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.share-label { font-size: 14px; font-weight: 600; color: var(--text-light); }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  transition: opacity .2s;
}
.share-btn.twitter { background: #000; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn:hover { opacity: 0.8; color: #fff; }

/* Related Posts */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.related-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow .3s;
}
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.related-card a { display: block; }
.related-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
/* Related card without image */
.related-card.no-thumb {
  background: var(--bg-alt);
  padding: 0;
}
.related-card.no-thumb a {
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 140px;
  justify-content: center;
}
.related-card.no-thumb h4 { padding: 0; }
.related-card h4 {
  padding: 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  font-weight: 600;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-logo svg { height: 26px; width: auto; }
.footer-logo svg text:first-child { fill: #fff !important; }
.footer-logo svg text:last-child { fill: var(--accent) !important; }
.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
  color: var(--footer-text);
}
.footer-col h4 {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: var(--footer-text);
  font-size: 13px;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--accent); }

.social-icons { display: flex; gap: 10px; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #2d3748;
  color: var(--footer-text);
  font-size: 15px;
  transition: all .3s;
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(29, 166, 154, 0.1);
}

.footer-bottom { border-top: 1px solid #2d3748; }
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-bottom a { color: var(--footer-text); }
.footer-bottom a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--footer-text); }
/* ========== RESPONSIVE ========== */

/* Tablet landscape (1024px) */
@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .sidebar-widget { margin-bottom: 0; }
}

/* Tablet portrait & large phones (768px) */
@media (max-width: 768px) {
  /* Header & Nav */
  .nav-toggle { display: flex; }
  
  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: calc(100vh - 60px);
    background: var(--bg);
    border-right: 1px solid var(--border);
    padding: 20px 16px;
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
    z-index: 99;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list li a { 
    padding: 14px 16px; 
    font-size: 16px; 
    border-radius: 8px;
  }
  .nav-list li a:active { background: var(--accent-light); }

  .nav-toggle.open span:nth-child(1) { 
    transform: rotate(45deg) translate(5px, 5px); 
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { 
    transform: rotate(-45deg) translate(5px, -5px); 
  }

  /* Hero */
  .hero-section { 
    padding: 68px 0 0; 
    margin-top: 0;
  }
  .hero-main { border-radius: 0; }
  .hero-slider { border-radius: 0; }
  .slider-img, .slider-img-placeholder { height: 200px; }
  .slider-overlay { padding: 30px 16px 16px; }
  .slider-title { font-size: 16px; }
  .slider-category { font-size: 10px; padding: 3px 8px; }
  .slider-nav { bottom: 10px; right: 12px; }
  .slider-arrow { 
    width: 32px; 
    height: 32px; 
    font-size: 12px; 
  }
  .dot { width: 6px; height: 6px; }
  .dot.active { width: 18px; }

  /* Archive header */
  .archive-header { 
    padding: 24px 16px 8px; 
    margin-top: 60px;
  }
  .archive-title { font-size: 22px; }

  /* Feed */
  .feed-header { padding: 0 4px 12px; margin-bottom: 16px; }
  .feed-title { font-size: 18px; }
  .feed-subtitle { font-size: 13px; }
  
  .feed-card { 
    margin-bottom: 12px; 
    border-radius: 8px;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
  }
  .feed-card:first-child { border-top: none; }
  .feed-card-body { padding: 14px 16px; }
  .feed-card-accent { width: 3px; }
  .feed-card-header { gap: 6px; margin-bottom: 8px; }
  .feed-source-badge { 
    font-size: 11px; 
    padding: 2px 8px; 
  }
  .feed-time { font-size: 11px; }
  .feed-category { 
    margin-left: 0; 
    width: 100%; 
    font-size: 11px;
    margin-top: 2px;
  }
  .feed-card-title { font-size: 16px; margin-bottom: 6px; }
  .feed-card-title a:active { color: var(--accent); }
  .feed-card-excerpt { font-size: 13.5px; line-height: 1.6; }
  .feed-card-footer { 
    margin-top: 10px; 
    padding-top: 8px; 
    gap: 12px;
  }
  .feed-original-link,
  .feed-discuss-link { font-size: 12px; }

  /* Sidebar on mobile */
  .sidebar { 
    display: block;
    margin-top: 32px;
  }
  .sidebar-widget { margin-bottom: 24px; }

  /* Single post */
  .single-post-area { padding-top: 68px; }
  .single-title { font-size: 22px; }
  .single-header { margin-bottom: 16px; }
  .single-content { font-size: 15px; line-height: 1.75; }
  .single-tags { margin: 24px 0; }

  .related-grid { grid-template-columns: 1fr; gap: 12px; }
  .related-card h4 { padding: 12px; font-size: 14px; }
  .related-card.no-thumb a { min-height: 80px; padding: 16px; }

  /* Pagination */
  .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* Footer */
  .footer-inner { 
    grid-template-columns: 1fr; 
    gap: 28px; 
    padding: 36px 20px;
  }
  .footer-bottom-inner { 
    flex-direction: column; 
    gap: 8px; 
    text-align: center; 
    padding: 16px 20px;
  }
  .footer-tagline { max-width: 100%; }
  .footer-col ul { columns: 2; }
  .footer-col ul li { break-inside: avoid; }

  /* Hide some header icons on mobile */
  .header-actions .social-link:nth-child(2) { display: none; }

  /* Better tap targets */
  .cta-link { padding: 12px 24px; display: flex; justify-content: center; }
}

/* Small phones (480px) */
@media (max-width: 480px) {
  .header-inner { padding: 0 12px; }
  .logo svg { height: 26px; }
  
  .slider-img, .slider-img-placeholder { height: 180px; }
  .slider-title { font-size: 14px; }
  .slider-overlay { padding: 24px 12px 12px; }

  .feed-card-body { padding: 12px 14px; }
  .feed-card-title { font-size: 15px; }
  .feed-card-excerpt { font-size: 13px; }

  .single-title { font-size: 19px; }
  .single-content { font-size: 14px; }
  .single-meta { font-size: 13px; flex-wrap: wrap; gap: 8px; }

  .archive-title { font-size: 20px; }
  .archive-header { padding: 20px 14px 4px; }
}

/* Very small phones (360px) */
@media (max-width: 380px) {
  .header-inner { padding: 0 10px; height: 54px; }
  .site-header { height: 54px; }
  
  .slider-img, .slider-img-placeholder { height: 160px; }
  .slider-title { font-size: 13px; }
  .slider-overlay { padding: 20px 10px 10px; }

  .feed-card-body { padding: 10px 12px; }
  .feed-card-title { font-size: 14px; }
  .feed-card-excerpt { font-size: 12.5px; line-height: 1.55; }
  .feed-source-badge { font-size: 10px; padding: 1px 6px; }
  .feed-time { font-size: 10px; }
  .feed-card-footer { gap: 8px; }

  .single-title { font-size: 17px; }
  .single-content { font-size: 13.5px; }
}