/*
 * ACI Design System — WordPress Theme
 * Dark mode com identidade visual ACI
 * v2.0 — Animações e Performance
 */

/* ==============================
   ACI CSS CUSTOM PROPERTIES
   ============================== */
:root {
  --bg-darkest: #02030a;
  --bg-dark: #05070c;
  --bg-space: #1a0f1f;
  --bg-card: rgba(15, 22, 41, 0.75);
  --bg-card-hover: rgba(20, 30, 55, 0.85);
  --surface-glass: rgba(255, 255, 255, 0.05);
  --surface-border: rgba(91, 124, 255, 0.2);
  --surface-border-hover: rgba(91, 124, 255, 0.4);
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-accent: #5B7CFF;
  --text-brand: #ef4444;
  --gradient-bg: radial-gradient(1200px circle at 10% 10%, #1a0f1f 0%, #05070c 40%, #02030a 100%);
  --gradient-cta: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --gradient-card: linear-gradient(135deg, rgba(91, 124, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(91, 124, 255, 0.15);
  --shadow-glow-intense: 0 0 40px rgba(91, 124, 255, 0.25);
  --transition-base: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==============================
   ANIMATIONS KEYFRAMES
   ============================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(91, 124, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(91, 124, 255, 0.2);
  }
}

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

/* Utility animation classes */
.animate-fade-in {
  animation: fadeIn 0.5s var(--transition-smooth) forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s var(--transition-smooth) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.4s var(--transition-bounce) forwards;
}

/* ==============================
   MOBILE MENU TOGGLE
   ============================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: var(--transition-base);
  will-change: border-color;
}

.mobile-menu-toggle:hover {
  border-color: var(--surface-border-hover);
}

.nav-primary {
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}

.nav-primary.active {
  max-height: 500px;
  opacity: 1;
  animation: slideDown 0.3s var(--transition-smooth) forwards;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  .nav-primary {
    display: block;
    width: 100%;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .primary-menu {
    flex-direction: column;
    width: 100%;
  }
}

@media (min-width: 769px) {
  .nav-primary {
    max-height: none;
    opacity: 1;
    overflow: visible;
  }
  .primary-menu {
    display: flex;
  }
}

/* ==============================
   FOCUS VISIBLE — Keyboard Accessibility
   ============================== */
:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ==============================
   GLOBAL STYLES
   ============================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  animation: fadeIn 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: #7B9AFF;
  text-decoration: underline;
}

/* Selection */
::selection {
  background: var(--text-accent);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.5);
  border-radius: 4px;
  transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.7);
}

/* ==============================
   HEADER
   ============================== */
.site-header {
  background: rgba(5, 7, 12, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
  will-change: background;
}

.site-header.scrolled {
  background: rgba(5, 7, 12, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  animation: fadeIn 0.5s ease;
}

.site-title a {
  color: #fff;
  text-decoration: none;
  transition: color var(--transition-base);
}

.site-title a:hover {
  color: var(--text-accent);
}

/* Navigation */
.primary-menu {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  animation: fadeIn 0.4s ease both;
}

.primary-menu li:nth-child(1) { animation-delay: 0.05s; }
.primary-menu li:nth-child(2) { animation-delay: 0.10s; }
.primary-menu li:nth-child(3) { animation-delay: 0.15s; }
.primary-menu li:nth-child(4) { animation-delay: 0.20s; }
.primary-menu li:nth-child(5) { animation-delay: 0.25s; }

.primary-menu li a {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
  position: relative;
  will-change: transform, color;
}

.primary-menu li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--text-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition-smooth);
}

.primary-menu li a:hover {
  color: #fff;
  background: var(--surface-glass);
}

.primary-menu li a:hover::after {
  width: 60%;
}

.primary-menu li.current-menu-item a {
  color: var(--text-accent);
  background: rgba(91, 124, 255, 0.1);
}

.primary-menu li.current-menu-item a::after {
  width: 60%;
}

/* ==============================
   MAIN CONTENT
   ============================== */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  animation: fadeIn 0.4s ease;
}

.page-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.5s var(--transition-smooth) both;
}

/* ==============================
   POSTS GRID
   ============================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
  will-change: transform, box-shadow, border-color;
  animation: fadeInUp 0.6s var(--transition-smooth) both;
  contain: layout style;
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.10s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.20s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.30s; }

/* content-visibility for posts below the fold — incremental rendering */
.post-card:nth-child(n+4) {
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}

.post-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--surface-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.post-card .post-thumbnail {
  margin: -24px -24px 16px -24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.post-card .post-thumbnail {
  aspect-ratio: 16 / 9;
}

.post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
  will-change: transform;
}

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

.post-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.post-card h2 a {
  color: #fff;
  text-decoration: none;
  transition: color var(--transition-base);
}

