/*
Theme Name: Lira City Post
Theme URI: https://liracitypost.com
Author: Lira City Post Team
Author URI: https://liracitypost.com
Description: A professional, modern, high-performance WordPress news theme for digital media publishing. Features breaking news ticker, dark mode, SEO schema, ad placements, and magazine-style layouts.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: liracitypost
Tags: news, magazine, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, editor-style, block-styles, wide-blocks
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ========================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */
:root {
  /* Primary Blue Palette */
  --lcp-primary-50: #eff6ff;
  --lcp-primary-100: #dbeafe;
  --lcp-primary-200: #bfdbfe;
  --lcp-primary-300: #93c5fd;
  --lcp-primary-400: #60a5fa;
  --lcp-primary-500: #3b82f6;
  --lcp-primary-600: #1a56db;
  --lcp-primary-700: #1e40af;
  --lcp-primary-800: #1e3a8a;
  --lcp-primary-900: #1e2d5f;

  /* Neutrals */
  --lcp-gray-50: #f8fafc;
  --lcp-gray-100: #f1f5f9;
  --lcp-gray-200: #e2e8f0;
  --lcp-gray-300: #cbd5e1;
  --lcp-gray-400: #94a3b8;
  --lcp-gray-500: #64748b;
  --lcp-gray-600: #475569;
  --lcp-gray-700: #334155;
  --lcp-gray-800: #1e293b;
  --lcp-gray-900: #0f172a;

  /* Accent / Semantic */
  --lcp-accent: #f59e0b;
  --lcp-success: #10b981;
  --lcp-danger: #ef4444;
  --lcp-info: #06b6d4;

  /* Surfaces & Text (Light Mode defaults) */
  --lcp-bg: #ffffff;
  --lcp-bg-alt: var(--lcp-gray-50);
  --lcp-bg-card: #ffffff;
  --lcp-bg-header: #ffffff;
  --lcp-text: var(--lcp-gray-900);
  --lcp-text-secondary: var(--lcp-gray-600);
  --lcp-text-muted: var(--lcp-gray-400);
  --lcp-border: var(--lcp-gray-200);
  --lcp-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --lcp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px rgba(0, 0, 0, .04);

  /* Typography */
  --lcp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lcp-font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --lcp-font-mono: 'Fira Code', monospace;
  --lcp-fs-xs: 0.75rem;
  --lcp-fs-sm: 0.875rem;
  --lcp-fs-base: 1rem;
  --lcp-fs-lg: 1.125rem;
  --lcp-fs-xl: 1.25rem;
  --lcp-fs-2xl: 1.5rem;
  --lcp-fs-3xl: 1.875rem;
  --lcp-fs-4xl: 2.25rem;
  --lcp-fs-5xl: 3rem;
  --lcp-line-height: 1.7;
  --lcp-line-height-tight: 1.25;

  /* Spacing */
  --lcp-space-xs: 0.25rem;
  --lcp-space-sm: 0.5rem;
  --lcp-space-md: 1rem;
  --lcp-space-lg: 1.5rem;
  --lcp-space-xl: 2rem;
  --lcp-space-2xl: 3rem;
  --lcp-space-3xl: 4rem;

  /* Layout */
  --lcp-container: 1280px;
  --lcp-container-wide: 1440px;
  --lcp-sidebar-width: 320px;
  --lcp-header-height: 64px;
  --lcp-radius: 8px;
  --lcp-radius-sm: 4px;
  --lcp-radius-lg: 12px;
  --lcp-transition: 0.2s ease;
}

/* ========================================
   2. DARK MODE
   ======================================== */
.dark-mode {
  --lcp-bg: var(--lcp-gray-900);
  --lcp-bg-alt: var(--lcp-gray-800);
  --lcp-bg-card: var(--lcp-gray-800);
  --lcp-bg-header: var(--lcp-gray-900);
  --lcp-text: #e2e8f0;
  --lcp-text-secondary: var(--lcp-gray-400);
  --lcp-text-muted: var(--lcp-gray-500);
  --lcp-border: var(--lcp-gray-700);
  --lcp-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  --lcp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .4);
}

