/*
Theme Name: SkitManna
Theme URI: https://skitmanna.com
Author: SkitManna Editorial Team
Author URI: https://skitmanna.com
Description: The #1 Nigerian skit script website — featuring viral skit scripts, character guides, acting tips, camera angles, and creator growth resources. Built for AdSense compliance, speed, and SEO.
Version: 1.0.0
Requires at least: 6.0
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: skitmanna
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, custom-colors
*/

/* =========================================================
   CSS RESET & BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #e84c3d;
  --primary-dk: #c0392b;
  --accent:     #f39c12;
  --dark:       #1a1a2e;
  --dark2:      #16213e;
  --text:       #2d2d2d;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --bg:         #f9fafb;
  --white:      #ffffff;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --font-main:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head:  'Georgia', 'Times New Roman', serif;
  --transition: .22s ease;
}

html { 
  scroll-behavior: smooth; 
  font-size: 16px;
  overflow-x: hidden;
}
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4em; }

/* =========================================================
   TYPOGRAPHY
========================================================= */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }

/* =========================================================
   LAYOUT
========================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-content {
    flex: 1;
    padding: 24px 0;
    width: 100%;
    overflow-x: hidden;
}
/* MOBILE TEXT FIX */
@media (max-width: 768px) {

    .content-area {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .entry-content,
    .entry-header,
    article,
    .single-post {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .entry-content p,
    .entry-content h1,
    .entry-content h2,
    .entry-content h3 {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .entry-content img {
        max-width: 100%;
        height: auto;
    }
}

.content-area { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.content-area > * {
    min-width: 0;
}
@media (max-width: 960px) { .content-area { grid-template-columns: 1fr; } }

/* =========================================================
   READING PROGRESS BAR
========================================================= */
#reading-progress {
  position: fixed; top: 0; left: 0; width: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999; transition: width .1s linear;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  background: var(--dark);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; max-width: 1200px; margin: 0 auto; height: 68px;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-title a {
  font-family: var(--font-head);
  font-size: 1.7rem; font-weight: 900;
  color: var(--white); letter-spacing: -1px;
  display: flex; align-items: center; gap: 6px;
}
.site-title a span.logo-accent { color: var(--primary); }
.site-title a span.logo-icon { font-size: 1.5rem; }
.site-description { color: rgba(255,255,255,.5); font-size: .75rem; margin-top: 2px; display: none; }

/* Nav */
.main-nav ul { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
  color: rgba(255,255,255,.85); padding: 8px 13px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; display: block;
  transition: all var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a { color: var(--white); background: rgba(255,255,255,.1); }

/* Dropdown */
.main-nav ul li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--dark2); min-width: 220px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 100;
}
.main-nav ul li:hover > ul { display: block; }
.main-nav ul li ul li a { color: rgba(255,255,255,.8); font-size: .85rem; padding: 8px 12px; border-radius: 6px; }
.main-nav ul li ul li a:hover { background: var(--primary); color: var(--white); }

/* Hamburger */
.menu-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.4);
  color: var(--white); border-radius: 6px; padding: 6px 10px; cursor: pointer;
  font-size: 1.2rem;
}
@media (max-width: 860px) {
  .menu-toggle { display: flex; align-items: center; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--dark2); padding: 16px 20px; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul li ul { position: static; display: none; box-shadow: none; padding-left: 16px; }
  .main-nav ul li ul.open { display: block; }
}

/* Header Search */
.header-search form { display: flex; align-items: center; gap: 6px; }
.header-search input {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); padding: 7px 12px; border-radius: 20px; font-size: .85rem; width: 180px;
}
.header-search input::placeholder { color: rgba(255,255,255,.4); }
.header-search button {
  background: var(--primary); border: none; color: var(--white); padding: 7px 12px;
  border-radius: 20px; cursor: pointer; font-size: .85rem;
}
@media (max-width: 680px) { .header-search { display: none; } }

