/*
Theme Name: MonetizeHub
Theme URI: https://monetizations.site
Author: MTM
Description: Professional dark theme for a TikTok / Facebook / YouTube monetization tools & guides site, with AI Tools & Tech News. Premium look, built with easy Adsterra ad integration.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: monetizehub
*/

/* ============ FONTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

:root {
  --bg:         #0a0c10;
  --bg2:        #0e1116;
  --card-bg:    #131720;
  --card-bg2:   #171c26;
  --border:     #232936;

  --gold:       #f0b429;
  --gold-h:     #d99e1c;
  --green:      #00e88a;
  --tiktok:     #ff2d78;
  --facebook:   #2f80ff;
  --youtube:    #ff3b3b;

  --white:      #ffffff;
  --text:       #cfd6e0;
  --text-dim:   #7c8698;
  --muted:      #4d5566;

  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius: 12px;
  --radius-sm: 8px;
}

.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--white); letter-spacing: -0.02em; }

/* ============ TOP BAR ============ */
#topbar {
  background: #06070a;
  color: #b8c2d1;
  font-size: 0.76rem;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
#topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
#topbar .platforms { display: flex; gap: 18px; font-family: var(--font-mono); }
#topbar .platforms span { opacity: 0.85; }

/* ============ HEADER ============ */
#site-header {
  background: rgba(10,12,16,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
}
.site-logo span { color: var(--gold); }
#main-nav ul { display: flex; gap: 2px; flex-wrap: wrap; }
#main-nav a {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
#main-nav a:hover { background: var(--card-bg2); color: var(--white); }

/* ============ AD SLOT ============ */
.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 10px 0;
  background: var(--bg2);
}

/* ============ HERO ============ */
.hero-banner {
  background:
    radial-gradient(circle at 15% 20%, rgba(240,180,41,0.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0,232,138,0.08) 0%, transparent 45%),
    var(--bg2);
  color: var(--white);
  padding: 70px 20px 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(240,180,41,0.12);
  color: var(--gold);
  border: 1px solid rgba(240,180,41,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-banner h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 16px;
  font-weight: 800;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.28;
}
.hero-banner p { font-family: var(--font-body); font-size: 1.05rem; color: var(--text-dim); max-width: 620px; margin: 0 auto; }

/* ============ STATS BAR ============ */
.stats-bar { background: var(--bg); border-bottom: 1px solid var(--border); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 20px;
  text-align: center;
}
@media (max-width: 700px) { .stats-inner { grid-template-columns: repeat(2, 1fr); } }
.stat-item strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); font-weight: 800; }
.stat-item span { font-size: 0.78rem; color: var(--text-dim); }

/* ============ PLATFORM CARDS ============ */
.platform-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 34px 0;
}
@media (max-width: 760px) { .platform-strip { grid-template-columns: repeat(2, 1fr); } }