/* ========================================
   3. RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--lcp-font-sans);
  font-size: var(--lcp-fs-base);
  line-height: var(--lcp-line-height);
  color: var(--lcp-text);
  background-color: var(--lcp-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--lcp-transition), color var(--lcp-transition);
}

a {
  color: var(--lcp-primary-600);
  text-decoration: none;
  transition: color var(--lcp-transition);
}

a:hover {
  color: var(--lcp-primary-700);
}

.dark-mode a {
  color: var(--lcp-primary-400);
}

.dark-mode a:hover {
  color: var(--lcp-primary-300);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ========================================
   4. TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--lcp-font-sans);
  font-weight: 700;
  line-height: var(--lcp-line-height-tight);
  color: var(--lcp-text);
}

h1 {
  font-size: var(--lcp-fs-4xl);
}

h2 {
  font-size: var(--lcp-fs-3xl);
}

h3 {
  font-size: var(--lcp-fs-2xl);
}

h4 {
  font-size: var(--lcp-fs-xl);
}

h5 {
  font-size: var(--lcp-fs-lg);
}

h6 {
  font-size: var(--lcp-fs-base);
}

.entry-content {
  font-family: var(--lcp-font-serif);
  font-size: var(--lcp-fs-lg);
  line-height: 1.8;
}

.entry-content p {
  margin-bottom: var(--lcp-space-lg);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: var(--lcp-space-2xl);
  margin-bottom: var(--lcp-space-md);
}

.entry-content blockquote {
  border-left: 4px solid var(--lcp-primary-600);
  padding: var(--lcp-space-md) var(--lcp-space-lg);
  margin: var(--lcp-space-xl) 0;
  background: var(--lcp-bg-alt);
  border-radius: 0 var(--lcp-radius) var(--lcp-radius) 0;
  font-style: italic;
  color: var(--lcp-text-secondary);
}

.entry-content ul,
.entry-content ol {
  margin: var(--lcp-space-md) 0 var(--lcp-space-md) var(--lcp-space-xl);
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: var(--lcp-space-sm);
}

.entry-content a {
  text-decoration: underline;
}

.entry-content figure {
  margin: var(--lcp-space-xl) 0;
}

.entry-content figcaption {
  font-family: var(--lcp-font-sans);
  font-size: var(--lcp-fs-sm);
  color: var(--lcp-text-muted);
  margin-top: var(--lcp-space-sm);
}

.entry-content pre {
  background: var(--lcp-gray-900);
  color: #e2e8f0;
  padding: var(--lcp-space-lg);
  border-radius: var(--lcp-radius);
  overflow-x: auto;
  font-family: var(--lcp-font-mono);
  font-size: var(--lcp-fs-sm);
  margin: var(--lcp-space-xl) 0;
}

/* ========================================
   5. LAYOUT
   ======================================== */
.lcp-container {
  width: 100%;
  max-width: var(--lcp-container);
  margin: 0 auto;
  padding: 0 var(--lcp-space-md);
}

.lcp-container-wide {
  max-width: var(--lcp-container-wide);
  margin: 0 auto;
  padding: 0 var(--lcp-space-md);
}

.lcp-main-grid {
  display: grid;
  grid-template-columns: 1fr var(--lcp-sidebar-width);
  gap: var(--lcp-space-2xl);
  align-items: start;
}

@media (max-width: 1024px) {
  .lcp-main-grid {
    grid-template-columns: 1fr;
  }
}

.lcp-section {
  padding: var(--lcp-space-2xl) 0;
}

.lcp-section-alt {
  background: var(--lcp-bg-alt);
}

.lcp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--lcp-space-xl);
  padding-bottom: var(--lcp-space-md);
  border-bottom: 3px solid var(--lcp-primary-600);
}

