/*
Theme Name: ComoComprar
Theme URI: https://comocomprar.com.br
Author: ComoComprar
Author URI: https://comocomprar.com.br
Description: Tema WordPress ultra-otimizado para guias de compra, notícias e tendências. Foco em Core Web Vitals, Google Discover, SEO avançado e monetização com afiliados.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comocomprar
Tags: blog, news, custom-menu, featured-images, threaded-comments, translation-ready, custom-logo, custom-header, footer-widgets, full-width-template
*/

/* ===================================================
   CRITICAL CSS - Inlined above the fold
   =================================================== */

:root {
  /* Colors */
  --cc-blue: #1E3A8A;
  --cc-blue-light: #2563EB;
  --cc-blue-dark: #1E2D5F;
  --cc-green: #16A34A;
  --cc-green-hover: #15803D;
  --cc-white: #FFFFFF;
  --cc-gray-50: #F9FAFB;
  --cc-gray-100: #F3F4F6;
  --cc-gray-200: #E5E7EB;
  --cc-gray-300: #D1D5DB;
  --cc-gray-400: #9CA3AF;
  --cc-gray-500: #6B7280;
  --cc-gray-600: #4B5563;
  --cc-gray-700: #374151;
  --cc-gray-800: #1F2937;
  --cc-gray-900: #111827;
  --cc-red: #DC2626;

  /* Typography */
  --cc-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --cc-font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --cc-font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --cc-gap: 1.25rem;
  --cc-gap-lg: 2rem;
  --cc-radius: 0.625rem;
  --cc-radius-sm: 0.375rem;
  --cc-max-width: 1200px;
  --cc-content-width: 740px;

  /* Shadows */
  --cc-shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --cc-shadow: 0 2px 8px rgba(0,0,0,.08);
  --cc-shadow-lg: 0 8px 24px rgba(0,0,0,.1);
  --cc-shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);

  /* Transitions */
  --cc-ease: cubic-bezier(.4,0,.2,1);
  --cc-duration: 200ms;

  /* Header */
  --cc-header-h: 56px;
}

/* Dark mode */
[data-theme="dark"] {
  --cc-white: #111827;
  --cc-gray-50: #1F2937;
  --cc-gray-100: #1F2937;
  --cc-gray-200: #374151;
  --cc-gray-300: #4B5563;
  --cc-gray-400: #6B7280;
  --cc-gray-500: #9CA3AF;
  --cc-gray-600: #D1D5DB;
  --cc-gray-700: #E5E7EB;
  --cc-gray-800: #F3F4F6;
  --cc-gray-900: #F9FAFB;
  --cc-shadow-sm: 0 1px 2px rgba(0,0,0,.2);
  --cc-shadow: 0 2px 8px rgba(0,0,0,.25);
  --cc-shadow-lg: 0 8px 24px rgba(0,0,0,.35);
  --cc-shadow-card: 0 1px 3px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.15);
}

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

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

body {
  font-family: var(--cc-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--cc-gray-800);
  background: var(--cc-gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--cc-blue-light);
  text-decoration: none;
  transition: color var(--cc-duration) var(--cc-ease);
}
a:hover { color: var(--cc-blue); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cc-font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cc-gray-900);
}

h1 { font-size: clamp(1.625rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); margin-top: 2rem; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); margin-top: 1.5rem; }

p { margin-bottom: 1.25rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }

/* ===================================================
   LAYOUT
   =================================================== */
.cc-container {
  width: 100%;
  max-width: var(--cc-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.cc-grid {
  display: grid;
  gap: var(--cc-gap-lg);
}

@media (min-width: 768px) {
  .cc-grid--main {
    grid-template-columns: 1fr 320px;
  }
}

/* ===================================================
   HEADER / STICKY NAV
   =================================================== */
.cc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cc-blue);
  height: var(--cc-header-h);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  will-change: transform;
}

