/*
Theme Name: DevBlog Pro
Theme URI: https://devblog-pro.com
Author: DevBlog Pro
Author URI: https://devblog-pro.com
Description: Thème WordPress professionnel pour blog de développement. Entièrement personnalisable via le Customizer WordPress. Design moderne avec support multi-technologies, SEO optimisé, et mise en page adaptative.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devblog-pro
Tags: blog, dark, custom-colors, custom-logo, custom-menu, featured-images, flexible-header, full-width-template, rtl-language-support, sticky-post, threaded-comments, translation-ready, two-columns, left-sidebar, right-sidebar, wide-blocks
*/

/* ============================================================
   CSS CUSTOM PROPERTIES / VARIABLES
   ============================================================ */
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-accent: #dc2626;
  --color-accent-dark: #b91c1c;
  --color-accent-light: #ef4444;
  --color-bg: #1a1f2e;
  --color-bg-card: #222840;
  --color-bg-card-alt: #1e2035;
  --color-bg-header: rgba(22, 27, 44, 0.95);
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-heading: #f1f5f9;
  --color-border: rgba(255,255,255,0.08);
  --color-border-hover: rgba(255,255,255,0.2);
  --font-heading: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow-primary: 0 0 30px rgba(37, 99, 235, 0.25);
  --shadow-glow-accent: 0 0 30px rgba(220, 38, 38, 0.25);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 64px;
  --container-width: 1200px;
  --sidebar-width: 300px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 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.015'%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");
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--color-text-heading); line-height: 1.3; font-weight: 700; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; }
ul { list-style: none; padding: 0; }

/* Screen reader only */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--color-bg-card); border-radius: var(--radius-sm);
  clip: auto !important; clip-path: none; color: var(--color-text);
  display: block; font-size: 0.875rem; font-weight: bold;
  height: auto; left: 5px; line-height: normal;
  padding: 0.9rem 1.5rem; position: absolute; top: 5px;
  text-decoration: none; width: auto; z-index: 100000;
}

/* ============================================================
   LAYOUT & CONTAINERS
   ============================================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.site-content { padding-top: var(--header-height); }
.content-area { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
.has-sidebar .content-area { grid-template-columns: 1fr var(--sidebar-width); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--color-bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(37, 99, 235, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-title-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-heading);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-title-text .logo-icon {
  color: var(--color-primary-light);
}

.site-title-text a {
  color: inherit;
}

.site-description {
  display: none;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Main Navigation */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-navigation ul li a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current-page-ancestor a {
  color: var(--color-text-heading);
  background: rgba(255,255,255,0.06);
}

/* Dropdown menus */
.main-navigation ul li { position: relative; }
.main-navigation ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: 0.5rem;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul li ul li a {
  padding: 0.5rem 0.75rem;
  display: block;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Nav icons */
.main-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

/* C# — purple */
.nav-item-csharp > a { color: var(--color-text-muted); }
.nav-item-csharp > a:hover,
.nav-item-csharp.current-menu-item > a { color: var(--color-text-heading); background: rgba(155, 79, 150, 0.12); }
.nav-label-csharp { font-weight: 700; font-family: var(--font-heading); color: #c084fc; letter-spacing: 0.02em; }

/* Java — orange/red */
.nav-item-java > a { color: var(--color-text-muted); }
.nav-item-java > a:hover,
.nav-item-java.current-menu-item > a { color: var(--color-text-heading); background: rgba(83, 130, 161, 0.12); }
.nav-label-java { font-weight: 700; font-family: var(--font-heading); color: #fb923c; letter-spacing: 0.02em; }

/* RSS — muted with orange dot */
.nav-icon-rss { color: #fb923c; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0 0.75rem;
  gap: 0.4rem;
  transition: var(--transition);
  height: 36px;
}

.header-search:focus-within {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.header-search > svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.header-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: 0.85rem;
  width: 130px;
  height: 100%;
  padding: 0;
  line-height: 1;
}

.header-search input::placeholder { color: var(--color-text-muted); }

.header-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  height: 100%;
  transition: var(--transition);
}
.header-search button:hover { color: var(--color-primary-light); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1.2rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, transparent 40%, rgba(220, 38, 38, 0.15) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.hero-orb-1 {
  width: 400px; height: 400px;
  background: var(--color-primary);
  top: -100px; left: -100px;
  animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px; height: 350px;
  background: var(--color-accent);
  bottom: -100px; right: -100px;
  animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; }

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-badge {
  width: 72px; height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.hero-badge-primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(37, 99, 235, 0.1));
  border-color: rgba(37, 99, 235, 0.3);
}

.hero-badge-accent {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.4), rgba(220, 38, 38, 0.1));
  border-color: rgba(220, 38, 38, 0.3);
}