.lcp-section-title {
  font-size: var(--lcp-fs-2xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lcp-section-link {
  font-size: var(--lcp-fs-sm);
  font-weight: 600;
  color: var(--lcp-primary-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   6. HEADER
   ======================================== */
.lcp-header {
  background: var(--lcp-bg-header);
  border-bottom: 1px solid var(--lcp-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color var(--lcp-transition);
}

.lcp-header.scrolled {
  box-shadow: var(--lcp-shadow-lg);
}

.lcp-header.hidden {
  transform: translateY(-100%);
}

.lcp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--lcp-header-height);
}

.lcp-logo a {
  font-size: var(--lcp-fs-2xl);
  font-weight: 900;
  color: var(--lcp-text);
  letter-spacing: -0.02em;
}

.lcp-logo img {
  max-height: 44px;
  width: auto;
}

.lcp-logo .logo-accent {
  color: var(--lcp-primary-600);
}

/* Primary Navigation */
.lcp-nav {
  display: flex;
  align-items: center;
  gap: var(--lcp-space-xs);
}

.lcp-nav a {
  color: var(--lcp-text);
  font-weight: 600;
  font-size: var(--lcp-fs-sm);
  padding: var(--lcp-space-sm) var(--lcp-space-md);
  border-radius: var(--lcp-radius-sm);
  transition: background var(--lcp-transition), color var(--lcp-transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lcp-nav a:hover,
.lcp-nav .current-menu-item>a,
.lcp-nav .current_page_item>a {
  background: var(--lcp-primary-50);
  color: var(--lcp-primary-600);
}

.dark-mode .lcp-nav a:hover,
.dark-mode .lcp-nav .current-menu-item>a {
  background: rgba(59, 130, 246, .15);
  color: var(--lcp-primary-400);
}

/* Sub-menu dropdown */
.lcp-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--lcp-bg-card);
  border: 1px solid var(--lcp-border);
  border-radius: var(--lcp-radius);
  box-shadow: var(--lcp-shadow-lg);
  min-width: 200px;
  padding: var(--lcp-space-sm) 0;
  z-index: 100;
}

.lcp-nav li {
  position: relative;
}

.lcp-nav li:hover>.sub-menu {
  display: block;
}

.lcp-nav .sub-menu a {
  display: block;
  text-transform: none;
  padding: var(--lcp-space-sm) var(--lcp-space-md);
  font-weight: 500;
}

/* Header Actions */
.lcp-header-actions {
  display: flex;
  align-items: center;
  gap: var(--lcp-space-sm);
}

.lcp-header-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--lcp-text);
  transition: background var(--lcp-transition);
}

.lcp-header-btn:hover {
  background: var(--lcp-bg-alt);
}

.lcp-header-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Menu Toggle */
.lcp-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.lcp-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lcp-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.lcp-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.lcp-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.lcp-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .lcp-menu-toggle {
    display: flex;
  }

  .lcp-nav {
    display: none;
    position: fixed;
    top: var(--lcp-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--lcp-bg);
    flex-direction: column;
    padding: var(--lcp-space-xl);
    gap: var(--lcp-space-sm);
    overflow-y: auto;
    z-index: 999;
  }

  .lcp-nav.active {
    display: flex;
  }

  .lcp-nav a {
    font-size: var(--lcp-fs-lg);
    padding: var(--lcp-space-md);
  }

  .lcp-nav .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--lcp-space-lg);
  }
}

/* ========================================
   7. BREAKING NEWS TICKER
   ======================================== */
.lcp-ticker {
  background: var(--lcp-primary-700);
  color: #fff;
  font-size: var(--lcp-fs-sm);
  overflow: hidden;
  white-space: nowrap;
}

.lcp-ticker-inner {
  display: flex;
  align-items: center;
  height: 36px;
}

.lcp-ticker-label {
  background: var(--lcp-danger);
  color: #fff;
  font-weight: 700;
  padding: 0 var(--lcp-space-md);
  height: 100%;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-size: var(--lcp-fs-xs);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  position: relative;
}

.lcp-ticker-label::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  border-left: 8px solid var(--lcp-danger);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
}

.lcp-ticker-track {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  padding-left: var(--lcp-space-lg);
}

.lcp-ticker-track:hover {
  animation-play-state: paused;
}

.lcp-ticker-item {
  padding: 0 var(--lcp-space-2xl);
  flex-shrink: 0;
}

.lcp-ticker-item a {
  color: #fff;
  font-weight: 500;
}

.lcp-ticker-item a:hover {
  text-decoration: underline;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ========================================
   8. HERO SECTION
   ======================================== */
.lcp-hero {
  position: relative;
  border-radius: var(--lcp-radius-lg);
  overflow: hidden;
  margin-bottom: var(--lcp-space-xl);
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

.lcp-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lcp-hero:hover .lcp-hero-img {
  transform: scale(1.03);
}

.lcp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .3) 50%, transparent 100%);
}

.lcp-hero-content {
  position: relative;
  z-index: 2;
  padding: var(--lcp-space-2xl);
  color: #fff;
  max-width: 700px;
}

.lcp-hero-content .cat-badge {
  margin-bottom: var(--lcp-space-md);
}

.lcp-hero-title {
  font-size: var(--lcp-fs-4xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--lcp-space-md);
  line-height: 1.2;
}

