/*
Theme Name: eBlindados
Theme URI: https://eblindados.com.br
Author: eBlindados
Author URI: https://eblindados.com.br
Description: Modern card-based theme with sidebar navigation for eBlindados — blindagem automotiva content hub.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eblindados
Tags: blog, one-column, two-columns, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties — Light Mode (default)
   ========================================================================== */

:root {
  /* Colors */
  --bg: #f5f5f5;
  --bg-sidebar: #ffffff;
  --card: #ffffff;
  --accent: #e85d26;
  --accent-hover: #d14e1c;
  --text: #1e1e1e;
  --text-muted: #666666;
  --border: #e0e0e0;

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;

  /* Layout */
  --sidebar-width: 260px;
  --content-max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Spacing */
  --gap: 24px;
  --gap-sm: 16px;
  --gap-xs: 8px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

/* ==========================================================================
   Layout — Sidebar + Content
   ========================================================================== */

.site-layout {
  min-height: 100vh;
}

.site-content {
  margin-left: var(--sidebar-width);
  padding: var(--gap);
  max-width: calc(var(--content-max) + var(--gap) * 2);
  width: calc(100% - var(--sidebar-width));
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: var(--gap);
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--gap);
  text-decoration: none;
}

.sidebar-logo .logo-separator {
  color: var(--accent);
  font-weight: 300;
  margin: 0 2px;
}

.sidebar-logo .logo-e {
  font-weight: 700;
}

.sidebar-logo .logo-text {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Dark mode toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  margin-bottom: var(--gap);
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
  width: 100%;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Sidebar navigation */
.sidebar-nav {
  flex: 1;
  margin-bottom: var(--gap);
}

.sidebar-nav .menu {
  list-style: none;
  padding: 0;
}

.sidebar-nav .menu li {
  margin-bottom: 4px;
}

.sidebar-nav .menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 400;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
}

.sidebar-nav .menu a:hover,
.sidebar-nav .menu .current-menu-item a,
.sidebar-nav .menu .current_page_item a {
  background: var(--bg);
  color: var(--text);
}

.sidebar-nav .menu .current-menu-item a::before,
.sidebar-nav .menu .current_page_item a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Sidebar categories widget */
.sidebar-categories {
  margin-bottom: var(--gap);
}

.sidebar-categories h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--gap-xs);
}

.sidebar-categories ul {
  list-style: none;
  padding: 0;
}

.sidebar-categories li {
  margin-bottom: 2px;
}

.sidebar-categories a {
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.sidebar-categories a:hover {
  background: var(--bg);
  color: var(--text);
}

.sidebar-categories .count {
  float: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Sidebar newsletter widget area */
.sidebar-newsletter {
  margin-top: auto;
  padding-top: var(--gap);
  border-top: 1px solid var(--border);
}

.sidebar-newsletter h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--gap-xs);
}

/* ==========================================================================
   Mobile Header Bar + Hamburger
   ========================================================================== */

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  z-index: 150;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap-sm);
}

.mobile-header .sidebar-logo {
  margin-bottom: 0;
}

.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  line-height: 1;
}

.hamburger-btn svg {
  width: 22px;
  height: 22px;
  color: var(--text);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
}

.sidebar-overlay.active {
  display: block;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-sm);
  margin-bottom: var(--gap);
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Ads Banner
   ========================================================================== */

.ads-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-bottom: var(--gap);
}

.ads-banner--leaderboard {
  min-height: 90px;
}

.ads-banner--leaderboard::before {
  content: "Google Ads — 728×90";
}

/* ==========================================================================
   Welcome Section
   ========================================================================== */

.welcome-section {
  margin-bottom: var(--gap);
}

.welcome-section h1 {
  margin-bottom: 8px;
}

.welcome-section p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.related-posts {
  margin-bottom: var(--gap);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-sm);
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.section-header a {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

/* ==========================================================================
   Post Cards
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.post-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--border);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.03);
}

.post-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.post-card__body {
  padding: var(--gap-sm);
}

.post-card__category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.post-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.post-card__title a {
  color: var(--text);
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--accent);
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-post-header {
  margin-bottom: var(--gap);
}

.single-post-header .post-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.single-post-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.single-post-meta .meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

.single-featured-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--gap);
}

.single-featured-image img {
  width: 100%;
  height: auto;
}

/* Post content */
.post-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--gap);
  margin-bottom: var(--gap);
}

.post-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-content pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.post-content code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content img {
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.post-content th,
.post-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.post-content th {
  background: var(--bg);
  font-weight: 600;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
  margin-top: var(--gap);
  padding-top: var(--gap);
  border-top: 1px solid var(--border);
}

.post-tags a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.post-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.post-navigation a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--gap-sm);
  color: var(--text);
  transition: box-shadow 0.2s ease;
}

.post-navigation a:hover {
  box-shadow: var(--shadow-card-hover);
}

.post-navigation .nav-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.post-navigation .nav-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
}