.cc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--cc-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.cc-logo {
  font-family: var(--cc-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cc-white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cc-logo span {
  color: var(--cc-green);
}

.cc-logo img {
  height: 32px;
  width: auto;
}

/* Nav */
.cc-nav { display: none; }

@media (min-width: 768px) {
  .cc-nav {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .cc-nav a {
    display: block;
    padding: 0.5rem 0.875rem;
    color: rgba(255,255,255,.85);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--cc-radius-sm);
    transition: all var(--cc-duration) var(--cc-ease);
  }
  .cc-nav a:hover,
  .cc-nav .current-menu-item a {
    color: #fff;
    background: rgba(255,255,255,.12);
  }
}

/* Mobile menu */
.cc-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: var(--cc-radius-sm);
}
.cc-menu-toggle:hover { background: rgba(255,255,255,.1); }
.cc-menu-toggle svg { width: 24px; height: 24px; }

@media (min-width: 768px) {
  .cc-menu-toggle { display: none; }
}

.cc-mobile-nav {
  display: none;
  position: fixed;
  top: var(--cc-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cc-blue-dark);
  z-index: 99;
  padding: 1rem;
  overflow-y: auto;
}
.cc-mobile-nav.is-open { display: block; }
.cc-mobile-nav ul { list-style: none; padding: 0; }
.cc-mobile-nav a {
  display: block;
  padding: 0.875rem 1rem;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cc-mobile-nav a:hover { color: #fff; background: rgba(255,255,255,.05); }

/* Header actions */
.cc-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cc-search-toggle,
.cc-darkmode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  border-radius: var(--cc-radius-sm);
  transition: all var(--cc-duration) var(--cc-ease);
}
.cc-search-toggle:hover,
.cc-darkmode-toggle:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.cc-search-toggle svg,
.cc-darkmode-toggle svg { width: 20px; height: 20px; }

/* Search overlay */
.cc-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.cc-search-overlay.is-open { display: flex; align-items: flex-start; justify-content: center; padding-top: 20vh; }
.cc-search-overlay__inner {
  background: var(--cc-white);
  border-radius: var(--cc-radius);
  padding: 1.5rem;
  width: 90%;
  max-width: 560px;
  box-shadow: var(--cc-shadow-lg);
}
.cc-search-overlay input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1.125rem;
  font-family: var(--cc-font-body);
  border: 2px solid var(--cc-gray-200);
  border-radius: var(--cc-radius-sm);
  outline: none;
  transition: border-color var(--cc-duration) var(--cc-ease);
}
.cc-search-overlay input:focus { border-color: var(--cc-blue-light); }

/* ===================================================
   BREAKING NEWS BAR
   =================================================== */
.cc-breaking {
  background: var(--cc-red);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  overflow: hidden;
}
.cc-breaking__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--cc-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.cc-breaking__label {
  flex-shrink: 0;
  background: rgba(0,0,0,.2);
  padding: 0.125rem 0.5rem;
  border-radius: var(--cc-radius-sm);
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}
.cc-breaking__text {
  white-space: nowrap;
  animation: cc-scroll 20s linear infinite;
}
@keyframes cc-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.cc-breaking a { color: #fff; }

/* ===================================================
   HERO / FEATURED POSTS
   =================================================== */
.cc-hero {
  padding: var(--cc-gap-lg) 0;
}

.cc-hero__grid {
  display: grid;
  gap: var(--cc-gap);
}

@media (min-width: 768px) {
  .cc-hero__grid {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
  }
  .cc-hero__grid .cc-card--hero:first-child {
    grid-row: 1 / 3;
  }
}

/* ===================================================
   CARDS
   =================================================== */
.cc-card {
  background: var(--cc-white);
  border-radius: var(--cc-radius);
  overflow: hidden;
  box-shadow: var(--cc-shadow-card);
  transition: transform var(--cc-duration) var(--cc-ease), box-shadow var(--cc-duration) var(--cc-ease);
  display: flex;
  flex-direction: column;
}
.cc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-lg);
}

.cc-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--cc-gray-200);
}
.cc-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--cc-ease);
}
.cc-card:hover .cc-card__thumb img {
  transform: scale(1.03);
}

.cc-card__category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--cc-blue);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--cc-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
}

.cc-card__body {
  padding: 1rem 1.125rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cc-card__title {
  font-family: var(--cc-font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cc-gray-900);
  margin-bottom: 0.5rem;
}
.cc-card__title a {
  color: inherit;
}
.cc-card__title a:hover { color: var(--cc-blue-light); }

.cc-card__excerpt {
  font-size: 0.9375rem;
  color: var(--cc-gray-600);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--cc-gray-400);
}
.cc-card__meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.cc-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Hero card */
.cc-card--hero .cc-card__title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