/* =========================================================
   HERO SECTION
========================================================= */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, #0f3460 100%);
  padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section .container { position: relative; }
.hero-badge {
  display: inline-block; background: var(--primary); color: var(--white);
  padding: 4px 16px; border-radius: 20px; font-size: .8rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px;
}
.hero-section h1 { color: var(--white); margin-bottom: 16px; }
.hero-section p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 30px; font-weight: 700;
  font-size: .95rem; transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 15px rgba(232,76,61,.4); }
.btn-primary:hover { background: var(--primary-dk); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232,76,61,.5); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.7); }

/* Hero Stats */
.hero-stats { display: flex; gap: 32px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 1.8rem; font-weight: 900; color: var(--accent); font-family: var(--font-head); }
.hero-stat .label { color: rgba(255,255,255,.6); font-size: .8rem; margin-top: 2px; }

/* =========================================================
   CONTENT CARDS (What We Offer)
========================================================= */
.offers-section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.section-label {
  display: inline-block; background: rgba(232,76,61,.1); color: var(--primary);
  padding: 4px 14px; border-radius: 20px; font-size: .78rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px;
}

.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.offer-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.offer-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.offer-icon { font-size: 2.2rem; margin-bottom: 14px; }
.offer-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.offer-card p { color: var(--muted); font-size: .88rem; margin: 0; }

/* =========================================================
   POST CARDS
========================================================= */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--dark), var(--dark2)); overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-thumb .no-thumb {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.post-card-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: var(--white);
  padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.post-card-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: var(--dark);
  padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700;
}
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  display: flex; align-items: center; gap: 14px; color: var(--muted);
  font-size: .78rem; margin-bottom: 10px; flex-wrap: wrap;
}
.post-card-meta span { display: flex; align-items: center; gap: 4px; }
.post-card h2, .post-card h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.35; }
.post-card h2 a, .post-card h3 a { color: var(--dark); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--primary); }
.post-card p { color: var(--muted); font-size: .875rem; flex: 1; }
.post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-top: 1px solid var(--border); gap: 8px;
}
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-size: .85rem; font-weight: 700;
}
.read-more:hover { gap: 10px; color: var(--primary-dk); }
.post-views { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: 4px; }

/* Featured Post */
.featured-post {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); overflow: hidden; margin-bottom: 40px;
  display: grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 680px) { .featured-post { grid-template-columns: 1fr; } }
.featured-post-thumb { position: relative; background: linear-gradient(135deg, var(--dark), var(--dark2)); min-height: 280px; }
.featured-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-post-thumb .no-thumb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.featured-label {
  position: absolute; top: 16px; left: 16px;
  background: var(--accent); color: var(--dark);
  padding: 4px 14px; border-radius: 20px; font-size: .75rem; font-weight: 800;
  text-transform: uppercase;
}
.featured-post-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-post-body .post-card-cat { position: static; display: inline-block; margin-bottom: 12px; }
.featured-post-body h2 { font-size: 1.6rem; margin-bottom: 12px; }
.featured-post-body h2 a { color: var(--dark); }
.featured-post-body h2 a:hover { color: var(--primary); }
.featured-post-body p { color: var(--muted); margin-bottom: 20px; }

/* =========================================================
   SINGLE POST
========================================================= */
.entry-header { margin-bottom: 28px; }
.entry-header .post-meta {
  display: flex; align-items: center; gap: 16px; color: var(--muted);
  font-size: .82rem; margin: 12px 0; flex-wrap: wrap;
}
.entry-header .post-meta span { display: flex; align-items: center; gap: 5px; }
.entry-thumbnail { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/7; background: var(--dark); }
.entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.entry-content { font-size: 1rem; line-height: 1.85; color: var(--text); }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.8em 0 .8em; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { margin-bottom: 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content strong { color: var(--dark); }
.entry-content blockquote {
  border-left: 4px solid var(--primary); padding: 12px 20px; margin: 1.5em 0;
  background: rgba(232,76,61,.06); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--muted);
}