.platform-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.platform-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0,0,0,0.35); border-color: var(--gold); }
.platform-card .icon {
  font-size: 1.9rem;
  margin-bottom: 14px;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto; margin-right: auto;
  background: var(--card-bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
}
.platform-card h3 { font-size: 0.98rem; margin-bottom: 6px; color: var(--white); }
.platform-card p { font-family: var(--font-body); font-size: 0.78rem; color: var(--text-dim); }
.platform-card.tiktok .icon { color: var(--tiktok); }
.platform-card.facebook .icon { color: var(--facebook); }
.platform-card.youtube .icon { color: var(--youtube); }
.platform-card.tools .icon { color: var(--green); }
.platform-card.ai .icon { color: #b18aff; }
.platform-card.tech .icon { color: #29c5f0; }

/* ============ FEATURED POST ============ */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 36px 0;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.featured-post:hover { box-shadow: 0 20px 44px rgba(0,0,0,0.4); transform: translateY(-3px); border-color: var(--gold); }
.featured-img { background: var(--card-bg2); min-height: 280px; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85) saturate(1.1); }
.featured-img-placeholder {
  width: 100%; height: 100%; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.featured-body { padding: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.featured-label {
  font-family: var(--font-mono);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold);
}
.featured-body h2 { font-size: 1.55rem; line-height: 1.3; margin: 4px 0 6px; }
.featured-body p { font-family: var(--font-body); color: var(--text-dim); font-size: 0.95rem; }
.featured-cta { font-weight: 700; color: var(--gold); font-size: 0.9rem; margin-top: 8px; }
@media (max-width: 760px) { .featured-post { grid-template-columns: 1fr; } }

/* ============ CONTENT LAYOUT ============ */
.content-wrap {
  max-width: 1220px;
  margin: 20px auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 34px;
}
@media (max-width: 860px) {
  .content-wrap { grid-template-columns: 1fr; }
  #main-nav { display: none; }
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-heading h2 { font-size: 1.25rem; }
.section-heading a { font-family: var(--font-mono); font-size: 0.76rem; color: var(--gold); font-weight: 600; }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 44px; }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.post-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.35); border-color: var(--gold); transform: translateY(-3px); }
.post-card img { width: 100%; height: 190px; object-fit: cover; filter: brightness(0.85) saturate(1.05); }
.post-card-body { padding: 20px; }
.post-card-body h3 { font-size: 1.05rem; margin-bottom: 9px; line-height: 1.35; }
.post-card-body h3 a:hover { color: var(--gold); }
.post-card-body p { font-family: var(--font-body); color: var(--text-dim); font-size: 0.88rem; margin-bottom: 10px; }
.post-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.post-meta .cat {
  color: var(--gold);
  background: rgba(240,180,41,0.1);
  border: 1px solid rgba(240,180,41,0.25);
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ============ SIDEBAR ============ */
#sidebar .widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
#sidebar .widget-title {
  font-size: 0.98rem;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
#sidebar .widget p { color: var(--text-dim); font-size: 0.85rem; }
#sidebar .widget code { color: var(--gold); background: var(--card-bg2); padding: 2px 6px; border-radius: 4px; }

/* ============ SINGLE POST ============ */
.single-post-wrap { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.single-post-wrap h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 16px; line-height: 1.3; }
.single-post-wrap .post-meta { margin-bottom: 24px; }
.single-post-wrap .post-content { font-family: var(--font-body); font-size: 1.05rem; color: var(--text); }
.single-post-wrap .post-content p { margin-bottom: 20px; }
.single-post-wrap .post-content h2 { font-size: 1.5rem; margin: 34px 0 16px; border-left: 4px solid var(--gold); padding-left: 16px; }
.single-post-wrap .post-content img { border-radius: 10px; margin: 22px 0; filter: brightness(0.9); }
.single-post-wrap .post-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.single-post-wrap .post-content ul, .single-post-wrap .post-content ol { padding-left: 24px; margin-bottom: 18px; }
.single-post-wrap .post-content li { margin-bottom: 8px; }

/* ============ HOMEPAGE / CATEGORY AD SLOTS ============ */
.ad-slot-block {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  margin: 30px 0;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
/* ============ FOOTER ============ */
#site-footer {
  background: #06070a;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 50px 20px 0;
  font-size: 0.85rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}
@media (max-width: 760px) { .footer-main { grid-template-columns: 1fr 1fr; } }
.footer-brand .site-logo { font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { font-family: var(--font-body); font-size: 0.85rem; line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.86rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  text-align: center;
  font-size: 0.76rem;
}
#site-footer a { color: var(--gold); }

/* ============ TRUST STRIP ============ */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 40px 0;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 760px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-icon { font-size: 1.3rem; flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.88rem; color: var(--white); font-family: var(--font-display); margin-bottom: 2px; }
.trust-item span { font-family: var(--font-body); font-size: 0.76rem; color: var(--text-dim); }

/* ============ NEWSLETTER CTA ============ */
.newsletter-cta {
  background: linear-gradient(135deg, rgba(240,180,41,0.08), rgba(0,232,138,0.05));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px 32px;
  text-align: center;
  margin: 10px 0 40px;
}
.newsletter-cta h2 { font-size: 1.5rem; margin-bottom: 10px; }
.newsletter-cta p { font-family: var(--font-body); color: var(--text-dim); max-width: 520px; margin: 0 auto 22px; font-size: 0.92rem; }
.newsletter-form { display: flex; justify-content: center; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button {
  padding: 12px 22px;
  background: var(--gold);
  color: #1a1305;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background .2s;
}
.newsletter-form button:hover { background: var(--gold-h); }
