/* ==========================================================================
   ByteYogi Theme — Main Stylesheet
   A dark minimal tech education blog for India
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Global Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-x: hidden;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-indigo);
}

a:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.mobile-menu-toggle:focus-visible,
.search-toggle:focus-visible,
.cat-pill:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.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(--bg-surface);
  clip: auto !important;
  clip-path: none;
  color: var(--accent-blue);
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: var(--z-toast, 3000);
  border-radius: var(--radius-md);
}

::selection {
  background: rgba(56, 189, 248, 0.25);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   2. Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-navbar, 1000);
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo .byte {
  color: var(--accent-blue);
}

.logo .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-purple);
  border-radius: 50%;
  margin: 0 1px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.logo .yogi {
  color: var(--text-primary);
}

.logo:hover .byte {
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links ul,
.nav-links > ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li,
.nav-links ul li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-indigo));
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  width: 100%;
}

.search-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.search-toggle:hover {
  border-color: var(--border-medium);
  color: var(--text-secondary);
  background: var(--bg-surface-hover);
}

.search-toggle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.search-toggle .search-text {
  white-space: nowrap;
}

.search-toggle .search-shortcut {
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin-left: 8px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.mobile-menu-toggle:active {
  opacity: 0.7;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal, 2000);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.search-modal.active {
  display: flex;
  opacity: 1;
}

.search-modal-inner {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.search-modal-inner input {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  font-family: var(--font-body);
  outline: none;
}

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

.search-modal-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
  border-top: 1px solid var(--border-subtle);
}

.search-modal-results:empty {
  display: none;
}

.search-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.search-modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.search-modal-close:active {
  transform: scale(0.95);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  right: 0;
  width: 300px;
  height: calc(100vh - 64px);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  z-index: var(--z-overlay, 1500);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  padding: 24px;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  list-style: none;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

.mobile-menu-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: rgba(3, 7, 18, 0.6);
  z-index: calc(var(--z-overlay, 1500) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   3. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(56, 189, 248, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(129, 140, 248, 0.06) 0%, transparent 70%),
    var(--bg-primary);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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.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;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: shimmer 3s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
  color: var(--text-primary);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.05);
}

/* Hero Visual — Orbit Animation */
.hero-visual {
  position: relative;
  width: 360px;
  height: 360px;
  flex-shrink: 0;
}

.hero-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.12), 0 0 80px rgba(129, 140, 248, 0.08);
  z-index: 2;
}

.hero-center svg {
  width: 36px;
  height: 36px;
  color: var(--accent-blue);
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -22px;
  margin-left: -22px;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.orbit-item svg {
  width: 20px;
  height: 20px;
}

.orbit-item:nth-child(6) {
  animation: orbitOne 12s linear infinite;
}

.orbit-item:nth-child(7) {
  animation: orbitTwo 16s linear infinite;
}

.orbit-item:nth-child(8) {
  animation: orbitThree 20s linear infinite;
}

.orbit-item:nth-child(9) {
  animation: orbitOne 14s linear infinite reverse;
}

.orbit-item:nth-child(10) {
  animation: orbitTwo 18s linear infinite reverse;
}

.orbit-item:nth-child(11) {
  animation: orbitThree 22s linear infinite;
}

.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ring-1 {
  width: 160px;
  height: 160px;
  margin-top: -80px;
  margin-left: -80px;
}

.hero-ring-2 {
  width: 260px;
  height: 260px;
  margin-top: -130px;
  margin-left: -130px;
}

.hero-ring-3 {
  width: 360px;
  height: 360px;
  margin-top: -180px;
  margin-left: -180px;
}

/* Hero visual effects */
.hero-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   4. Categories Bar
   -------------------------------------------------------------------------- */
.categories {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  position: relative;
  z-index: 10;
}

.categories-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-inner::-webkit-scrollbar {
  display: none;
}

.categories::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--bg-primary));
  pointer-events: none;
  z-index: 1;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.cat-pill:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.cat-pill.active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  border-color: transparent;
  color: var(--text-primary);
  font-weight: 600;
}

.cat-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cat-pill .cat-count {
  font-size: 12px;
  padding: 1px 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-left: 2px;
}

/* --------------------------------------------------------------------------
   Blog Page Layout
   -------------------------------------------------------------------------- */
.blog-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.blog-posts-section {
  padding: 48px 0;
}

.blog-page .archive-header {
  padding: 48px 0 32px;
  text-align: center;
}

.blog-page .breadcrumbs {
  padding-top: 24px;
}

