/*
Theme Name: GameZone News
Theme URI: https://kerupuk303.shop
Author: Custom
Author URI: https://kerupuk303.shop
Description: Tema berita game profesional dengan integrasi Claude AI + Unsplash, Adsense-ready, SEO optimal, mobile-first responsive. Cocok untuk niche game, teknologi, dan berita online.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamezone
Tags: news, blog, game, responsive, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:wght@400;700&display=swap');

/* ============================================================
   CSS VARIABLES / SKIN SYSTEM
   ============================================================ */
:root {
  /* Accent — bisa diganti via Customizer */
  --accent: #e63946;
  --accent-dark: #c1121f;
  --accent-light: #fff1f2;

  /* Layout */
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface2: #f9f9f9;
  --border: #e8e8e8;
  --border-strong: #d0d0d0;

  /* Typography */
  --text: #1a1a1a;
  --text2: #444444;
  --text3: #777777;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;

  /* Spacing */
  --container: 1200px;
  --sidebar-w: 300px;
  --gap: 20px;
  --radius: 6px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }
ul, ol { padding-left: 1.5em; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.site-main {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  padding: 24px 0 40px;
}
@media (max-width: 900px) {
  .site-main { grid-template-columns: 1fr; }
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--text);
  color: #aaa;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #333;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: #aaa; }
.top-bar a:hover { color: #fff; }
.top-bar-date { }
.top-bar-links { display: flex; gap: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.site-logo a {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
}
.site-logo span { color: var(--accent); }
.site-logo .tagline {
  font-size: 11px;
  font-weight: 400;
  color: var(--text3);
  display: block;
  margin-top: 2px;
  letter-spacing: 0;
}
.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  gap: 8px;
  flex: 1;
  max-width: 320px;
}
.header-search input {
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  outline: none;
  width: 100%;
  font-family: var(--font-sans);
}
.header-search input::placeholder { color: var(--text3); }
.header-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  padding: 0;
  font-size: 16px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.main-nav ul { list-style: none; display: flex; padding: 0; margin: 0; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-menu-parent > a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* Dropdown */
.main-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  flex-direction: column;
}
.main-nav ul li:hover > ul { display: flex; }
.main-nav ul li ul li a {
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  font-size: 13px;
}
.main-nav ul li ul li a:hover { background: var(--bg); }
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--text);
  padding: 8px;
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.breaking-label {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.breaking-ticker {
  flex: 1;
  overflow: hidden;
  padding: 0 16px;
}
.ticker-items {
  display: flex;
  animation: ticker 30s linear infinite;
  gap: 40px;
  white-space: nowrap;
}
.ticker-items a {
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
}
.ticker-items a:hover { color: var(--accent); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   ADSENSE SLOTS
   ============================================================ */
.ad-slot {
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin: 16px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 11px;
}
.ad-slot ins { display: block; width: 100%; }
.ad-leaderboard { min-height: 90px; }
.ad-rectangle { min-height: 250px; }
.ad-in-article { min-height: 280px; max-width: 336px; margin: 24px auto; }

/* ============================================================
   FEATURED POSTS — HOMEPAGE
   ============================================================ */
.featured-section { margin-bottom: 24px; }
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
}
@media (max-width: 700px) { .featured-grid { grid-template-columns: 1fr; } }

.featured-main {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.featured-main .post-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.featured-main .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-main:hover .post-thumb img { transform: scale(1.03); }
.featured-main .post-body { padding: 20px; }
.featured-main .post-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.featured-main .post-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}
.featured-main .post-title a { color: inherit; }
.featured-main .post-title a:hover { color: var(--accent); }
.featured-main .post-excerpt {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text3);
}
.post-meta .read-time::before { content: '⏱ '; }
.post-meta .post-date::before { content: '📅 '; }

.featured-list { display: flex; flex-direction: column; gap: 10px; }
.featured-list-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  gap: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.featured-list-item:hover { border-color: var(--accent); }
.featured-list-item .item-thumb {
  width: 100px;
  flex-shrink: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.featured-list-item .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-list-item .item-body {
  padding: 10px 10px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-list-item .item-cat {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.featured-list-item .item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-list-item .item-title a { color: inherit; }
.featured-list-item .item-title a:hover { color: var(--accent); }
.featured-list-item .item-date { font-size: 10px; color: var(--text3); margin-top: 4px; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}
.section-more {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   POST GRID
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 24px;
}
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.post-card .card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}
.post-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .card-thumb img { transform: scale(1.05); }
.post-card .card-body { padding: 14px; }
.post-card .card-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.post-card .card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .card-title a { color: inherit; }
.post-card .card-title a:hover { color: var(--accent); }
.post-card .card-meta {
  font-size: 11px;
  color: var(--text3);
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

/* ============================================================
   LIST POST (archive)
   ============================================================ */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-list-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  padding: 16px;
  transition: border-color 0.2s;
}
.post-list-item:hover { border-color: var(--accent); }
.post-list-item .list-thumb {
  width: 180px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.post-list-item .list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-item .list-body { flex: 1; }
.post-list-item .list-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.post-list-item .list-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}
.post-list-item .list-title a { color: inherit; }
.post-list-item .list-title a:hover { color: var(--accent); }
.post-list-item .list-excerpt { font-size: 13px; color: var(--text3); margin-bottom: 10px; }
@media (max-width: 600px) {
  .post-list-item { flex-direction: column; }
  .post-list-item .list-thumb { width: 100%; }
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-hero {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
  background: var(--bg);
}
.single-header { margin-bottom: 24px; }
.single-cats { display: flex; gap: 6px; margin-bottom: 12px; }
.single-cats a {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.single-title {
  font-family: var(--font-sans);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 14px;
}
.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text3);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.single-meta strong { color: var(--text2); }

/* Article content */
.entry-content {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text2);
}
.entry-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { margin: 16px 0 20px 20px; }
.entry-content li { margin-bottom: 8px; }
.entry-content ul.pros li::marker { content: "✓  "; color: #22c55e; }
.entry-content ul.cons li::marker { content: "✗  "; color: #ef4444; }
.entry-content p.intro {
  font-size: 17px;
  color: var(--text2);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 24px;
  font-style: italic;
}
.entry-content p.verdict {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0;
}
.entry-content .cta-box {
  background: linear-gradient(135deg, #fff1f2, #fff);
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  margin: 32px 0;
}
.entry-content .cta-box h3 { font-size: 20px; color: var(--text); margin-bottom: 8px; }
.entry-content .cta-box p { color: var(--text3); margin-bottom: 16px; font-size: 14px; }
.entry-content .cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s;
}
.entry-content .cta-btn:hover { background: var(--accent-dark); color: #fff; }
.entry-content img {
  border-radius: var(--radius);
  margin: 16px 0;
}
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  background: var(--bg);
  margin: 20px 0;
  font-style: italic;
  color: var(--text2);
}

/* Tags */
.post-tags { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}
.post-tags a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Share buttons */
.share-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.share-box span { font-size: 13px; font-weight: 600; color: var(--text2); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-tg { background: #0088cc; }
.share-copy { background: var(--text2); }

/* Related posts */
.related-posts { margin-top: 40px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.widget-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--accent);
  padding: 10px 16px;
}
.widget-body { padding: 14px; }

/* Recent posts widget */
.widget-recent-post {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.widget-recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.widget-recent-post img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.widget-recent-post .wp-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget-recent-post .wp-title a { color: inherit; }
.widget-recent-post .wp-title a:hover { color: var(--accent); }
.widget-recent-post .wp-date { font-size: 10px; color: var(--text3); margin-top: 3px; }

/* Category widget */
.widget-cat-list { list-style: none; padding: 0; }
.widget-cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.widget-cat-list li:last-child { border-bottom: none; }
.widget-cat-list a { color: var(--text2); font-weight: 500; }
.widget-cat-list a:hover { color: var(--accent); }
.widget-cat-list .count {
  background: var(--bg);
  color: var(--text3);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
}

/* Popular posts */
.popular-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.popular-item:last-child { border-bottom: none; }
.popular-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--border-strong);
  line-height: 1;
  flex-shrink: 0;
  min-width: 24px;
}
.popular-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.popular-title a { color: inherit; }
.popular-title a:hover { color: var(--accent); }

/* Blogroll */
.blogroll-list { list-style: none; padding: 0; }
.blogroll-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.blogroll-list li:last-child { border-bottom: none; }
.blogroll-list a { color: var(--text2); display: flex; align-items: center; gap: 6px; }
.blogroll-list a::before { content: '→'; color: var(--accent); font-size: 12px; }
.blogroll-list a:hover { color: var(--accent); }

/* Search widget */
.widget-search {
  display: flex;
  gap: 0;
}
.widget-search input {
  flex: 1;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 5px 0 0 5px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  font-family: var(--font-sans);
}
.widget-search button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 9px 14px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.widget-search button:hover { background: var(--accent-dark); }

/* ============================================================
   FLOATING CTA BAR
   ============================================================ */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--surface);
  border-top: 3px solid var(--accent);
  padding: 10px 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.floating-bar.hide { transform: translateY(100%); }
.floating-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fb-text strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.fb-text span { font-size: 12px; color: var(--text3); }
.fb-actions { display: flex; gap: 10px; align-items: center; }
.fb-btn {
  padding: 9px 20px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.fb-btn-primary { background: var(--accent); color: #fff; }
.fb-btn-primary:hover { background: var(--accent-dark); color: #fff; }
.fb-btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.fb-btn-outline:hover { background: var(--accent-light); }
.fb-close { background: none; border: none; color: var(--text3); font-size: 20px; cursor: pointer; padding: 4px 8px; }
.fb-close:hover { color: var(--text); }
@media (max-width: 600px) {
  .fb-text span { display: none; }
  .fb-btn-outline { display: none; }
}

/* ============================================================
   SUBSCRIBE MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--surface);
  border-radius: 12px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: var(--text3);
}
.modal-box h3 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.modal-box p { color: var(--text3); font-size: 14px; margin-bottom: 20px; }
.modal-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  font-family: var(--font-sans);
}
.modal-input:focus { border-color: var(--accent); }
.modal-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s;
}
.modal-submit:hover { background: var(--accent-dark); }
.modal-success { display: none; }
.modal-success p { color: #16a34a; font-weight: 600; font-size: 16px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--surface);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
}
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 32px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  transition: all 0.2s;
}
.pagination a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; }
.comment-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--text3); }
.comment-content { font-size: 14px; color: var(--text2); }
.comment-form input, .comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  font-family: var(--font-sans);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  margin-top: 40px;
  padding-bottom: 0;
}
.footer-top {
  padding: 40px 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  border-bottom: 1px solid #333;
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 13px; color: #888; line-height: 1.7; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px;
  background: #333;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: #ccc;
  font-size: 14px;
  transition: background 0.2s;
}
.footer-socials a:hover { background: var(--accent); color: #fff; }
.footer-widget-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { padding: 5px 0; }
.footer-links a { color: #888; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #555;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #555; }
.footer-bottom a:hover { color: var(--accent); }

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

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .top-bar { display: none; }
  .header-search { display: none; }
  .mobile-menu-toggle { display: block; }
  .main-nav ul { display: none; flex-direction: column; width: 100%; }
  .main-nav ul.open { display: flex; }
  .main-nav ul li ul { position: static; border: none; box-shadow: none; padding-left: 16px; }
  .main-nav ul li:hover > ul { display: none; }
  .main-nav ul li.open > ul { display: flex; }
  .breaking-bar { display: none; }
  body { padding-bottom: 70px; }
}

/* ============================================================
   LLMS META SUPPORT
   ============================================================ */
.llms-hidden { display: none; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .main-nav, .breaking-bar, .sidebar,
  .floating-bar, .share-box, .ad-slot, .site-footer { display: none !important; }
  .site-main { grid-template-columns: 1fr; }
  .entry-content { font-size: 12pt; }
}