.post-card h2 a:hover {
  color: var(--text-accent);
}

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap var(--transition-smooth), color var(--transition-base);
}

.read-more:hover {
  color: #7B9AFF;
  text-decoration: none;
  gap: 12px;
}

.read-more i {
  transition: transform var(--transition-smooth);
}

.read-more:hover i {
  transform: translateX(4px);
}

/* ==============================
   SINGLE POST
   ============================== */
.single-post-wrapper {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.5s var(--transition-smooth) both;
}

.single-post-wrapper .post-thumbnail-full {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.single-post-wrapper .post-thumbnail-full {
  aspect-ratio: 16 / 9;
}

.single-post-wrapper .post-thumbnail-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.single-post-wrapper h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.5s var(--transition-smooth) both;
}

.post-content {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
}

.post-content h2, .post-content h3 {
  font-family: var(--font-display);
  color: #fff;
  margin-top: 40px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.post-content .wp-block-image img {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.post-content .wp-block-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.post-content blockquote {
  border-left: 3px solid var(--text-accent);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  font-style: italic;
  color: var(--text-secondary);
  animation: scaleIn 0.4s var(--transition-bounce) both;
}

.post-content code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-accent);
}

.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  position: relative;
}

/* Code Copy Button */
.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

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

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

.code-copy-btn.copied {
  border-color: #10B981;
  color: #10B981;
  opacity: 1;
}

/* ==============================
   SIDEBAR
   ============================== */
.widget-area {
  margin-top: 48px;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  transition: var(--transition-base);
}

.widget:hover {
  border-color: var(--surface-border-hover);
}

.widget h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}

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

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: padding-left var(--transition-base);
}

.widget ul li:hover {
  padding-left: 4px;
}

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

.widget ul li a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color var(--transition-base);
}

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

/* ==============================
   FOOTER
   ============================== */
.site-footer {
  background: rgba(5, 7, 12, 0.95);
  border-top: 1px solid var(--surface-border);
  padding: 48px 24px 24px;
  margin-top: 64px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-widget h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}

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

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

.footer-widget ul li a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition-base), padding-left var(--transition-base);
}

.footer-widget ul li a:hover {
  color: var(--text-accent);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--surface-border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==============================
   ARCHIVE DESCRIPTION
   ============================== */
.archive-description {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: -16px;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  animation: fadeInUp 0.5s ease both;
}

/* ==============================
   PAGINATION
   ============================== */
.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
  animation: fadeIn 0.5s ease both;
}

.pagination a, .pagination span {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
  will-change: transform, color, background;
}

.pagination a:hover {
  background: var(--bg-card-hover);
  border-color: var(--surface-border-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.pagination .current {
  background: var(--text-accent);
  border-color: var(--text-accent);
  color: #fff;
}

/* ==============================
   COMMENTS
   ============================== */
.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--surface-border);
}

.comments-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
}

.comment {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  animation: fadeIn 0.4s ease both;
}

.comment-author {
  font-weight: 700;
  color: #fff;
}

.comment-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.comment-content {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Comment Reply Link */
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-accent);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.comment-reply-link:hover {
  background: rgba(91, 124, 255, 0.1);
}

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

.comment-reply-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.comment-respond label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.comment-respond .required {
  color: var(--text-brand);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  transition: var(--transition-base);
  outline: none;
}

.comment-respond input[type="text"]:focus,
.comment-respond input[type="email"]:focus,
.comment-respond input[type="url"]:focus,
.comment-respond textarea:focus {
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.15);
}

.comment-respond textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-respond .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-respond .comment-form-cookies-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--text-accent);
}