.lcp-hero-excerpt {
  font-size: var(--lcp-fs-lg);
  color: rgba(255, 255, 255, .85);
  margin-bottom: var(--lcp-space-md);
  line-height: 1.6;
}

.lcp-hero-meta {
  font-size: var(--lcp-fs-sm);
  color: rgba(255, 255, 255, .7);
}

.lcp-hero-meta a {
  color: rgba(255, 255, 255, .9);
}

@media (max-width: 768px) {
  .lcp-hero {
    min-height: 320px;
  }

  .lcp-hero-title {
    font-size: var(--lcp-fs-2xl);
  }

  .lcp-hero-content {
    padding: var(--lcp-space-lg);
  }
}

/* ========================================
   9. POST CARDS
   ======================================== */
.lcp-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--lcp-space-xl);
}

.lcp-post-card {
  background: var(--lcp-bg-card);
  border: 1px solid var(--lcp-border);
  border-radius: var(--lcp-radius);
  overflow: hidden;
  transition: transform var(--lcp-transition), box-shadow var(--lcp-transition);
}

.lcp-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lcp-shadow-lg);
}

.lcp-post-card-img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}

.lcp-post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lcp-post-card:hover .lcp-post-card-img img {
  transform: scale(1.05);
}

.lcp-post-card-body {
  padding: var(--lcp-space-lg);
}

.lcp-post-card-title {
  font-size: var(--lcp-fs-lg);
  font-weight: 700;
  margin-bottom: var(--lcp-space-sm);
  line-height: 1.3;
}

.lcp-post-card-title a {
  color: var(--lcp-text);
}

.lcp-post-card-title a:hover {
  color: var(--lcp-primary-600);
}

