/*
Theme Name: SnapSideHustles
Theme URI: https://snapsidehustles.com
Author: SnapSideHustles
Description: Dark conversion machine theme for AI & side hustle blog
Version: 3.0
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0D0D0D;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --gold: #FFD700;
  --gold-dim: #FFD70030;
  --gold-hover: #FFC200;
  --bg: #0D0D0D;
  --bg2: #111111;
  --bg3: #161616;
  --bg4: #1A1A1A;
  --border: #1e1e1e;
  --border2: #2a2a2a;
  --text: #ffffff;
  --text-muted: #A0A0A0;
  --text-dim: #404040;
  --radius: 10px;
  --radius-sm: 6px;
}

/* ===== STICKY HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.site-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: #777;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: #0D0D0D;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold-hover); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ===== ALERT BAR ===== */
.alert-bar {
  background: var(--gold);
  padding: 7px 24px;
  font-size: 12px;
  color: #0D0D0D;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-dot {
  width: 7px;
  height: 7px;
  background: #0D0D0D;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ===== HERO ===== */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  background: #FFD70018;
  color: var(--gold);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-headline {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: #fff;
}
.hero-headline .gold { color: var(--gold); }

.hero-subline {
  font-size: 16px;
  font-weight: 700;
  color: #ccc;
  margin-bottom: 12px;
}

.hero-text {
  color: #404040;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: #0D0D0D;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-hover); }

.btn-secondary {
  background: transparent;
  color: #888;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid #2a2a2a;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Hero book mockup */
.hero-book-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 18px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-size: 11px;
  color: #A0A0A0;
  margin-top: 3px;
}

/* ===== MAIN LAYOUT ===== */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

/* ===== SECTION HEADERS ===== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--gold);
  border-radius: 2px;
}
.section-link {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}
.section-link:hover { text-decoration: underline; }

/* ===== FEATURED POST ===== */
.featured-post {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.featured-post .post-thumb {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.featured-post .post-body { padding: 24px; }
.post-cat {
  font-size: 10px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.featured-post .post-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}
.featured-post .post-title:hover { color: var(--gold); }
.featured-post .post-excerpt {
  font-size: 14px;
  color: #404040;
  line-height: 1.7;
  margin-bottom: 18px;
}
.post-meta {
  font-size: 11px;
  color: #333;
  margin-bottom: 16px;
}

/* ===== AD SLOTS ===== */
.ad-slot {
  background: var(--bg2);
  border: 1px dashed #2a2a2a;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-bottom: 32px;
}
.ad-slot-label {
  font-size: 9px;
  color: #2a2a2a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.ad-slot-inner {
  background: var(--bg3);
  border-radius: 4px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== POST GRID ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
  position: relative;
}
.post-card:hover { border-color: var(--gold-dim); }

.post-card .post-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.post-card .post-body { padding: 14px 14px 16px; }
.post-card .post-title {
  font-size: 14px;
  font-weight: 600;
  color: #ccc;
  line-height: 1.4;
  margin-bottom: 8px;
}
.post-card .post-title:hover { color: var(--gold); }
.post-card .post-meta { font-size: 11px; color: #2a2a2a; }

.affiliate-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: #0D0D0D;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  z-index: 2;
}

/* Ad infeed card */
.ad-infeed-card {
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  min-height: 220px;
}
.ad-infeed-label {
  font-size: 9px;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== CATEGORY CARDS ===== */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.cat-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 100px;
  cursor: pointer;
  transition: transform 0.2s;
}
.cat-card:hover { transform: translateY(-2px); }
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.28);
  transition: filter 0.3s;
}
.cat-card:hover img { filter: brightness(0.35); }
.cat-icon-bg {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  opacity: 0.1;
}
.cat-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
}
.cat-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.cat-count {
  font-size: 10px;
  color: var(--gold);
  margin-top: 2px;
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.widget-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Email widget */
.email-widget {
  background: var(--bg4);
  border: 1px solid #FFD70030;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.email-widget h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}
.email-widget p {
  font-size: 12px;
  color: #404040;
  margin-bottom: 16px;
  line-height: 1.6;
}
.email-form { display: flex; flex-direction: column; gap: 8px; }
.email-input {
  background: #0D0D0D;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-size: 12px;
  width: 100%;
}
.email-input::placeholder { color: #333; }
.email-input:focus { outline: none; border-color: var(--gold); }
.email-submit {
  background: var(--gold);
  color: #0D0D0D;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.email-submit:hover { background: var(--gold-hover); }

/* Recent posts widget */
.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-thumb {
  width: 60px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.recent-post-title {
  font-size: 12px;
  font-weight: 500;
  color: #ccc;
  line-height: 1.4;
}
.recent-post-title:hover { color: var(--gold); }
.recent-post-date { font-size: 10px; color: #333; margin-top: 4px; }

/* ===== SINGLE POST ===== */
.single-post-header { margin-bottom: 24px; }
.single-post-header .post-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}
.single-post-meta { font-size: 12px; color: #333; margin-bottom: 20px; }
.single-post-meta a { color: var(--gold); }
.single-post-thumb {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #bbb;
}
.post-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 32px 0 16px;
}
.post-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ddd;
  margin: 24px 0 12px;
}
.post-content p { margin-bottom: 18px; }
.post-content a { color: var(--gold); }
.post-content a:hover { text-decoration: underline; }
.post-content ul, .post-content ol {
  margin: 0 0 18px 24px;
}
.post-content li { margin-bottom: 8px; }
.post-content strong { color: #fff; font-weight: 600; }

/* Affiliate disclosure on posts */
.affiliate-disclosure {
  background: var(--bg2);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 28px;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}

/* ===== ARCHIVE ===== */
.archive-header {
  padding: 40px 0 32px;
}
.archive-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.archive-title span { color: var(--gold); }
.archive-desc { font-size: 14px; color: #404040; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 32px 0;
  flex-wrap: wrap;
}
.page-link {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: #777;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: all 0.2s;
}
.page-link:hover, .page-link.current {
  background: var(--gold);
  color: #0D0D0D;
  border-color: var(--gold);
  font-weight: 700;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-newsletter {
  background: var(--bg4);
  border-bottom: 1px solid #FFD70020;
  padding: 48px 24px;
  text-align: center;
}
.footer-newsletter h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-newsletter p {
  font-size: 14px;
  color: #404040;
  margin-bottom: 24px;
  line-height: 1.6;
}
.footer-email-row {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.footer-email-input {
  flex: 1;
  background: #0D0D0D;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 13px;
}
.footer-email-input:focus { outline: none; border-color: var(--gold); }
.footer-email-btn {
  background: var(--gold);
  color: #0D0D0D;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.footer-email-btn:hover { background: var(--gold-hover); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo { font-size: 16px; font-weight: 700; color: #fff; }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: #333; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 11px; color: #252525; }

.affiliate-footer-disclosure {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 16px;
  font-size: 11px;
  color: #252525;
  line-height: 1.6;
}

/* ===== READING PROGRESS BAR ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gold);
  z-index: 9999;
  transition: width 0.1s;
}

/* ===== 404 ===== */
.not-found-wrap {
  text-align: center;
  padding: 80px 24px;
}
.not-found-wrap h1 { font-size: 80px; font-weight: 700; color: var(--gold); }
.not-found-wrap h2 { font-size: 24px; color: #fff; margin-bottom: 12px; }
.not-found-wrap p { color: #404040; margin-bottom: 28px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-book-wrap { display: none; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .hero-headline { font-size: 28px; }
  .posts-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(3,1fr); }
  .footer-email-row { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