.hero-badge:hover { transform: translateY(-4px) scale(1.05); box-shadow: var(--shadow-md); }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-text-heading);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-title .highlight-primary { color: var(--color-primary-light); }
.hero-title .highlight-accent { color: var(--color-accent-light); }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-hover);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--color-primary);
  color: var(--color-primary-light);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* Arrow button */
.btn-arrow {
  background: none;
  border: none;
  color: var(--color-primary-light);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.btn-arrow:hover { gap: 0.7rem; color: var(--color-primary); }

/* ============================================================
   FEATURED ARTICLES SECTION
   ============================================================ */
.featured-section {
  padding: 2rem 0 3rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.featured-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 280px;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
}

/* C# / Primary — Bleu */
.featured-card-primary {
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.35) 0%, rgba(30, 32, 53, 0.95) 55%, rgba(22, 27, 44, 1) 100%);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.25);
}
.featured-card-primary:hover {
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.35);
  border-color: rgba(37, 99, 235, 0.45);
}

/* Java / Accent — Rouge */
.featured-card-accent {
  background: linear-gradient(160deg, rgba(220, 38, 38, 0.35) 0%, rgba(30, 32, 53, 0.95) 55%, rgba(22, 27, 44, 1) 100%);
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.25);
}
.featured-card-accent:hover {
  box-shadow: 0 0 60px rgba(220, 38, 38, 0.35);
  border-color: rgba(220, 38, 38, 0.45);
}

/* Other scheme variants */
.featured-card-success {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.3) 0%, rgba(30, 32, 53, 0.95) 55%, rgba(22, 27, 44, 1) 100%);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.2);
}
.featured-card-purple {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.3) 0%, rgba(30, 32, 53, 0.95) 55%, rgba(22, 27, 44, 1) 100%);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.2);
}

.featured-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem 0.75rem;
  position: relative;
  z-index: 1;
}

.featured-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

.badge-primary { background: rgba(37, 99, 235, 0.3); color: #93c5fd; border: 1px solid rgba(37, 99, 235, 0.4); }
.badge-accent { background: rgba(220, 38, 38, 0.3); color: #fca5a5; border: 1px solid rgba(220, 38, 38, 0.4); }
.badge-success { background: rgba(16, 185, 129, 0.3); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-warning { background: rgba(245, 158, 11, 0.3); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-purple { background: rgba(139, 92, 246, 0.3); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.4); }
.badge-teal { background: rgba(20, 184, 166, 0.3); color: #5eead4; border: 1px solid rgba(20, 184, 166, 0.4); }

.featured-card-body {
  padding: 0 1.5rem 5rem; /* bottom padding for wave */
  flex: 1;
  position: relative;
  z-index: 1;
}

.featured-card-title {
  font-size: 1.35rem;
  font-family: var(--font-heading);
  margin-bottom: 0.6rem;
  color: var(--color-text-heading);
  line-height: 1.3;
}

.featured-card-excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.featured-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Wave decoration — pleine largeur, bas de la card */
.card-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 70px;
  display: block;
  z-index: 0;
}

.featured-card-primary .card-wave { color: rgba(37, 99, 235, 0.18); }
.featured-card-accent  .card-wave { color: rgba(220, 38, 38, 0.18); }
.featured-card-success .card-wave { color: rgba(16, 185, 129, 0.18); }
.featured-card-purple  .card-wave { color: rgba(139, 92, 246, 0.18); }

/* Button inside card stays above wave */
.featured-card-body .btn {
  position: relative;
  z-index: 2;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  border-radius: 2px;
  margin-left: 0.5rem;
}

/* ============================================================
   ARTICLES GRID / CARDS
   ============================================================ */
.articles-section { padding: 1rem 0 4rem; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: stretch; /* toutes les cards à la même hauteur */
}

.post-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%; /* égalité de hauteur */
  position: relative;
}

/* Couleur du trait du haut selon catégorie */
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: var(--transition);
}

/* Carte C# — trait bleu */
.post-card.cat-csharp::before,
.post-card.scheme-primary::before {
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
}
/* Carte Java — trait rouge */
.post-card.cat-java::before,
.post-card.scheme-accent::before {
  background: linear-gradient(90deg, var(--color-accent-light), var(--color-accent));
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg);
}