.lcp-post-card-excerpt {
  font-size: var(--lcp-fs-sm);
  color: var(--lcp-text-secondary);
  margin-bottom: var(--lcp-space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lcp-post-card-meta {
  font-size: var(--lcp-fs-xs);
  color: var(--lcp-text-muted);
  display: flex;
  align-items: center;
  gap: var(--lcp-space-md);
}

/* Horizontal card variant */
.lcp-post-card-horizontal {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.lcp-post-card-horizontal .lcp-post-card-img {
  aspect-ratio: auto;
  height: 100%;
}

@media (max-width: 600px) {
  .lcp-post-card-horizontal {
    grid-template-columns: 120px 1fr;
  }
}

/* ========================================
   10. CATEGORY BADGE
   ======================================== */
.cat-badge {
  display: inline-block;
  font-size: var(--lcp-fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--lcp-radius-sm);
  background: var(--lcp-primary-600);
  color: #fff;
}

.cat-badge:hover {
  background: var(--lcp-primary-700);
  color: #fff;
}

.cat-badge-politics {
  background: #7c3aed;
}

.cat-badge-business {
  background: #059669;
}

.cat-badge-sports {
  background: #d97706;
}

.cat-badge-tech {
  background: #0891b2;
}

.cat-badge-entertainment {
  background: #db2777;
}

.cat-badge-opinion {
  background: var(--lcp-gray-700);
}

/* ========================================
   11. SIDEBAR — MODERN DESIGN
   ======================================== */
.lcp-sidebar {
  position: sticky;
  top: calc(var(--lcp-header-height) + var(--lcp-space-xl));
  display: flex;
  flex-direction: column;
  gap: var(--lcp-space-lg);
}

.lcp-widget {
  background: var(--lcp-bg-card);
  border: 1px solid var(--lcp-border);
  border-radius: var(--lcp-radius-lg);
  padding: var(--lcp-space-lg);
  transition: box-shadow var(--lcp-transition);
}

.lcp-widget:hover {
  box-shadow: var(--lcp-shadow);
}

.lcp-widget-title {
  font-size: var(--lcp-fs-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: var(--lcp-space-sm);
  margin-bottom: var(--lcp-space-md);
  border-bottom: 2px solid var(--lcp-primary-600);
  display: flex;
  align-items: center;
}

/* ── Trending Posts ── */
.lcp-sidebar-post {
  display: flex;
  align-items: flex-start;
  gap: var(--lcp-space-sm);
  padding: var(--lcp-space-sm) 0;
}

.lcp-sidebar-post+.lcp-sidebar-post {
  border-top: 1px solid var(--lcp-border);
  padding-top: var(--lcp-space-md);
  margin-top: var(--lcp-space-sm);
}

.lcp-sidebar-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lcp-primary-50);
  color: var(--lcp-primary-600);
  font-weight: 900;
  font-size: var(--lcp-fs-sm);
  flex-shrink: 0;
  margin-top: 2px;
}

.dark-mode .lcp-sidebar-rank {
  background: rgba(59, 130, 246, .15);
  color: var(--lcp-primary-400);
}

.lcp-sidebar-post-content {
  display: flex;
  gap: var(--lcp-space-sm);
  flex: 1;
  min-width: 0;
}

.lcp-sidebar-post-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border-radius: var(--lcp-radius-sm);
  overflow: hidden;
}

.lcp-sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lcp-sidebar-post:hover .lcp-sidebar-post-thumb img {
  transform: scale(1.08);
}

.lcp-sidebar-post-info {
  flex: 1;
  min-width: 0;
}

.lcp-sidebar-post-title {
  display: block;
  font-size: var(--lcp-fs-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--lcp-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--lcp-transition);
}

.lcp-sidebar-post-title:hover {
  color: var(--lcp-primary-600);
}

.lcp-sidebar-post-meta {
  font-size: var(--lcp-fs-xs);
  color: var(--lcp-text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lcp-meta-dot {
  opacity: .4;
}

/* ── Categories ── */
.lcp-sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lcp-sidebar-cat-item {
  display: flex;
  align-items: center;
  gap: var(--lcp-space-sm);
  padding: 8px 10px;
  border-radius: var(--lcp-radius-sm);
  transition: background var(--lcp-transition);
  color: var(--lcp-text);
}

.lcp-sidebar-cat-item:hover {
  background: var(--lcp-bg-alt);
  color: var(--lcp-text);
}

.lcp-sidebar-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lcp-sidebar-cat-name {
  flex: 1;
  font-size: var(--lcp-fs-sm);
  font-weight: 600;
}

.lcp-sidebar-cat-count {
  font-size: var(--lcp-fs-xs);
  font-weight: 700;
  color: var(--lcp-text-muted);
  background: var(--lcp-bg-alt);
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 28px;
  text-align: center;
}

/* ── Social Grid ── */
.lcp-sidebar-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lcp-sidebar-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--lcp-radius);
  color: #fff !important;
  font-size: var(--lcp-fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform var(--lcp-transition), box-shadow var(--lcp-transition);
}

.lcp-sidebar-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  color: #fff;
}

/* ── Newsletter Card ── */
.lcp-widget-newsletter-sidebar {
  background: linear-gradient(135deg, var(--lcp-primary-700), var(--lcp-primary-900)) !important;
  border: none !important;
  color: #fff;
}

.lcp-sidebar-newsletter-inner {
  text-align: center;
  padding: var(--lcp-space-sm);
}

.lcp-sidebar-nl-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(255, 255, 255, .25);
  border-radius: var(--lcp-radius-sm);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: var(--lcp-fs-sm);
  outline: none;
  margin-bottom: 8px;
  transition: border-color var(--lcp-transition);
}

.lcp-sidebar-nl-input::placeholder {
  color: rgba(255, 255, 255, .5);
}

.lcp-sidebar-nl-input:focus {
  border-color: rgba(255, 255, 255, .7);
}

.lcp-sidebar-nl-btn {
  width: 100%;
  padding: 10px;
  background: #fff;
  color: var(--lcp-primary-700);
  font-weight: 700;
  font-size: var(--lcp-fs-sm);
  border: none;
  border-radius: var(--lcp-radius-sm);
  cursor: pointer;
  transition: transform var(--lcp-transition), box-shadow var(--lcp-transition);
}

.lcp-sidebar-nl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

/* ── Legacy trending (widget compat) ── */
.lcp-trending-item {
  display: flex;
  gap: var(--lcp-space-md);
  padding: var(--lcp-space-md) 0;
  border-bottom: 1px solid var(--lcp-border);
}

.lcp-trending-item:last-child {
  border-bottom: none;
}

.lcp-trending-num {
  font-size: var(--lcp-fs-2xl);
  font-weight: 900;
  color: var(--lcp-primary-600);
  line-height: 1;
  min-width: 32px;
}

.lcp-trending-title {
  font-size: var(--lcp-fs-sm);
  font-weight: 600;
  line-height: 1.4;
}

.lcp-trending-title a {
  color: var(--lcp-text);
}

.lcp-trending-title a:hover {
  color: var(--lcp-primary-600);
}