/* Horizontal card */
.cc-card--horizontal {
  flex-direction: row;
}
.cc-card--horizontal .cc-card__thumb {
  width: 120px;
  min-width: 120px;
  aspect-ratio: 1;
}
.cc-card--horizontal .cc-card__body {
  padding: 0.75rem 1rem;
}
.cc-card--horizontal .cc-card__title {
  font-size: 0.9375rem;
}

@media (min-width: 480px) {
  .cc-card--horizontal .cc-card__thumb {
    width: 160px;
    min-width: 160px;
    aspect-ratio: 4/3;
  }
}

/* ===================================================
   SECTIONS
   =================================================== */
.cc-section {
  padding: var(--cc-gap-lg) 0;
}

.cc-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--cc-blue);
}

.cc-section__title {
  font-family: var(--cc-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cc-gray-900);
}

.cc-section__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cc-blue-light);
}
.cc-section__link:hover { text-decoration: underline; }

/* Post grid */
.cc-post-grid {
  display: grid;
  gap: var(--cc-gap);
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .cc-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .cc-post-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ===================================================
   SIDEBAR
   =================================================== */
.cc-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--cc-gap-lg);
}

.cc-widget {
  background: var(--cc-white);
  border-radius: var(--cc-radius);
  padding: 1.25rem;
  box-shadow: var(--cc-shadow-card);
}

.cc-widget__title {
  font-family: var(--cc-font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--cc-gray-900);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cc-blue);
}

/* Popular posts widget */
.cc-popular-list { list-style: none; padding: 0; }
.cc-popular-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--cc-gray-100);
}
.cc-popular-list li:last-child { border-bottom: none; }
.cc-popular-list__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--cc-blue);
  color: #fff;
  font-family: var(--cc-font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cc-radius-sm);
}
.cc-popular-list__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cc-gray-800);
}
.cc-popular-list__title a { color: inherit; }
.cc-popular-list__title a:hover { color: var(--cc-blue-light); }

/* Newsletter widget */
.cc-newsletter { text-align: center; }
.cc-newsletter p {
  font-size: 0.875rem;
  color: var(--cc-gray-500);
  margin-bottom: 1rem;
}
.cc-newsletter input[type="email"] {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid var(--cc-gray-200);
  border-radius: var(--cc-radius-sm);
  font-size: 0.875rem;
  font-family: var(--cc-font-body);
  margin-bottom: 0.5rem;
}
.cc-newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--cc-blue-light);
}

/* ===================================================
   BUTTONS / CTA
   =================================================== */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--cc-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--cc-radius);
  border: none;
  cursor: pointer;
  transition: all var(--cc-duration) var(--cc-ease);
  text-decoration: none;
}

.cc-btn--primary {
  background: var(--cc-green);
  color: #fff;
}
.cc-btn--primary:hover {
  background: var(--cc-green-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,163,74,.3);
}

.cc-btn--secondary {
  background: var(--cc-blue);
  color: #fff;
}
.cc-btn--secondary:hover {
  background: var(--cc-blue-light);
  color: #fff;
}

.cc-btn--outline {
  background: transparent;
  color: var(--cc-blue);
  border: 2px solid var(--cc-blue);
}
.cc-btn--outline:hover {
  background: var(--cc-blue);
  color: #fff;
}

.cc-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.cc-btn--full { width: 100%; }

.cc-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Affiliate CTA block */
.cc-affiliate-cta {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  border: 2px solid var(--cc-green);
  border-radius: var(--cc-radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}
[data-theme="dark"] .cc-affiliate-cta {
  background: linear-gradient(135deg, rgba(30,58,138,.15) 0%, rgba(22,163,74,.1) 100%);
}
.cc-affiliate-cta__title {
  font-family: var(--cc-font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cc-gray-900);
  margin-bottom: 0.375rem;
}
.cc-affiliate-cta__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cc-green);
  margin-bottom: 0.75rem;
}
.cc-affiliate-cta__price del {
  font-size: 1rem;
  color: var(--cc-gray-400);
  font-weight: 400;
  margin-right: 0.375rem;
}