.post-card:hover::before { opacity: 1; }

.post-card-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-card-alt);
  position: relative;
  flex-shrink: 0;
}

.post-card-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumbnail img { transform: scale(1.05); }

.post-card-no-image {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-text-muted);
  opacity: 0.3;
  flex-shrink: 0;
}

/* Icône colorée selon techno */
.post-card.scheme-primary .post-card-no-image { background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(37,99,235,0.04)); opacity: 1; color: rgba(37,99,235,0.4); }
.post-card.scheme-accent  .post-card-no-image { background: linear-gradient(135deg, rgba(220,38,38,0.12), rgba(220,38,38,0.04)); opacity: 1; color: rgba(220,38,38,0.4); }

.post-card-header {
  padding: 0.9rem 1rem 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.post-card-body {
  padding: 0 1rem;
  flex: 1; /* prend tout l'espace restant */
  display: flex;
  flex-direction: column;
}

.post-card-footer {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  margin-top: auto; /* toujours en bas */
  flex-shrink: 0;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 0.97rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--color-text-heading);
  flex-shrink: 0;
}

.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--color-primary-light); }

.post-card-excerpt {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.post-card-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-card-read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
  white-space: nowrap;
}
.post-card-read-more:hover { color: var(--color-primary); gap: 0.6rem; }

/* Java cards — accent color on read more */
.post-card.scheme-accent .post-card-read-more { color: var(--color-accent-light); }
.post-card.scheme-accent .post-card-read-more:hover { color: var(--color-accent); }

/* ============================================================
   PAGINATION / CAROUSEL DOTS
   ============================================================ */
.posts-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.posts-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.posts-pagination .page-numbers:hover,
.posts-pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.posts-pagination .prev, .posts-pagination .next {
  font-size: 1.1rem;
}

/* Dots style */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 1rem 0;
}

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.4;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active { opacity: 1; background: var(--color-primary); width: 20px; border-radius: 4px; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-wrapper {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

.post-header { margin-bottom: 2rem; }

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/7;
}

.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }

.post-content {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  line-height: 1.8;
}

.post-content h2, .post-content h3, .post-content h4 { margin: 2rem 0 1rem; }
.post-content h2 { font-size: 1.5rem; border-bottom: 1px solid var(--color-border); padding-bottom: 0.5rem; }
.post-content h3 { font-size: 1.25rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.25rem; padding-left: 1.75rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4rem; }
.post-content a { color: var(--color-primary-light); text-decoration: underline; }
.post-content a:hover { color: var(--color-primary); }
.post-content strong { color: var(--color-text-heading); font-weight: 700; }
.post-content em { font-style: italic; color: var(--color-text-muted); }