/* Skit script formatting */
.skit-section {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin: 24px 0; overflow: hidden;
}
.skit-section-header {
  background: linear-gradient(90deg, var(--dark), var(--dark2));
  color: var(--white); padding: 12px 20px;
  font-weight: 700; font-size: .9rem; letter-spacing: .5px;
  display: flex; align-items: center; gap: 8px;
}
.skit-section-body { padding: 20px; }
.dialogue-line { margin-bottom: 14px; padding: 10px 14px; border-radius: var(--radius); }
.dialogue-line .char-name { font-weight: 800; color: var(--primary); font-size: .9rem; display: block; margin-bottom: 3px; }
.dialogue-line .char-line { color: var(--text); line-height: 1.6; }
.dialogue-line.action-line { background: rgba(243,156,18,.08); border-left: 3px solid var(--accent); font-style: italic; color: var(--muted); }
.char-odd { background: rgba(232,76,61,.04); border-left: 3px solid var(--primary); }
.char-even { background: rgba(26,26,46,.03); border-left: 3px solid var(--dark2); }

/* =========================================================
   POST INTERACTIONS (Like/Share/Comments)
========================================================= */
.post-interactions {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 20px 24px; margin: 28px 0; display: flex; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.like-btn {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: rgba(232,76,61,.08); border: 2px solid rgba(232,76,61,.2);
  border-radius: 30px; cursor: pointer; font-weight: 700; color: var(--primary);
  transition: all var(--transition); font-size: .9rem;
}
.like-btn:hover, .like-btn.liked {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: flex; align-items: center; gap: 6px; padding: 9px 16px;
  border-radius: 25px; font-size: .82rem; font-weight: 700; cursor: pointer;
  border: none; transition: all var(--transition); text-decoration: none;
}
.share-btn-wa { background: #25d366; color: white; }
.share-btn-fb { background: #1877f2; color: white; }
.share-btn-tw { background: #000; color: white; }
.share-btn:hover { opacity: .85; transform: translateY(-2px); color: white; }
.print-btn {
  display: flex; align-items: center; gap: 6px; padding: 9px 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 25px;
  font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--muted);
  transition: all var(--transition);
}
.print-btn:hover { border-color: var(--primary); color: var(--primary); }

/* =========================================================
   AUTHOR BIO BOX
========================================================= */
.author-box {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  border-radius: var(--radius-lg); padding: 28px; margin: 28px 0;
  display: flex; gap: 20px; align-items: flex-start;
}
.author-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info .author-name { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.author-info .author-role { color: var(--accent); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.author-info p { color: rgba(255,255,255,.7); font-size: .875rem; margin: 0; }

/* =========================================================
   NEWSLETTER BOX
========================================================= */
.newsletter-box {
  background: linear-gradient(135deg, var(--primary) 0%, #c0392b 100%);
  border-radius: var(--radius-lg); padding: 36px 32px; margin: 28px 0; text-align: center;
}
.newsletter-box h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 8px; }
.newsletter-box p { color: rgba(255,255,255,.85); margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 12px 16px; border-radius: 30px; border: none;
  font-size: .9rem; outline: none;
}
.newsletter-form button {
  background: var(--dark); color: var(--white); border: none; padding: 12px 22px;
  border-radius: 30px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--accent); color: var(--dark); }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* =========================================================
   BREADCRUMBS
========================================================= */
.breadcrumbs {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 10px 0; font-size: .82rem; color: var(--muted);
}
.breadcrumbs .container { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span.sep { color: var(--border); }
.breadcrumbs span.current { color: var(--muted); }

/* =========================================================
   SIDEBAR
========================================================= */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow);
}
.widget-title {
  background: linear-gradient(90deg, var(--dark), var(--dark2));
  color: var(--white); padding: 13px 18px; font-size: .9rem;
  font-weight: 700; letter-spacing: .5px; display: flex; align-items: center; gap: 8px;
}
.widget-body { padding: 16px; }
.widget-post {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.widget-post:last-child { border-bottom: none; padding-bottom: 0; }
.widget-post-thumb {
  width: 64px; height: 64px; border-radius: var(--radius); overflow: hidden;
  flex-shrink: 0; background: var(--dark); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-post-info h4 { font-size: .85rem; line-height: 1.35; margin-bottom: 4px; }
.widget-post-info h4 a { color: var(--dark); }
.widget-post-info h4 a:hover { color: var(--primary); }
.widget-post-meta { color: var(--muted); font-size: .75rem; }

/* Sidebar ad box */
.sidebar-ad {
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 24px; text-align: center; color: var(--muted); font-size: .8rem;
}
.sidebar-ad p { margin: 0; }

/* =========================================================
   CATEGORIES SECTION
========================================================= */
.categories-section { padding: 60px 0; background: var(--white); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-card {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
  transition: all var(--transition); display: block; color: var(--white);
  border: 1px solid rgba(255,255,255,.06);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--white); background: linear-gradient(135deg, var(--primary-dk), var(--primary)); }
.cat-card .cat-emoji { font-size: 2.5rem; margin-bottom: 10px; display: block; }
.cat-card h3 { color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.cat-card .cat-count { color: rgba(255,255,255,.5); font-size: .8rem; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); margin-top: auto; }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .footer-logo {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 900;
  color: var(--white); margin-bottom: 12px;
}
.footer-brand .footer-logo span { color: var(--primary); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .875rem; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
  color: rgba(255,255,255,.6); transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: white; }

.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; font-family: var(--font-main); font-weight: 700; }
.footer-menu { list-style: none; padding: 0; }
.footer-menu li { margin-bottom: 9px; }
.footer-menu a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color var(--transition); }
.footer-menu a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,.5); font-size: .8rem; margin: 0; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.5); font-size: .8rem; }
.footer-legal a:hover { color: var(--primary); }