.post-navigation .nav-next {
  text-align: right;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--gap);
  margin-bottom: var(--gap);
}

.comments-title {
  font-size: 1.25rem;
  margin-bottom: var(--gap);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: var(--gap-sm) 0;
  border-bottom: 1px solid var(--border);
}

.comment:last-child {
  border-bottom: none;
}

.comment .children {
  list-style: none;
  padding-left: var(--gap);
  margin-top: var(--gap-sm);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-meta .avatar {
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.comment-author {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-body p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.comment-reply-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 6px;
  display: inline-block;
}

/* Comment form */
.comment-respond {
  margin-top: var(--gap);
  padding-top: var(--gap);
  border-top: 1px solid var(--border);
}

.comment-respond .comment-reply-title {
  font-size: 1.125rem;
  margin-bottom: var(--gap-sm);
}

.comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
  margin-bottom: var(--gap-sm);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form .form-submit input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
  background: var(--accent-hover);
}

/* ==========================================================================
   Archive / Search
   ========================================================================== */

.archive-header,
.search-header,
.artigos-header {
  margin-bottom: var(--gap);
}

.archive-header h1,
.search-header h1,
.artigos-header h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.archive-description,
.search-description,
.artigos-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-xs);
  margin-top: var(--gap);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--card);
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.pagination .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ==========================================================================
   Author Page
   ========================================================================== */

.author-header {
  display: flex;
  align-items: center;
  gap: var(--gap);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--gap);
  margin-bottom: var(--gap);
}

.author-header .avatar {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.author-info h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.author-bio {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
  text-align: center;
  padding: 80px var(--gap);
}

.error-404 .error-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--gap-sm);
}

.error-404 h1 {
  font-size: 1.5rem;
  margin-bottom: var(--gap-sm);
}

.error-404 p {
  color: var(--text-muted);
  margin-bottom: var(--gap);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.search-form {
  display: flex;
  gap: var(--gap-xs);
}

.search-form .search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}

.search-form .search-field:focus {
  outline: none;
  border-color: var(--accent);
}

.search-form .search-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-form .search-submit:hover {
  background: var(--accent-hover);
}

/* ==========================================================================
   Page Templates
   ========================================================================== */

.page-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--gap);
  margin-bottom: var(--gap);
}

.page-header {
  margin-bottom: var(--gap);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

/* Landing page — no sidebar */
.landing-layout {
  display: block;
}

.landing-layout .site-content {
  max-width: 960px;
  margin: 0 auto;
}

/* Contact form widget area */
.contact-form-area {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--gap);
  margin-bottom: var(--gap);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  text-align: center;
  padding: var(--gap) var(--gap) var(--gap-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Buttons / Utilities
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal;
}

.screen-reader-text:focus {
  clip: auto;
  display: block;
  height: auto;
  width: auto;
  z-index: 100000;
  background: var(--card);
  padding: 15px 23px 14px;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ==========================================================================
   WordPress Defaults
   ========================================================================== */

.alignleft {
  float: left;
  margin-right: var(--gap);
  margin-bottom: var(--gap-sm);
}

.alignright {
  float: right;
  margin-left: var(--gap);
  margin-bottom: var(--gap-sm);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--gap-sm);
}

.wp-caption {
  max-width: 100%;
  margin-bottom: var(--gap-sm);
}

.wp-caption-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: var(--gap-xs);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gap-sm);
  margin-bottom: var(--gap);
}

/* ==========================================================================
   Category Badges
   ========================================================================== */

.category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 10px;
}

.badge-blindagem {
  background: #e85d26;
}
.badge-tecnologia {
  background: #4a90d9;
}
.badge-mercado {
  background: #27ae60;
}
.badge-seguranca {
  background: #e74c3c;
}
.badge-veiculos {
  background: #8e44ad;
}
.badge-dicas {
  background: #f39c12;
}

/* ==========================================================================
   Read More Link
   ========================================================================== */

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.read-more-link:hover {
  color: var(--accent-hover);
}

/* ==========================================================================
   Placeholder Icon (no featured image)
   ========================================================================== */

.placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  color: var(--text-muted);
}

/* ==========================================================================
   Welcome Accent Line
   ========================================================================== */

.welcome-accent-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 12px;
}

.sticky .post-card {
  border-color: var(--accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .mobile-header {
    display: flex;
  }

  .hamburger-btn {
    display: block;
  }

  .site-sidebar {
    transform: translateX(-100%);
  }

  .site-sidebar.active {
    transform: translateX(0);
  }

  .site-content {
    margin-left: 0;
    width: 100%;
    padding-top: 72px;
  }
}

@media (max-width: 768px) {
  :root {
    --gap: 16px;
    --gap-sm: 12px;
  }

  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.25rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .single-post-header h1 {
    font-size: 1.5rem;
  }

  .author-header {
    flex-direction: column;
    text-align: center;
  }

  .error-404 .error-code {
    font-size: 4rem;
  }
}