/* Product comparison box */
.cc-product-box {
  background: var(--cc-white);
  border: 1px solid var(--cc-gray-200);
  border-radius: var(--cc-radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.cc-product-box__img {
  width: 100px;
  min-width: 100px;
  aspect-ratio: 1;
  border-radius: var(--cc-radius-sm);
  overflow: hidden;
  background: var(--cc-gray-100);
}
.cc-product-box__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cc-product-box__info { flex: 1; }
.cc-product-box__name {
  font-family: var(--cc-font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.cc-product-box__rating {
  color: #F59E0B;
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}

/* ===================================================
   SINGLE POST / ARTICLE
   =================================================== */
.cc-article {
  max-width: var(--cc-content-width);
}

.cc-article__header {
  margin-bottom: 1.5rem;
}

.cc-article__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--cc-gray-400);
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}
.cc-article__breadcrumb a { color: var(--cc-gray-500); }
.cc-article__breadcrumb a:hover { color: var(--cc-blue-light); }
.cc-article__breadcrumb li + li::before {
  content: '›';
  margin-right: 0.25rem;
  color: var(--cc-gray-300);
}

.cc-article__category-tag {
  display: inline-block;
  background: var(--cc-blue);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--cc-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.cc-article__title {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cc-article__subtitle {
  font-size: 1.125rem;
  color: var(--cc-gray-500);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cc-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--cc-gray-500);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cc-gray-200);
}

.cc-article__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cc-article__author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.cc-article__reading-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.cc-article__reading-time svg {
  width: 14px;
  height: 14px;
}

/* Featured image */
.cc-article__featured-img {
  border-radius: var(--cc-radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  aspect-ratio: 16/9;
  background: var(--cc-gray-200);
}
.cc-article__featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content */
.cc-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--cc-gray-700);
}

.cc-content h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.875rem;
  padding-top: 0.5rem;
}

.cc-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}

.cc-content p {
  margin-bottom: 1.25rem;
}

.cc-content ul, .cc-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.cc-content li {
  margin-bottom: 0.375rem;
}

.cc-content blockquote {
  border-left: 4px solid var(--cc-blue);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--cc-gray-50);
  border-radius: 0 var(--cc-radius-sm) var(--cc-radius-sm) 0;
  font-style: italic;
  color: var(--cc-gray-600);
}

.cc-content figure {
  margin: 1.5rem 0;
}
.cc-content figcaption {
  font-size: 0.8125rem;
  color: var(--cc-gray-400);
  margin-top: 0.5rem;
  text-align: center;
}

.cc-content pre {
  background: var(--cc-gray-900);
  color: #e5e7eb;
  padding: 1.25rem;
  border-radius: var(--cc-radius);
  overflow-x: auto;
  font-family: var(--cc-font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

.cc-content code {
  font-family: var(--cc-font-mono);
  font-size: 0.875em;
  background: var(--cc-gray-100);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}
.cc-content pre code {
  background: none;
  padding: 0;
}

.cc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
.cc-content th, .cc-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--cc-gray-200);
}
.cc-content th {
  background: var(--cc-gray-100);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cc-gray-600);
}