/* =========================================================
   COOKIE CONSENT
========================================================= */
#cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--dark2); border-top: 3px solid var(--primary);
  padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  transform: translateY(100%); transition: transform .4s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
#cookie-consent.show { transform: translateY(0); }
#cookie-consent p { color: rgba(255,255,255,.85); font-size: .875rem; margin: 0; flex: 1; }
#cookie-consent a { color: var(--primary); }
.cookie-btns { display: flex; gap: 10px; }
.cookie-accept {
  background: var(--primary); color: white; border: none; padding: 9px 20px;
  border-radius: 25px; font-weight: 700; cursor: pointer; font-size: .85rem;
}
.cookie-decline {
  background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.3);
  padding: 9px 16px; border-radius: 25px; cursor: pointer; font-size: .85rem;
}

/* =========================================================
   BACK TO TOP
========================================================= */
#back-to-top {
  position: fixed; bottom: 80px; right: 24px; width: 46px; height: 46px;
  background: var(--primary); color: white; border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; z-index: 800;
  box-shadow: 0 4px 16px rgba(232,76,61,.5);
  opacity: 0; visibility: hidden; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--primary-dk); transform: translateY(-3px); }

/* =========================================================
   PAGINATION
========================================================= */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--border);
  font-weight: 600; font-size: .9rem; background: var(--white);
  transition: all var(--transition); color: var(--text);
}
.pagination a:hover, .pagination span.current {
  background: var(--primary); border-color: var(--primary); color: white;
}

/* =========================================================
   ARCHIVE PAGE
========================================================= */
.archive-header {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  padding: 48px 0; text-align: center; margin-bottom: 0;
}
.archive-header h1 { color: var(--white); }
.archive-header p { color: rgba(255,255,255,.7); font-size: 1rem; margin-top: 8px; }

/* =========================================================
   TAGS
========================================================= */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag-list a {
  background: rgba(232,76,61,.08); color: var(--primary); padding: 4px 14px;
  border-radius: 20px; font-size: .78rem; font-weight: 600; border: 1px solid rgba(232,76,61,.2);
  transition: all var(--transition);
}
.tag-list a:hover { background: var(--primary); color: white; }