.post-content blockquote {
  border-left: 3px solid var(--color-primary);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.post-content code {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.85em;
  color: #93c5fd;
}

.post-content pre {
  background: #0d1117;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
  color: #e6edf3;
}

.post-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  width: 100%;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.post-content table th, .post-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.post-content table th {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-text-heading);
  font-weight: 600;
}

.post-content table tr:nth-child(even) { background: rgba(255,255,255,0.02); }

/* Post Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.post-tag {
  padding: 0.3rem 0.7rem;
  background: var(--color-bg-card-alt);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.post-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  background: rgba(37, 99, 235, 0.1);
}

/* Author box */
.author-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.author-avatar img {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}

.author-name { font-weight: 700; margin-bottom: 0.4rem; }
.author-bio { font-size: 0.85rem; color: var(--color-text-muted); }

/* Comments */
.comments-area {
  margin-top: 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.comments-title { font-size: 1.25rem; margin-bottom: 1.5rem; }
.comment-list { margin-bottom: 2rem; }

.comment {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.comment-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.4rem; }
.comment-author-name { font-weight: 600; color: var(--color-text-heading); }
.comment-body { font-size: 0.9rem; }

.comment-form-wrapper { margin-top: 1.5rem; }
.comment-form-title { font-size: 1.1rem; margin-bottom: 1rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--color-text-muted); font-weight: 500; }

.form-control {
  width: 100%;
  background: var(--color-bg-card-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: rgba(37, 99, 235, 0.05);
}

.form-control::placeholder { color: var(--color-text-muted); }
textarea.form-control { min-height: 100px; resize: vertical; }

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

.widget {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.widget-title {
  font-size: 0.9rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.widget-content { padding: 1rem 1.25rem; }

.widget ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
}

.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--color-text-muted); }
.widget ul li a:hover { color: var(--color-primary-light); }

/* Recent posts widget */
.recent-post-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}
.recent-post-item:last-child { border-bottom: none; }
.recent-post-thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--color-bg-card-alt); }
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-title { font-size: 0.82rem; font-weight: 600; color: var(--color-text-heading); line-height: 1.3; margin-bottom: 0.2rem; }
.recent-post-title a { color: inherit; }
.recent-post-title a:hover { color: var(--color-primary-light); }
.recent-post-date { font-size: 0.72rem; color: var(--color-text-muted); }

/* Tag cloud widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-bg-card-alt);
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 0;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .site-title-text { font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-description { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1.5rem; line-height: 1.6; }

.footer-contact-form { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-contact-form .form-control { padding: 0.55rem 0.75rem; font-size: 0.85rem; }
.footer-contact-form textarea { min-height: 75px; }

.footer-heading {
  font-size: 0.85rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-heading);
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { font-size: 0.88rem; color: var(--color-text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--color-primary-light); padding-left: 4px; }

.footer-resource-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.footer-resource-primary {
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #93c5fd;
}
.footer-resource-primary:hover { background: rgba(37, 99, 235, 0.3); color: #bfdbfe; }

.footer-resource-accent {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}
.footer-resource-accent:hover { background: rgba(220, 38, 38, 0.3); color: #fecaca; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   BEAUTIFUL SEARCH PAGE
   ============================================================ */
.search-hero {
  background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, transparent 50%, rgba(220,38,38,0.08) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 3.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.search-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 50% 100%, rgba(37,99,235,0.08), transparent);
  pointer-events: none;
}

.search-hero-title {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-heading);
  font-size: 0.75rem;
}

.search-hero-query {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.search-hero-query .query-highlight {
  color: var(--color-primary-light);
  border-bottom: 2px solid rgba(37,99,235,0.4);
}

.search-hero-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.2);
  color: #93c5fd;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.search-form-hero {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.search-form-hero:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15), 0 8px 30px rgba(0,0,0,0.3);
}

.search-form-hero input[type="search"] {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 0.9rem 1.25rem;
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-body);
  min-width: 0;
}

.search-form-hero input[type="search"]::placeholder { color: var(--color-text-muted); }