.lcp-trending-meta {
  font-size: var(--lcp-fs-xs);
  color: var(--lcp-text-muted);
  margin-top: var(--lcp-space-xs);
}

/* ========================================
   12. SINGLE POST
   ======================================== */
.lcp-article-header {
  max-width: 800px;
  margin: 0 auto var(--lcp-space-2xl);
  text-align: center;
}

.lcp-article-header .cat-badge {
  margin-bottom: var(--lcp-space-md);
}

.lcp-article-title {
  font-size: var(--lcp-fs-5xl);
  font-weight: 800;
  margin-bottom: var(--lcp-space-md);
  line-height: 1.15;
}

.lcp-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--lcp-space-lg);
  color: var(--lcp-text-secondary);
  font-size: var(--lcp-fs-sm);
  flex-wrap: wrap;
}

.lcp-article-meta-item {
  display: flex;
  align-items: center;
  gap: var(--lcp-space-xs);
}

.lcp-article-meta svg {
  width: 16px;
  height: 16px;
  opacity: .6;
}

.lcp-article-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.lcp-article-featured {
  margin: 0 auto var(--lcp-space-2xl);
  max-width: 900px;
  border-radius: var(--lcp-radius-lg);
  overflow: hidden;
}

.lcp-article-featured img {
  width: 100%;
}

.lcp-article-content {
  max-width: 740px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .lcp-article-title {
    font-size: var(--lcp-fs-3xl);
  }
}

/* ========================================
   13. AUTHOR BOX
   ======================================== */
.lcp-author-box {
  display: flex;
  gap: var(--lcp-space-xl);
  padding: var(--lcp-space-xl);
  background: var(--lcp-bg-alt);
  border-radius: var(--lcp-radius);
  margin: var(--lcp-space-2xl) auto;
  max-width: 740px;
}

.lcp-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lcp-author-name {
  font-size: var(--lcp-fs-lg);
  font-weight: 700;
  margin-bottom: var(--lcp-space-xs);
}

.lcp-author-bio {
  font-size: var(--lcp-fs-sm);
  color: var(--lcp-text-secondary);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .lcp-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ========================================
   14. SHARE BUTTONS
   ======================================== */
.lcp-share {
  display: flex;
  align-items: center;
  gap: var(--lcp-space-sm);
  margin: var(--lcp-space-xl) auto;
  max-width: 740px;
}

.lcp-share-label {
  font-size: var(--lcp-fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lcp-text-muted);
  margin-right: var(--lcp-space-sm);
}

.lcp-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--lcp-transition), opacity var(--lcp-transition);
}

.lcp-share-btn:hover {
  transform: scale(1.1);
  color: #fff;
}

.lcp-share-btn svg {
  width: 18px;
  height: 18px;
}

.lcp-share-facebook {
  background: #1877f2;
}

.lcp-share-x {
  background: #000;
}

.lcp-share-whatsapp {
  background: #25d366;
}

.lcp-share-linkedin {
  background: #0a66c2;
}

.lcp-share-copy {
  background: var(--lcp-gray-600);
}

/* ========================================
   15. RELATED POSTS
   ======================================== */
.lcp-related {
  max-width: 900px;
  margin: var(--lcp-space-3xl) auto;
}

/* ========================================
   16. BREADCRUMBS
   ======================================== */
.lcp-breadcrumbs {
  font-size: var(--lcp-fs-sm);
  color: var(--lcp-text-muted);
  padding: var(--lcp-space-md) 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--lcp-space-xs);
}

.lcp-breadcrumbs a {
  color: var(--lcp-text-secondary);
}

.lcp-breadcrumbs a:hover {
  color: var(--lcp-primary-600);
}

.lcp-breadcrumbs .sep {
  margin: 0 var(--lcp-space-xs);
  opacity: .5;
}

/* ========================================
   17. NEWSLETTER
   ======================================== */
.lcp-newsletter {
  background: linear-gradient(135deg, var(--lcp-primary-700), var(--lcp-primary-900));
  color: #fff;
  text-align: center;
  padding: var(--lcp-space-3xl) var(--lcp-space-xl);
  border-radius: var(--lcp-radius-lg);
}

.lcp-newsletter-title {
  font-size: var(--lcp-fs-3xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--lcp-space-sm);
}