/* =========================================================
   SEARCH PAGE
========================================================= */
.search-header { padding: 40px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.search-form-large { display: flex; max-width: 560px; }
.search-form-large input {
  flex: 1; padding: 14px 20px; border: 2px solid var(--border); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius); font-size: 1rem; outline: none;
}
.search-form-large input:focus { border-color: var(--primary); }
.search-form-large button {
  background: var(--primary); color: white; border: 2px solid var(--primary);
  padding: 0 24px; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-weight: 700;
}

/* =========================================================
   404 PAGE
========================================================= */
.error-page { text-align: center; padding: 80px 20px; }
.error-page .error-code { font-size: 8rem; font-weight: 900; color: var(--primary); opacity: .15; line-height: 1; margin-bottom: -20px; }
.error-page h1 { font-size: 2rem; margin-bottom: 16px; }
.error-page p { color: var(--muted); max-width: 480px; margin: 0 auto 28px; }

/* =========================================================
   PAGE TEMPLATE (Legal, Contact, Sitemap)
========================================================= */
.page-header {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  padding: 60px 0; text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,.65); margin-top: 10px; }
.page-content-wrap { max-width: 860px; margin: 0 auto; padding: 40px 20px; }
.page-content { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.page-content h2 { margin: 1.8em 0 .6em; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.page-content h3 { margin: 1.4em 0 .5em; color: var(--primary); }
.page-content p, .page-content li { color: var(--text); line-height: 1.8; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.page-content th { background: var(--dark); color: white; padding: 10px 14px; text-align: left; }
.page-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.page-content tr:nth-child(even) td { background: var(--bg); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: var(--font-main); transition: border-color var(--transition);
  background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: white; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit { background: var(--primary); color: white; border: none; padding: 13px 32px; border-radius: 30px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all var(--transition); }
.form-submit:hover { background: var(--primary-dk); transform: translateY(-2px); }
.form-success { background: rgba(39,174,96,.1); border: 1px solid #27ae60; color: #27ae60; padding: 14px 18px; border-radius: var(--radius); display: none; font-weight: 600; }

/* Sitemap List */
.sitemap-section { margin-bottom: 32px; }
.sitemap-section h3 { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.sitemap-list { list-style: none; padding: 0; columns: 2; }
.sitemap-list li { margin-bottom: 8px; break-inside: avoid; }
.sitemap-list li::before { content: '→ '; color: var(--primary); font-weight: 700; }
.sitemap-list a { color: var(--text); font-size: .9rem; }
.sitemap-list a:hover { color: var(--primary); }
@media (max-width: 480px) { .sitemap-list { columns: 1; } }

/* =========================================================
   UTILITY
========================================================= */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.section-divider { height: 1px; background: var(--border); margin: 48px 0; }
.load-more-wrap { text-align: center; margin: 32px 0; }
.no-results { text-align: center; padding: 60px 20px; color: var(--muted); }
.no-results h2 { color: var(--dark); margin-bottom: 12px; }

/* Read time & views badge */
.read-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.read-meta .badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px;
  background: rgba(232,76,61,.08); color: var(--primary); border-radius: 20px;
  font-size: .78rem; font-weight: 600; border: 1px solid rgba(232,76,61,.15);
}

/* Highlight box for tips */
.tip-box {
  background: rgba(243,156,18,.08); border: 1px solid rgba(243,156,18,.3);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 14px 18px; margin: 16px 0;
}
.tip-box strong { color: var(--accent); }

/* Print */
@media print {
  .site-header, .site-footer, .sidebar, .post-interactions, #cookie-consent,
  #back-to-top, #reading-progress, .breadcrumbs, .newsletter-box { display: none !important; }
  .content-area { grid-template-columns: 1fr !important; }
  .entry-content { font-size: 11pt; }
  a { color: inherit !important; text-decoration: none !important; }
}