.blog-page .category-filter {
  margin-left: -40px;
  margin-right: -40px;
  padding-left: 0;
  padding-right: 0;
}

/* Category badge on category archive pages */
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  color: var(--cat-color, var(--accent-blue));
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Archive category filter (uses different class names than homepage) */
.category-filter {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  position: relative;
  z-index: 10;
}

.category-pills {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  list-style: none;
}

.category-pills li {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.category-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
}

.category-pill.is-active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  border-color: transparent;
  color: var(--text-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Featured Post
   -------------------------------------------------------------------------- */
.featured-section {
  padding: 64px 0;
}

.featured-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  margin-left: 24px;
}

/* Section inner wrappers (front-page.php) */
.featured-inner,
.posts-inner,
.trending-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-title .accent {
  color: var(--accent-blue);
}

.view-all {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.view-all:hover {
  color: var(--accent-blue);
}

.featured-card {
  display: flex;
  gap: 40px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(17, 24, 39, 0.6) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-indigo), var(--accent-purple));
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-blue);
}

.featured-content {
  flex: 1;
  min-width: 0;
}

.featured-content .tag {
  margin-bottom: 16px;
}

.featured-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.featured-content h2 a,
.featured-title-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.featured-content h2 a:hover,
.featured-title-link:hover {
  color: var(--accent-blue);
}

.featured-title-link:hover .featured-title {
  color: var(--accent-blue);
}

.featured-excerpt {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.featured-meta .dot-sep {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.featured-author .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.featured-author .author-info {
  min-width: 0;
}

.featured-author .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.featured-author .date {
  font-size: 13px;
  color: var(--text-muted);
}

.featured-image {
  width: 380px;
  flex-shrink: 0;
}

.featured-image .code-preview {
  border-radius: var(--radius-lg);
  height: 100%;
}

/* --------------------------------------------------------------------------
   6. Post Grid
   -------------------------------------------------------------------------- */
.posts-section {
  padding: 64px 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.03), rgba(129, 140, 248, 0.03));
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 1;
  border-radius: var(--radius-lg);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-blue);
}

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

/* Card image */
.post-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  background: var(--bg-secondary);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* Placeholder image when no featured image */
.post-card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--bg-surface) 0%,
    var(--bg-secondary) 100%
  );
  border-bottom: 1px solid var(--border-subtle);
}

.post-card-image--placeholder svg {
  width: 60%;
  height: 60%;
  opacity: 0.6;
}

.post-card:hover .post-card-image--placeholder svg {
  opacity: 0.8;
}