.lcp-newsletter-desc {
  font-size: var(--lcp-fs-lg);
  opacity: .85;
  margin-bottom: var(--lcp-space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.lcp-newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: var(--lcp-space-sm);
}

.lcp-newsletter-input {
  flex: 1;
  padding: var(--lcp-space-md) var(--lcp-space-lg);
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: var(--lcp-radius);
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: var(--lcp-fs-base);
  outline: none;
  transition: border-color var(--lcp-transition);
}

.lcp-newsletter-input::placeholder {
  color: rgba(255, 255, 255, .6);
}

.lcp-newsletter-input:focus {
  border-color: #fff;
}

.lcp-newsletter-submit {
  padding: var(--lcp-space-md) var(--lcp-space-xl);
  background: #fff;
  color: var(--lcp-primary-700);
  font-weight: 700;
  border-radius: var(--lcp-radius);
  font-size: var(--lcp-fs-base);
  transition: transform var(--lcp-transition), box-shadow var(--lcp-transition);
}

.lcp-newsletter-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

@media (max-width: 500px) {
  .lcp-newsletter-form {
    flex-direction: column;
  }
}

/* ========================================
   18. AD SLOTS
   ======================================== */
.lcp-ad-slot {
  text-align: center;
  padding: var(--lcp-space-md) 0;
  margin: var(--lcp-space-md) 0;
}

.lcp-ad-slot-label {
  font-size: var(--lcp-fs-xs);
  color: var(--lcp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--lcp-space-xs);
}

/* ========================================
   19. FOOTER
   ======================================== */
.lcp-footer {
  background: var(--lcp-gray-900);
  color: var(--lcp-gray-300);
  padding: var(--lcp-space-3xl) 0 0;
}

.lcp-footer a {
  color: var(--lcp-gray-300);
}

.lcp-footer a:hover {
  color: #fff;
}

.lcp-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lcp-space-2xl);
  margin-bottom: var(--lcp-space-2xl);
}

.lcp-footer-widget-title {
  color: #fff;
  font-size: var(--lcp-fs-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--lcp-space-md);
  padding-bottom: var(--lcp-space-sm);
  border-bottom: 2px solid var(--lcp-primary-600);
}

.lcp-footer-links li {
  margin-bottom: var(--lcp-space-sm);
}

.lcp-footer-links a {
  font-size: var(--lcp-fs-sm);
}

.lcp-footer-bottom {
  border-top: 1px solid var(--lcp-gray-700);
  padding: var(--lcp-space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--lcp-space-md);
  font-size: var(--lcp-fs-sm);
}

.lcp-footer-social {
  display: flex;
  gap: var(--lcp-space-md);
}

.lcp-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lcp-gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--lcp-transition);
}

.lcp-footer-social a:hover {
  background: var(--lcp-primary-600);
}

.lcp-footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .lcp-footer-grid {
    grid-template-columns: 1fr;
  }

  .lcp-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   20. SEARCH OVERLAY
   ======================================== */
.lcp-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.lcp-search-overlay.active {
  display: flex;
}

.lcp-search-box {
  background: var(--lcp-bg-card);
  border-radius: var(--lcp-radius-lg);
  padding: var(--lcp-space-xl);
  width: 90%;
  max-width: 640px;
  box-shadow: var(--lcp-shadow-lg);
}

.lcp-search-input {
  width: 100%;
  border: 2px solid var(--lcp-border);
  border-radius: var(--lcp-radius);
  padding: var(--lcp-space-md) var(--lcp-space-lg);
  font-size: var(--lcp-fs-xl);
  background: var(--lcp-bg);
  color: var(--lcp-text);
  outline: none;
  transition: border-color var(--lcp-transition);
}

.lcp-search-input:focus {
  border-color: var(--lcp-primary-600);
}

.lcp-search-results {
  margin-top: var(--lcp-space-md);
  max-height: 400px;
  overflow-y: auto;
}

.lcp-search-result-item {
  display: flex;
  align-items: center;
  gap: var(--lcp-space-md);
  padding: var(--lcp-space-md);
  border-radius: var(--lcp-radius-sm);
  transition: background var(--lcp-transition);
}

.lcp-search-result-item:hover {
  background: var(--lcp-bg-alt);
}

.lcp-search-result-item img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: var(--lcp-radius-sm);
}

/* ========================================
   21. PAGINATION
   ======================================== */
.lcp-pagination {
  display: flex;
  justify-content: center;
  gap: var(--lcp-space-sm);
  padding: var(--lcp-space-2xl) 0;
}