.search-form-hero button {
  background: var(--color-primary);
  border: none;
  padding: 0.9rem 1.5rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  white-space: nowrap;
}

.search-form-hero button:hover { background: var(--color-primary-dark); }

/* Search results layout */
.search-results-wrapper {
  padding: 2.5rem 0 4rem;
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-filter-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  transition: var(--transition);
  font-family: var(--font-body);
}

.search-filter-btn:hover,
.search-filter-btn.active {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  background: rgba(37,99,235,0.1);
}

/* No results state */
.search-no-results {
  text-align: center;
  padding: 5rem 2rem;
}

.search-no-results-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.search-no-results h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-heading);
}

.search-no-results p {
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0 auto 2rem;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.search-suggestion-tag {
  padding: 0.4rem 0.9rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  transition: var(--transition);
}

.search-suggestion-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  background: rgba(37,99,235,0.08);
}
.archive-header {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.archive-title { font-size: 1.75rem; margin-bottom: 0.5rem; }
.archive-description { color: var(--color-text-muted); }

.archive-page-wrapper {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 2rem;
  padding: 2rem 0 4rem;
  align-items: start;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error404-content {
  text-align: center;
  padding: 6rem 2rem;
}

.error404-code {
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--color-primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}

.error404-title { font-size: 2rem; margin-bottom: 0.75rem; }
.error404-text { color: var(--color-text-muted); margin-bottom: 2rem; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary-light); }
.breadcrumbs .separator { color: var(--color-border-hover); }
.breadcrumbs .current { color: var(--color-text); }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  width: 0%;
  z-index: 999;
  transition: width 0.1s linear;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px; height: 42px;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 500;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-3px); }

/* ============================================================
   NOTICE BOXES (for content)
   ============================================================ */
.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 3px solid;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.notice-info { background: rgba(37, 99, 235, 0.08); border-color: var(--color-primary); }
.notice-warning { background: rgba(245, 158, 11, 0.08); border-color: #f59e0b; }
.notice-success { background: rgba(16, 185, 129, 0.08); border-color: #10b981; }
.notice-error { background: rgba(220, 38, 38, 0.08); border-color: var(--color-accent); }

/* ============================================================
   WP CORE ALIGNMENT CLASSES
   ============================================================ */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignwide { margin-left: calc(-15vw); margin-right: calc(-15vw); }
.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--color-text-muted); text-align: center; margin-top: 0.4rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.gallery-item img { border-radius: var(--radius-sm); width: 100%; height: 180px; object-fit: cover; }

/* ============================================================
   LOADING STATE
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-card) 25%, rgba(255,255,255,0.03) 50%, var(--color-bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary { color: var(--color-primary-light); }
.text-accent { color: var(--color-accent-light); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .single-post-wrapper { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .archive-page-wrapper { grid-template-columns: 1fr; }
  .archive-page-wrapper .sidebar { display: none; }
}

@media (max-width: 768px) {
  .main-navigation { display: none; }
  .menu-toggle { display: flex; }
  .main-navigation.active { display: flex; flex-direction: column; position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; background: var(--color-bg-header); padding: 1.5rem; gap: 0; overflow-y: auto; }
  .main-navigation.active ul { flex-direction: column; gap: 0; width: 100%; }
  .main-navigation.active ul li a { padding: 0.85rem 1rem; display: block; border-bottom: 1px solid var(--color-border); }
  .featured-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-section { padding: 3rem 0 2.5rem; }
  .hero-title { font-size: 2rem; }
  .header-search { display: none; }
  :root { --sidebar-width: 0px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .featured-card-title { font-size: 1.15rem; }
  .hero-badges { gap: 1rem; }
  .hero-badge { width: 60px; height: 60px; font-size: 2rem; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .site-footer, .sidebar, .reading-progress, .back-to-top { display: none; }
  .single-post-wrapper { grid-template-columns: 1fr; }
  body { background: #fff; color: #000; }
  .post-content { background: none; border: none; padding: 0; }
}