/* Read also inline block */
.cc-read-also {
  background: var(--cc-gray-50);
  border-left: 4px solid var(--cc-blue-light);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--cc-radius-sm) var(--cc-radius-sm) 0;
}
.cc-read-also__label {
  font-family: var(--cc-font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--cc-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.cc-read-also__title {
  font-weight: 600;
  font-size: 0.9375rem;
}
.cc-read-also__title a { color: var(--cc-gray-800); }
.cc-read-also__title a:hover { color: var(--cc-blue-light); }

/* TOC */
.cc-toc {
  background: var(--cc-gray-50);
  border: 1px solid var(--cc-gray-200);
  border-radius: var(--cc-radius);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}
.cc-toc__title {
  font-family: var(--cc-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.cc-toc ol {
  padding-left: 1.25rem;
  margin-bottom: 0;
}
.cc-toc li {
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}
.cc-toc a {
  color: var(--cc-gray-600);
}
.cc-toc a:hover { color: var(--cc-blue-light); }

/* ===================================================
   RELATED POSTS
   =================================================== */
.cc-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cc-gray-200);
}

/* ===================================================
   AUTHOR BOX
   =================================================== */
.cc-author-box {
  display: flex;
  gap: 1.25rem;
  background: var(--cc-white);
  border-radius: var(--cc-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--cc-shadow-card);
}
.cc-author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.cc-author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cc-author-box__name {
  font-family: var(--cc-font-heading);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.cc-author-box__bio {
  font-size: 0.875rem;
  color: var(--cc-gray-500);
  line-height: 1.5;
}

/* ===================================================
   COMMENTS
   =================================================== */
.cc-comments {
  margin-top: 2rem;
}
.cc-comments .comment-list {
  list-style: none;
  padding: 0;
}
.cc-comments .comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--cc-gray-100);
}

/* ===================================================
   PAGINATION
   =================================================== */
.cc-pagination {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  padding: 2rem 0;
}
.cc-pagination a, .cc-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--cc-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--cc-duration) var(--cc-ease);
}
.cc-pagination a {
  color: var(--cc-gray-600);
  background: var(--cc-white);
  box-shadow: var(--cc-shadow-sm);
}
.cc-pagination a:hover {
  background: var(--cc-blue);
  color: #fff;
}
.cc-pagination .current {
  background: var(--cc-blue);
  color: #fff;
}

/* ===================================================
   LOAD MORE
   =================================================== */
.cc-load-more {
  text-align: center;
  padding: 2rem 0;
}

/* ===================================================
   FOOTER
   =================================================== */
.cc-footer {
  background: var(--cc-gray-900);
  color: var(--cc-gray-400);
  padding: 3rem 0 0;
  margin-top: 3rem;
}

.cc-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .cc-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.cc-footer__brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.cc-footer__col-title {
  font-family: var(--cc-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cc-gray-200);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cc-footer ul {
  list-style: none;
  padding: 0;
}
.cc-footer li { margin-bottom: 0.375rem; }
.cc-footer a {
  color: var(--cc-gray-400);
  font-size: 0.875rem;
}
.cc-footer a:hover { color: var(--cc-white); }

.cc-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ===================================================
   PROGRESS BAR (reading)
   =================================================== */
.cc-progress {
  position: fixed;
  top: var(--cc-header-h);
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--cc-green);
  z-index: 99;
  transition: width 100ms linear;
}

/* ===================================================
   UPDATED DATE BADGE
   =================================================== */
.cc-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cc-green);
  background: rgba(22,163,74,.08);
  padding: 0.1875rem 0.5rem;
  border-radius: var(--cc-radius-sm);
}
.cc-updated-badge svg {
  width: 12px;
  height: 12px;
}

/* ===================================================
   ACCESSIBILITY
   =================================================== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--cc-blue-light);
  outline-offset: 2px;
}

/* Skip link */
.cc-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--cc-blue);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 300;
  font-weight: 600;
}
.cc-skip-link:focus {
  top: 0;
}

/* ===================================================
   ANIMATIONS (minimal, performance-safe)
   =================================================== */
@media (prefers-reduced-motion: no-preference) {
  .cc-fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s var(--cc-ease), transform 0.4s var(--cc-ease);
  }
  .cc-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================
   PRINT
   =================================================== */
@media print {
  .cc-header, .cc-footer, .cc-sidebar, .cc-breaking,
  .cc-affiliate-cta, .cc-related, .cc-progress { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
}

/* ===================================================
   GUTENBERG ALIGNMENT
   =================================================== */
.alignwide {
  margin-left: -1rem;
  margin-right: -1rem;
  max-width: calc(100% + 2rem);
}
.alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 0.5rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 0.5rem; }

/* ===================================================
   WP BLOCK STYLES
   =================================================== */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { border-radius: var(--cc-radius-sm); }
.wp-block-separator {
  border: none;
  border-top: 2px solid var(--cc-gray-200);
  margin: 2rem 0;
}
.wp-block-button__link {
  font-family: var(--cc-font-heading);
  font-weight: 700;
  border-radius: var(--cc-radius);
}