.lcp-pagination a,
.lcp-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--lcp-space-md);
  border-radius: var(--lcp-radius-sm);
  font-weight: 600;
  font-size: var(--lcp-fs-sm);
  border: 1px solid var(--lcp-border);
  color: var(--lcp-text);
  transition: background var(--lcp-transition), color var(--lcp-transition);
}

.lcp-pagination a:hover {
  background: var(--lcp-primary-50);
  border-color: var(--lcp-primary-600);
  color: var(--lcp-primary-600);
}

.lcp-pagination .current {
  background: var(--lcp-primary-600);
  color: #fff;
  border-color: var(--lcp-primary-600);
}

/* ========================================
   22. 404 PAGE
   ======================================== */
.lcp-404 {
  text-align: center;
  padding: var(--lcp-space-3xl) var(--lcp-space-md);
}

.lcp-404-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--lcp-primary-600);
  line-height: 1;
  opacity: .3;
}

.lcp-404-title {
  font-size: var(--lcp-fs-3xl);
  margin-bottom: var(--lcp-space-md);
}

.lcp-404-desc {
  color: var(--lcp-text-secondary);
  margin-bottom: var(--lcp-space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   23. ARCHIVE HEADER
   ======================================== */
.lcp-archive-header {
  padding: var(--lcp-space-2xl) 0;
  margin-bottom: var(--lcp-space-xl);
  border-bottom: 1px solid var(--lcp-border);
}

.lcp-archive-title {
  font-size: var(--lcp-fs-3xl);
  font-weight: 800;
}

.lcp-archive-desc {
  color: var(--lcp-text-secondary);
  margin-top: var(--lcp-space-sm);
  max-width: 600px;
}

.lcp-archive-count {
  font-size: var(--lcp-fs-sm);
  color: var(--lcp-text-muted);
  margin-top: var(--lcp-space-sm);
}

/* ========================================
   24. COMMENTS
   ======================================== */
.lcp-comments {
  max-width: 740px;
  margin: var(--lcp-space-3xl) auto;
}

.lcp-comments .comment-list {
  list-style: none;
}

.lcp-comments .comment {
  padding: var(--lcp-space-lg);
  border: 1px solid var(--lcp-border);
  border-radius: var(--lcp-radius);
  margin-bottom: var(--lcp-space-md);
}

.lcp-comments .comment .children {
  margin-top: var(--lcp-space-md);
  margin-left: var(--lcp-space-xl);
}

.lcp-comments .comment-respond {
  margin-top: var(--lcp-space-xl);
}

.lcp-comments input[type="text"],
.lcp-comments input[type="email"],
.lcp-comments input[type="url"],
.lcp-comments textarea {
  width: 100%;
  padding: var(--lcp-space-md);
  border: 1px solid var(--lcp-border);
  border-radius: var(--lcp-radius-sm);
  background: var(--lcp-bg);
  color: var(--lcp-text);
  margin-bottom: var(--lcp-space-md);
}

.lcp-comments input[type="submit"] {
  background: var(--lcp-primary-600);
  color: #fff;
  border: none;
  padding: var(--lcp-space-md) var(--lcp-space-xl);
  border-radius: var(--lcp-radius);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--lcp-transition);
}

.lcp-comments input[type="submit"]:hover {
  background: var(--lcp-primary-700);
}

/* ========================================
   25. UTILITY CLASSES
   ======================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.flex {
  display: flex;
}

.gap-md {
  gap: var(--lcp-space-md);
}

.gap-lg {
  gap: var(--lcp-space-lg);
}

/* ========================================
   26. WORDPRESS DEFAULTS
   ======================================== */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: var(--lcp-fs-sm);
  color: var(--lcp-text-muted);
  margin-top: var(--lcp-space-sm);
}

.alignleft {
  float: left;
  margin: 0 var(--lcp-space-lg) var(--lcp-space-lg) 0;
}

.alignright {
  float: right;
  margin: 0 0 var(--lcp-space-lg) var(--lcp-space-lg);
}

.aligncenter {
  display: block;
  margin: var(--lcp-space-lg) auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--lcp-space-md);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.sticky .lcp-post-card {
  border-left: 4px solid var(--lcp-primary-600);
}

/* ========================================
   27. PRINT STYLES
   ======================================== */
@media print {

  .lcp-header,
  .lcp-footer,
  .lcp-sidebar,
  .lcp-ticker,
  .lcp-share,
  .lcp-ad-slot,
  .lcp-newsletter {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .entry-content a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}