.comment-respond .comment-form-cookies-consent label {
  margin-bottom: 0;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

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

.comment-respond .submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.comment-respond .submit:hover {
  opacity: 0.95;
  transform: scale(0.97);
  box-shadow: 0 6px 30px rgba(239, 68, 68, 0.4);
}

.comment-respond .comment-notes {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ==============================
   READING PROGRESS BAR
   ============================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-cta);
  transition: width 100ms linear;
  will-change: width;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* ==============================
   BACK TO TOP
   ============================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: all var(--transition-smooth);
  z-index: 9998;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.back-to-top:hover {
  background: var(--bg-card-hover);
  border-color: var(--surface-border-hover);
  color: var(--text-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.back-to-top:active {
  transform: translateY(-2px);
}

/* ==============================
   BREADCRUMBS
   ============================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

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

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

.breadcrumbs .separator {
  color: var(--surface-border);
  font-size: 10px;
}

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

/* ==============================
   SOCIAL SHARE BUTTONS
   ============================== */
.social-share {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  align-items: center;
  flex-wrap: wrap;
}

.social-share-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--surface-border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.share-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.share-btn--whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: #25D366;
  color: #25D366;
}

.share-btn--facebook:hover {
  background: rgba(24, 119, 242, 0.1);
  border-color: #1877F2;
  color: #1877F2;
}

.share-btn--twitter:hover {
  background: rgba(29, 161, 242, 0.1);
  border-color: #1DA1F2;
  color: #1DA1F2;
}

.share-btn--linkedin:hover {
  background: rgba(0, 119, 181, 0.1);
  border-color: #0077B5;
  color: #0077B5;
}

.share-btn--copy:hover {
  background: rgba(91, 124, 255, 0.1);
  border-color: var(--text-accent);
  color: var(--text-accent);
}

.share-btn--copy.copied {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10B981;
  color: #10B981;
}

/* ==============================
   BUTTONS
   ============================== */
.btn, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  will-change: transform;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  opacity: 0.95;
  transform: scale(0.97);
  text-decoration: none;
  box-shadow: 0 6px 30px rgba(239, 68, 68, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-outline {
  background: transparent;
  color: var(--text-accent);
  border: 1px solid var(--surface-border);
}

.btn-outline:hover {
  border-color: var(--surface-border-hover);
  background: var(--surface-glass);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ==============================
   RELATED POSTS
   ============================== */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--surface-border);
}

.related-posts-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

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

.related-post-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.related-post-card:hover {
  text-decoration: none;
  border-color: var(--surface-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.related-post-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.related-post-card:hover .related-post-thumb img {
  transform: scale(1.08);
}

.related-post-info {
  padding: 14px;
}

.related-post-info h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.4;
}

.related-post-card:hover .related-post-info h4 {
  color: var(--text-accent);
}

.related-post-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==============================
   AUTHOR BIO
   ============================== */
.author-bio {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
}

.author-bio-avatar {
  flex-shrink: 0;
}

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

.author-bio:hover .author-bio-avatar img {
  border-color: var(--surface-border-hover);
}

.author-bio-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.author-bio-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==============================
   POST NAVIGATION
   ============================== */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.post-nav-link:hover {
  text-decoration: none;
  border-color: var(--surface-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

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

.post-nav-direction {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.post-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.post-nav-link:hover .post-nav-title {
  color: var(--text-accent);
}

/* ==============================
   SEARCH FORM
   ============================== */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition-base);
}

.search-input:focus {
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.15);
}

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

.search-form .btn-primary {
  flex-shrink: 0;
}

/* ==============================
   IMAGE LIGHTBOX
   ============================== */
.aci-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(2, 3, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  cursor: zoom-out;
  padding: 24px;
}

.aci-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.aci-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform var(--transition-smooth);
}

.aci-lightbox.active img {
  transform: scale(1);
}

.aci-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.aci-lightbox-close:hover {
  border-color: var(--surface-border-hover);
  color: var(--text-brand);
}

/* Post content images — clickable indicator */
.post-content .wp-block-image {
  cursor: zoom-in;
}

.post-content .wp-block-image img {
  cursor: zoom-in;
}

/* ==============================
   WORDPRESS ADMIN BAR — DARK MODE
   ============================== */
#wpadminbar {
  background: rgba(5, 7, 12, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}

#wpadminbar .ab-item,
#wpadminbar a.ab-item,
#wpadminbar > #wp-toolbar span.ab-label,
#wpadminbar > #wp-toolbar span.noticon {
  color: var(--text-secondary) !important;
}

#wpadminbar .ab-item:hover,
#wpadminbar a.ab-item:hover {
  color: var(--text-primary) !important;
  background: var(--surface-glass) !important;
}

#wpadminbar .ab-top-menu > li.hover > .ab-item,
#wpadminbar .ab-top-menu > li:hover > .ab-item,
#wpadminbar .ab-top-menu > li > .ab-item:focus,
#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus {
  color: var(--text-primary) !important;
  background: var(--surface-glass) !important;
}

#wpadminbar .menupop .ab-sub-wrapper {
  background: rgba(5, 7, 12, 0.97) !important;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-card);
}

#wpadminbar .quicklinks .menupop ul li > a {
  color: var(--text-secondary) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

#wpadminbar .quicklinks .menupop ul li > a:hover {
  color: var(--text-primary) !important;
  background: var(--surface-glass) !important;
}

#wpadminbar .ab-icon:before,
#wpadminbar .ab-item:before {
  color: var(--text-secondary) !important;
}

#wpadminbar .ab-icon:hover:before,
#wpadminbar .ab-item:hover:before {
  color: var(--text-primary) !important;
}

/* Admin bar mobile menu */
@media (max-width: 600px) {
  #wpadminbar {
    position: fixed !important;
  }
}

/* ==============================
   LOADING SHIMMER
   ============================== */
.shimmer-placeholder {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ==============================
   REDUCED MOTION
   ============================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .primary-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .primary-menu li a {
    padding: 6px 12px;
    font-size: 13px;
  }

  .site-content {
    padding: 24px 16px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .single-post-wrapper h1 {
    font-size: 28px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