/* Card body */
.post-card-body {
  padding: 24px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.post-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

.post-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-card-title a:hover {
  color: var(--accent-blue);
}

.post-card-excerpt {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

/* Author + date row */
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  min-width: 0;
}

.post-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-card-author {
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card-sep {
  opacity: 0.4;
  user-select: none;
}

.post-card-date {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.post-card-date svg {
  width: 14px;
  height: 14px;
}

.post-card-readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: color var(--transition-base), opacity var(--transition-base), transform var(--transition-base);
}

.post-card-readmore svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.post-card:hover .post-card-readmore {
  opacity: 1;
  transform: translateX(0);
}

.post-card:hover .post-card-readmore:hover svg {
  transform: translateX(3px);
}

.post-card-readmore:focus-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   7. Tags
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.tag-ai {
  background: rgba(192, 132, 252, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(192, 132, 252, 0.2);
}

.tag-ai:hover {
  background: rgba(192, 132, 252, 0.2);
  color: var(--accent-purple);
}

.tag-web {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.tag-web:hover {
  background: rgba(52, 211, 153, 0.2);
  color: var(--accent-green);
}

.tag-prog {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.tag-prog:hover {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-blue);
}

.tag-mobile {
  background: rgba(244, 114, 182, 0.12);
  color: var(--accent-pink);
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.tag-mobile:hover {
  background: rgba(244, 114, 182, 0.2);
  color: var(--accent-pink);
}

.tag-cloud {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-yellow);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.tag-cloud:hover {
  background: rgba(251, 191, 36, 0.2);
  color: var(--accent-yellow);
}

.tag-career {
  background: rgba(251, 113, 133, 0.12);
  color: var(--accent-rose);
  border: 1px solid rgba(251, 113, 133, 0.2);
}

.tag-career:hover {
  background: rgba(251, 113, 133, 0.2);
  color: var(--accent-rose);
}

.tag-gadget {
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.tag-gadget:hover {
  background: rgba(45, 212, 191, 0.2);
  color: var(--accent-teal);
}

/* Read Time Badge */
.read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface-hover);
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   8. Code Preview
   -------------------------------------------------------------------------- */
.code-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
  position: relative;
}

.code-preview .code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.code-preview .code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-preview .code-dot.red { background: #ef4444; }
.code-preview .code-dot.yellow { background: #eab308; }
.code-preview .code-dot.green { background: #22c55e; }

.code-preview .code-filename {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

.code-preview .code-line {
  display: flex;
  gap: 16px;
  white-space: pre;
}

.code-preview .ln {
  color: var(--text-muted);
  opacity: 0.4;
  user-select: none;
  min-width: 24px;
  text-align: right;
}

.code-preview .keyword {
  color: var(--accent-purple);
}

.code-preview .string {
  color: var(--accent-green);
}

.code-preview .func {
  color: var(--accent-blue);
}

.code-preview .number {
  color: var(--accent-yellow);
}

.code-preview .comment {
  color: var(--text-muted);
  font-style: italic;
}

.code-preview .type {
  color: var(--accent-pink);
}

.code-preview .operator {
  color: var(--text-secondary);
}

.code-preview .bracket {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Ad Slot
   -------------------------------------------------------------------------- */
.ad-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.ad-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  margin: 48px 0;
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.3);
  min-height: 120px;
  text-align: center;
}

.ad-banner-text {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ad-banner-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   10. Trending Section
   -------------------------------------------------------------------------- */
.trending-section {
  padding: 64px 0;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.trending-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trending-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trending-icon svg {
  width: 22px;
  height: 22px;
  color: inherit;
}

.trending-icon.icon-blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
}

.trending-icon.icon-purple {
  background: rgba(192, 132, 252, 0.12);
  color: var(--accent-purple);
}

.trending-icon.icon-green {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
}

.trending-icon.icon-pink {
  background: rgba(244, 114, 182, 0.12);
  color: var(--accent-pink);
}

.trending-icon.icon-yellow {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-yellow);
}

.trending-icon.icon-rose {
  background: rgba(251, 113, 133, 0.12);
  color: var(--accent-rose);
}

.trending-icon.icon-teal {
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-teal);
}

.trending-icon.icon-indigo {
  background: rgba(129, 140, 248, 0.12);
  color: var(--accent-indigo);
}

.trending-icon.icon-orange {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.trending-info {
  min-width: 0;
}

.trending-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.trending-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. Newsletter Section
   -------------------------------------------------------------------------- */
.newsletter-section {
  padding: 80px 0;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.newsletter-inner::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo), var(--accent-purple), var(--accent-blue));
  background-size: 300% 300%;
  border-radius: calc(var(--radius-xl) + 2px);
  z-index: -1;
  animation: gradientShift 6s ease infinite;
  opacity: 0.4;
}

.newsletter-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.newsletter-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-blue);
}

.newsletter-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.brand-byte {
  color: var(--accent-blue);
}

.brand-dot {
  color: var(--accent-purple);
}

.brand-yogi {
  color: var(--text-primary);
}

.newsletter-inner h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter-inner p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}

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

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.newsletter-form button {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.newsletter-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding-top: 64px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 48px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-brand p,
.footer-about {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-col ul li a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.footer-col ul li a:hover::before {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid var(--border-subtle);
}

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

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   13. Single Post
   -------------------------------------------------------------------------- */
.single-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--accent-blue);
}

.breadcrumbs .separator {
  color: var(--text-muted);
  opacity: 0.4;
}

.breadcrumbs .current {
  color: var(--text-secondary);
}

/* Article Header */
.article-header {
  margin-bottom: 40px;
}

.article-header .article-category {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  text-decoration: none;
  margin-bottom: 16px;
  color: var(--cat-color, var(--accent-blue));
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: background var(--transition-fast);
}

.article-header .article-category:hover {
  background: rgba(56, 189, 248, 0.2);
}

.article-header .article-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.article-meta .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.article-meta .author-name {
  font-weight: 600;
  color: var(--text-secondary);
}

.article-meta .dot-sep {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

/* Article Meta — single.php classes */
.meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-author .author-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-separator {
  color: var(--text-muted);
  opacity: 0.5;
  user-select: none;
}

.meta-date,
.meta-read-time,
.meta-comments {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

.meta-comments {
  text-decoration: none;
  transition: color var(--transition-fast);
}

.meta-comments:hover {
  color: var(--accent-blue);
}

.meta-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Featured Image */
.article-featured-image {
  margin: 0 0 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* Article Content */
.article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content > * + * {
  margin-top: 24px;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.article-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-content a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.article-content a:hover {
  text-decoration-color: var(--accent-blue);
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.article-content ul {
  list-style: none;
  padding-left: 0;
}

.article-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
}

.article-content ol li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.article-content ol li::marker {
  color: var(--accent-blue);
  font-weight: 600;
}

.article-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: rgba(56, 189, 248, 0.04);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 17px;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content blockquote p {
  margin: 0;
}

.article-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
}

.article-content pre {
  margin: 28px 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.article-content pre code {
  display: block;
  padding: 20px 24px;
  font-family: var(--font-code);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 0;
  white-space: pre;
}

.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 12px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

pre:hover .code-copy-btn {
  opacity: 1;
}

.code-copy-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.code-copy-btn:focus-visible {
  opacity: 1;
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.article-content code {
  font-family: var(--font-code);
  font-size: 0.9em;
  padding: 3px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
}

.article-content img {
  border-radius: var(--radius-lg);
  margin: 32px 0;
  border: 1px solid var(--border-subtle);
}

.article-content figure {
  margin: 32px 0;
}

.article-content figure img {
  margin: 0;
}

.article-content figcaption {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.article-content table th,
.article-content table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.article-content table th {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-content table td {
  color: var(--text-secondary);
}

.article-content table tr:hover td {
  background: rgba(17, 24, 39, 0.5);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 40px 0;
}

/* Article Tags */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.tags-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 4px;
}

.tag-link {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.tag-link:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.05);
}

/* Article Share */
.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.share-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.share-btn:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.share-btn.share-twitter:hover { color: #1da1f2; border-color: #1da1f2; }
.share-btn.share-linkedin:hover { color: #0a66c2; border-color: #0a66c2; }
.share-btn.share-email:hover { color: var(--accent-green); border-color: var(--accent-green); }
.share-btn.share-copy:hover { color: var(--accent-blue); border-color: var(--accent-blue); }

.share-btn svg {
  width: 18px;
  height: 18px;
}

/* Table of Contents */
.article-toc {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
}

.article-toc h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
  color: var(--text-primary);
}

.article-toc ul {
  list-style: none;
  padding: 0;
}

.article-toc ul li {
  padding-left: 0;
  margin-bottom: 8px;
}

.article-toc ul li::before {
  display: none;
}

.article-toc ul li a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.article-toc ul li a:hover {
  color: var(--accent-blue);
}

/* Author Box */
.author-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  margin-top: 48px;
}

.author-box-avatar,
.author-box .author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-subtle);
}

.author-box .author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.author-box-info h4,
.author-box .author-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.author-box-info .author-role,
.author-box .author-label {
  font-size: 13px;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.author-box-info p,
.author-box .author-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.author-box .author-info {
  flex: 1;
  min-width: 0;
}

.author-box .author-post-count {
  font-size: 13px;
  color: var(--text-muted);
}

.author-box-social {
  display: flex;
  gap: 8px;
}

.author-box-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.author-box-social a svg {
  width: 14px;
  height: 14px;
}

.author-box-social a:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* Related Posts */
.related-posts {
  margin-top: 64px;
}

.related-posts h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-post-card {
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.related-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-post-card .tag {
  margin-bottom: 10px;
}

.related-post-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-post-card .related-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.post-nav-link {
  flex: 1;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.post-nav-link:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
}

.post-nav-link .nav-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.post-nav-link .nav-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.post-nav-link .nav-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-nav-link.next,
.post-nav-next {
  text-align: right;
}

.post-nav-next .nav-label {
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   14. Comments
   -------------------------------------------------------------------------- */
.comments-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 64px;
}

.comments-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.comment:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

.comment-meta {
  display: flex;
  flex-direction: column;
}

.comment-author {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-date {
  font-size: 13px;
  color: var(--text-muted);
}

.comment-content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 52px;
}

.comment-content p {
  margin-bottom: 10px;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-content,
.author-bio,
.author-profile__bio {
  overflow-wrap: break-word;
  word-break: break-word;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  margin-left: 52px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.comment-reply-link:hover {
  color: var(--accent-indigo);
}

/* Threaded Comments */
.comment .children {
  list-style: none;
  padding-left: 52px;
  margin-top: 0;
}

.comment .children .comment {
  border-left: 2px solid var(--border-subtle);
  padding-left: 24px;
  margin-top: 16px;
}

/* Comment Form */
.comment-respond {
  margin-top: 48px;
}

.comment-respond h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: block;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: var(--text-muted);
}

.comment-form textarea {
  min-height: 160px;
  resize: vertical;
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comment-form .form-submit {
  margin-top: 8px;
}

.comment-form .submit {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form .submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

/* Comment Template — additional classes from comments.php */
.comments-title-icon {
  vertical-align: -4px;
  margin-right: 6px;
  opacity: 0.7;
}

.comment-author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-author-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.comment-author-link:hover {
  color: var(--accent-blue);
}

.comment-badge {
  display: inline-flex;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.comment-badge-author {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.comment-date-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.comment-date-link:hover {
  color: var(--text-secondary);
}

.comment-awaiting-moderation {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  margin: 8px 0 8px 52px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--accent-yellow);
}

.comment-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-left: 52px;
}

.comment-edit a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.comment-edit a:hover {
  color: var(--accent-blue);
}

.comments-navigation {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.comments-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.comments-nav-item a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.comments-nav-item a:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.comments-nav-item .current {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  color: var(--text-primary);
  border-color: transparent;
}

.comments-closed-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 24px;
}

.comment-form-title {
  font-size: 22px;
  font-weight: 800;
}

.cancel-reply {
  font-size: 13px;
  margin-left: 8px;
}

.cancel-reply a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.cancel-reply a:hover {
  color: var(--accent-blue);
}

.comment-form-notice {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-comment {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-cookies {
  margin-top: 4px;
}

.cookie-consent-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.cookie-consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-indicator {
  display: none;
}

.comment-form .required {
  color: var(--accent-blue);
}

/* --------------------------------------------------------------------------
   15. Pages (Static pages, Contact, etc.)
   -------------------------------------------------------------------------- */
.page-header {
  padding: 64px 0 32px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-header .page-description {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 80px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.page-content > * + * {
  margin-top: 24px;
}

.page-content h2 {
  font-size: 28px;
  color: var(--text-primary);
  margin-top: 48px;
}

.page-content h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin-top: 36px;
}

.page-content p {
  line-height: 1.8;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

/* Contact Page Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.contact-form-wrapper {
  min-width: 0;
}

.contact-info-wrapper {
  min-width: 0;
}

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: sticky;
  top: 88px;
}

.contact-info-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-info-card__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-info-card__item:last-of-type {
  border-bottom: none;
}

.contact-info-card__icon {
  flex-shrink: 0;
  color: var(--accent-blue);
  margin-top: 2px;
}

.contact-info-card__label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-info-card__value {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a.contact-info-card__value:hover {
  color: var(--accent-blue);
}

.contact-info-card__social {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.contact-info-card__social-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.contact-info-card__social .social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

/* Contact Form Button States */
.btn--primary,
.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn--primary:hover,
.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.btn__text {
  display: inline;
}

.btn__loading {
  display: none;
  align-items: center;
  gap: 6px;
}

.contact-submit.loading .btn__text {
  display: none;
}

.contact-submit.loading .btn__loading {
  display: inline-flex;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
}

.form-status.success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--accent-green);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Author Profile */
.author-profile {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 64px 0 40px;
  max-width: 800px;
  margin: 0 auto;
}

.author-profile__avatar {
  flex-shrink: 0;
}

.author-profile__avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-subtle);
}

.author-profile__info {
  min-width: 0;
}

.author-profile__name {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.author-profile__bio {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.author-profile__bio p {
  margin-bottom: 8px;
}

.author-profile__bio p:last-child {
  margin-bottom: 0;
}

.author-profile__post-count {
  font-size: 14px;
  color: var(--text-muted);
}

.author-profile__post-count strong {
  color: var(--accent-blue);
  font-weight: 700;
}

/* Page Meta Footer */
.page-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.page-meta__updated {
  font-size: 13px;
  color: var(--text-muted);
}

.page-meta__updated time {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   16. Archive / Search Pages
   -------------------------------------------------------------------------- */
.archive-header,
.search-header {
  padding: 64px 0 40px;
  text-align: center;
}

.archive-header h1,
.search-header h1 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.archive-title,
.search-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.search-query {
  color: var(--accent-blue);
}

.search-result-count {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-muted);
}

.search-result-count strong {
  color: var(--accent-blue);
  font-weight: 700;
}

.archive-header .archive-description,
.search-header .search-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.archive-header .archive-count,
.search-header .search-count {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-muted);
}

/* Search Form in Header */
.search-header .search-form-wrap {
  max-width: 480px;
  margin: 24px auto 0;
}

.search-header .search-form-wrap .search-form {
  display: flex;
  gap: 10px;
}

.search-header .search-form-wrap input[type="search"] {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
}

.search-header .search-form-wrap input[type="search"]:focus {
  border-color: var(--accent-blue);
}

.search-header .search-form-wrap button {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.pagination .page-numbers:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  border-color: transparent;
  color: var(--text-primary);
  font-weight: 600;
}

.pagination .page-numbers.dots {
  background: transparent;
  border: none;
  color: var(--text-muted);
  pointer-events: none;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  font-size: 13px;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   17. 404 Page
   -------------------------------------------------------------------------- */
.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px;
  min-height: 60vh;
}

.error-404__number,
.error-404 .error-code {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.error-404__heading,
.error-404 h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.error-404__message,
.error-404 p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

.error-404 .error-actions {
  display: flex;
  gap: 12px;
}

.error-404__search,
.error-404 .search-form {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  width: 100%;
  max-width: 400px;
}

.error-404 .search-form input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
}

.error-404 .search-form button {
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.error-404__popular {
  margin-top: 48px;
  width: 100%;
  max-width: 960px;
}

.error-404__popular-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   18. Sidebar / Widgets
   -------------------------------------------------------------------------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget ul li {
  margin-bottom: 10px;
}

.widget ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.widget ul li a:hover {
  color: var(--accent-blue);
}

.widget ul li a .count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.widget_search input[type="search"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}

.widget_search input[type="search"]:focus {
  border-color: var(--accent-blue);
}

.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.widget_tag_cloud .tagcloud a {
  padding: 4px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px !important;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.widget_tag_cloud .tagcloud a:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Recent Posts Widget */
.widget-recent-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.widget-recent-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-recent-post-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.widget-recent-post-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.widget-recent-post-title a {
  color: inherit;
  text-decoration: none;
}

.widget-recent-post-title a:hover {
  color: var(--accent-blue);
}

.widget-recent-post-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   19. Animations — Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.25);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

@keyframes orbitOne {
  0% {
    transform: rotate(0deg) translateX(80px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(80px) rotate(-360deg);
  }
}

@keyframes orbitTwo {
  0% {
    transform: rotate(0deg) translateX(130px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(130px) rotate(-360deg);
  }
}

@keyframes orbitThree {
  0% {
    transform: rotate(0deg) translateX(170px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(170px) rotate(-360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   20. Animation Utility Classes
   -------------------------------------------------------------------------- */
/* Elements start visible by default (CSS-only animation on page load) */
.animate-up {
  animation: fadeInUp 0.8s ease-out both;
}

.animate-down {
  animation: fadeInDown 0.6s ease-out both;
}

.animate-scale {
  animation: scaleIn 0.6s ease-out both;
}

/* When JS is active, elements below fold start hidden and animate on scroll */
.js-animations .animate-up {
  opacity: 0;
  transform: translateY(30px);
  animation: none;
}

.js-animations .animate-up.animated {
  animation: fadeInUp 0.8s ease-out forwards;
}

.js-animations .animate-down {
  opacity: 0;
  transform: translateY(-20px);
  animation: none;
}

.js-animations .animate-down.animated {
  animation: fadeInDown 0.6s ease-out forwards;
}

.js-animations .animate-scale {
  opacity: 0;
  transform: scale(0.9);
  animation: none;
}

.js-animations .animate-scale.animated {
  animation: scaleIn 0.6s ease-out forwards;
}

/* Hero elements always animate immediately (never hidden) */
.hero .animate-up,
.hero .animate-down,
.hero .animate-scale {
  opacity: 1;
  transform: none;
  animation: fadeInUp 0.8s ease-out both;
}

.hero .animate-scale {
  animation: scaleIn 0.6s ease-out both;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* Staggered children */
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(11) { animation-delay: 0.55s; }
.stagger-children > *:nth-child(12) { animation-delay: 0.6s; }

/* --------------------------------------------------------------------------
   21. Utility Classes
   -------------------------------------------------------------------------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.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-gradient {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mt-xl { margin-top: 64px; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 48px; }
.mb-xl { margin-bottom: 64px; }

.pt-0 { padding-top: 0; }
.pt-sm { padding-top: 16px; }
.pt-md { padding-top: 32px; }
.pt-lg { padding-top: 48px; }
.pt-xl { padding-top: 64px; }

.pb-0 { padding-bottom: 0; }
.pb-sm { padding-bottom: 16px; }
.pb-md { padding-bottom: 32px; }
.pb-lg { padding-bottom: 48px; }
.pb-xl { padding-bottom: 64px; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.section {
  padding: 64px 0;
}

.section-alt {
  padding: 64px 0;
  background: var(--bg-secondary);
}

/* No results message */
.no-results {
  text-align: center;
  padding: 80px 40px;
}

.no-results h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.no-results p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Base Search Form (used in modal, 404, sidebar, etc.) */
.search-form {
  display: flex;
  gap: 8px;
}

.search-form .search-input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-form .search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

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

.search-form .search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  border: none;
  border-radius: var(--radius-full);
  color: #ffffff;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.search-form .search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.search-form .search-submit svg {
  width: 18px;
  height: 18px;
}

/* Loading state */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Reading progress bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-progress, 9000);
  height: 3px;
  width: 0;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-indigo));
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Scroll to top button */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-base), transform var(--transition-base), color var(--transition-fast), border-color var(--transition-fast);
  z-index: var(--z-fixed, 500);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow-blue);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* WordPress Specific */
.wp-block-image { margin: 32px 0; }
.wp-block-image img { border-radius: var(--radius-lg); }
.wp-block-image figcaption { font-size: 14px; color: var(--text-muted); text-align: center; margin-top: 10px; }

.wp-block-separator {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 40px 0;
}

.wp-block-quote {
  margin: 32px 0;
  padding: 24px 28px;
  background: rgba(56, 189, 248, 0.04);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.wp-block-quote p {
  font-style: italic;
  color: var(--text-secondary);
}

.wp-block-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
}

.wp-block-table {
  margin: 28px 0;
  overflow-x: auto;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.wp-block-table th {
  background: var(--bg-surface);
  font-weight: 700;
  color: var(--text-primary);
}

.alignwide {
  margin-left: -40px;
  margin-right: -40px;
  max-width: calc(100% + 80px);
}

.alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   22. Theme Toggle
   -------------------------------------------------------------------------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Sun icon: visible in dark mode (clicking switches to light) */
.theme-toggle .icon-sun {
  display: none;
}

/* Moon icon: visible in dark mode by default */
.theme-toggle .icon-moon {
  display: block;
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* Light mode: navbar background override */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.85);
}

/* Light mode: search modal overlay */
[data-theme="light"] .search-modal {
  background: rgba(15, 23, 42, 0.5);
}

/* Light mode: mobile menu background */
[data-theme="light"] .mobile-menu {
  background: var(--bg-secondary);
}

/* Light mode: selection color */
[data-theme="light"] ::selection {
  background: rgba(56, 189, 248, 0.2);
  color: var(--text-primary);
}

/* Light mode: hero rings */
[data-theme="light"] .hero-ring {
  border-color: rgba(0, 0, 0, 0.06);
}

/* Light mode: table row hover */
[data-theme="light"] .article-content table tr:hover td {
  background: rgba(241, 245, 249, 0.7);
}

/* Light mode: ad banner */
[data-theme="light"] .ad-banner {
  background: rgba(241, 245, 249, 0.5);
}

/* Light mode: keyboard shortcut badge */
[data-theme="light"] .search-toggle .search-shortcut {
  background: rgba(0, 0, 0, 0.06);
}

/* Light mode: hero gradients */
[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(56, 189, 248, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(129, 140, 248, 0.05) 0%, transparent 70%),
    var(--bg-primary);
}

[data-theme="light"] .hero::before {
  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='%23000000' fill-opacity='0.02'%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");
}

/* Light mode: hero visual glow */
[data-theme="light"] .hero-orb {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
}

/* Light mode: code preview */
[data-theme="light"] .code-preview {
  background: #f8fafc;
  border-color: var(--border-medium);
}

/* Light mode: category pill count */
[data-theme="light"] .cat-pill .cat-count {
  background: rgba(0, 0, 0, 0.08);
}

/* Light mode: featured card gradient */
[data-theme="light"] .featured-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(241, 245, 249, 0.8) 100%);
}

/* Light mode: ensure primary button text stays white */
[data-theme="light"] .btn-primary,
[data-theme="light"] .newsletter-form button,
[data-theme="light"] .comment-form .submit,
[data-theme="light"] .btn--primary,
[data-theme="light"] .contact-submit,
[data-theme="light"] .pagination .page-numbers.current,
[data-theme="light"] .cat-pill.active,
[data-theme="light"] .category-pill.is-active,
[data-theme="light"] .search-form .search-submit,
[data-theme="light"] .search-header .search-form-wrap button,
[data-theme="light"] .error-404 .search-form button,
[data-theme="light"] .comments-nav-item .current {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   23. Legal Pages (Privacy, Terms, Disclaimer, etc.)
   -------------------------------------------------------------------------- */
.legal-page {
  padding: 64px 0 80px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-content h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-content a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.legal-content a:hover {
  text-decoration-color: var(--accent-blue);
}

.legal-content ul,
.legal-content ol {
  margin: 16px 0;
  padding-left: 28px;
  color: var(--text-secondary);
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
}

.legal-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
}

.legal-content ol li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.legal-content ol li::marker {
  color: var(--accent-blue);
  font-weight: 600;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.legal-content table th,
.legal-content table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content table th {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-content table td {
  color: var(--text-secondary);
}

.legal-content table tr:hover td {
  background: rgba(17, 24, 39, 0.3);
}

[data-theme="light"] .legal-content table tr:hover td {
  background: rgba(241, 245, 249, 0.7);
}

.legal-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(56, 189, 248, 0.04);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-content .last-updated {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.legal-content .last-updated time {
  color: var(--text-secondary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   24. Advertise / Write-for-Us Pages
   -------------------------------------------------------------------------- */
.advertise-page,
.write-for-us-page {
  padding: 64px 0 80px;
}

.advertise-page .page-intro,
.write-for-us-page .page-intro {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 40px;
  text-align: center;
}

.advertise-page .page-intro h1,
.write-for-us-page .page-intro h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.advertise-page .page-intro p,
.write-for-us-page .page-intro p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Pricing / Ad Cards */
.advertise-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.advertise-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.advertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-blue);
}

.advertise-card.featured {
  border-color: var(--accent-blue);
}

.advertise-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-indigo));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.advertise-card-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.advertise-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.advertise-card .price {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.advertise-card .price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.advertise-card .card-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.advertise-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.advertise-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.advertise-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
}

.advertise-card .btn-primary,
.advertise-card .btn-secondary {
  width: 100%;
  justify-content: center;
}

/* Stats row for advertise page */
.advertise-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 40px;
}

.advertise-stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.advertise-stat .stat-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 4px;
}

.advertise-stat .stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Write for us: guidelines list */
.write-for-us-page .guidelines {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.write-for-us-page .guidelines h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  margin-top: 40px;
}

.write-for-us-page .guidelines p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.write-for-us-page .guidelines ul,
.write-for-us-page .guidelines ol {
  margin: 16px 0;
  padding-left: 0;
}

.write-for-us-page .guidelines ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  list-style: none;
}

.write-for-us-page .guidelines ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
}

.write-for-us-page .guidelines ol {
  padding-left: 28px;
}

.write-for-us-page .guidelines ol li {
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}

.write-for-us-page .guidelines ol li::marker {
  color: var(--accent-blue);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   25. Sitemap Page
   -------------------------------------------------------------------------- */
.sitemap-page {
  padding: 64px 0 80px;
}

.sitemap-page .sitemap-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.sitemap-page h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 48px;
}

.sitemap-page h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  margin-top: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.sitemap-page h2:first-of-type {
  margin-top: 0;
}

.sitemap-page ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.sitemap-page ul li {
  border-bottom: 1px solid var(--border-subtle);
}

.sitemap-page ul li:last-child {
  border-bottom: none;
}

.sitemap-page ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.sitemap-page ul li a:hover {
  color: var(--accent-blue);
  padding-left: 8px;
}

.sitemap-page ul li a .sitemap-date {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 16px;
}

/* Nested sitemap lists (categories with sub-items) */
.sitemap-page ul ul {
  margin: 0;
  padding-left: 24px;
}

.sitemap-page ul ul li a {
  font-size: 14px;
  padding: 8px 0;
}

/* Sitemap columns layout */
.sitemap-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.sitemap-columns ul {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   26. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .navbar,
  .footer,
  .back-to-top,
  .mobile-menu,
  .search-modal,
  .newsletter-section,
  .ad-banner,
  .trending-section,
  .categories,
  .hero-visual,
  .comments-area,
  .related-posts,
  .post-navigation {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .article-content a {
    color: #000;
    text-decoration: underline;
  }

  .article-content a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  .single-article {
    max-width: 100%;
    padding: 0;
  }
}
