/*
 Theme Name: Car Collection
 Description: A luxury dark automotive blog theme for car enthusiasts and collectors.
 Version: 1.0.0
 Requires at least: 6.5
 Tested up to: 6.8
 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: carcollection
*/

/* ============================================================
   CSS RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ============================================================
   BASE
   ============================================================ */
body {
  background-color: var(--wp--preset--color--bg);
  color: var(--wp--preset--color--text);
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--normal);
  line-height: 1.7;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-container { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; padding-top: 24px; padding-bottom: 40px; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.content-sidebar-wrap { display: flex; flex-direction: column; gap: 32px; }
.content-area { min-width: 0; flex: 1; }
.sidebar { width: 100%; flex-shrink: 0; }

@media (min-width: 1024px) {
  .content-sidebar-wrap { flex-direction: row; align-items: flex-start; }
  .sidebar { width: 300px; }
}

@media (min-width: 768px) {
  .container { padding-inline: 24px; }
  .site-main { padding-top: 40px; padding-bottom: 60px; }
}

/* ============================================================
   CONTENT TYPOGRAPHY
   ============================================================ */
.entry-content { font-size: var(--wp--preset--font-size--normal); line-height: 1.8; color: var(--wp--preset--color--text); }
.entry-content p { margin-bottom: 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700; line-height: 1.3;
  color: var(--wp--preset--color--text); margin-top: 2em; margin-bottom: 0.6em; letter-spacing: -0.02em;
}
.entry-content h2 { font-size: var(--wp--preset--font-size--xx-large); }
.entry-content h3 { font-size: var(--wp--preset--font-size--x-large); }
.entry-content h4 { font-size: var(--wp--preset--font-size--large); }
.entry-content a { color: var(--wp--preset--color--primary); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s ease; }
.entry-content a:hover { color: var(--wp--preset--color--primary-dark); }
.entry-content ul, .entry-content ol { margin-bottom: 1.25em; padding-left: 1.5em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--wp--preset--color--primary); }
.entry-content ul ul, .entry-content ol ol, .entry-content ul ol, .entry-content ol ul { margin-top: 0.4em; margin-bottom: 0; }

/* Blockquote — gold left border + dark bg */
.entry-content blockquote {
  margin: 1.75em 0; padding: 1em 1.25em;
  border-left: 4px solid var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--primary-light);
  border-radius: 0 6px 6px 0;
  color: var(--wp--preset--color--text-secondary); font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 0.5em; font-size: var(--wp--preset--font-size--small); font-style: normal; color: var(--wp--preset--color--text-muted); }

/* Images */
.entry-content img { max-width: 100%; height: auto; border-radius: 6px; margin-top: 0.5em; margin-bottom: 1.5em; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { text-align: center; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--text-muted); margin-top: 0.4em; }

/* Inline code */
.entry-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em; background-color: var(--wp--preset--color--primary-light);
  color: var(--wp--preset--color--primary); padding: 0.15em 0.4em;
  border-radius: 3px; border: 1px solid var(--wp--preset--color--border);
}

/* Code blocks */
.entry-content pre {
  font-family: "SFMono-Regular", Consolas, monospace; font-size: var(--wp--preset--font-size--small);
  background-color: #000; color: #e0e0e0;
  padding: 1.25em 1.5em; border-radius: 6px; overflow-x: auto; margin: 1.5em 0; line-height: 1.6;
}
.entry-content pre code { background: none; color: inherit; padding: 0; border: none; font-size: inherit; border-radius: 0; }

/* Tables */
.entry-content .table-responsive { overflow-x: auto; margin: 1.5em 0; border-radius: 6px; border: 1px solid var(--wp--preset--color--border); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--wp--preset--font-size--small); min-width: 500px; }
.entry-content th {
  background-color: var(--wp--preset--color--primary); color: #0D0D0D;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--small); text-align: left; padding: 10px 14px; letter-spacing: 0.03em;
}
.entry-content td { padding: 9px 14px; border-bottom: 1px solid var(--wp--preset--color--border); vertical-align: top; color: var(--wp--preset--color--text-secondary); }
.entry-content tr:nth-child(even) td { background-color: var(--wp--preset--color--primary-light); }
.entry-content tr:last-child td { border-bottom: none; }
.entry-content hr { border: none; border-top: 2px solid var(--wp--preset--color--border); margin: 2em 0; }

@media (min-width: 768px) {
  .entry-content { font-size: var(--wp--preset--font-size--medium); }
  .entry-content h2 { font-size: calc(var(--wp--preset--font-size--xx-large) * 1.15); }
  .entry-content h3 { font-size: var(--wp--preset--font-size--xx-large); }
}

/* ============================================================
   SITE HEADER — Dark luxury
   ============================================================ */
.site-header {
  background-color: var(--wp--preset--color--bg-card);
  border-bottom: 1px solid var(--wp--preset--color--border);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 1px 12px rgba(200, 168, 78, 0.08); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
@media (min-width: 768px) { .header-inner { height: 60px; } }

/* ============================================================
   LOGO — Gold icon + white text
   ============================================================ */
.site-logo { display: flex; align-items: center; gap: 0; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 32px; height: 32px; background: var(--wp--preset--color--primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: var(--wp--preset--font-family--body); font-size: 16px; font-weight: 800;
  color: #0D0D0D; flex-shrink: 0; margin-right: 8px;
}
.logo-h {
  font-family: var(--wp--preset--font-family--body); font-size: 20px; font-weight: 800;
  color: var(--wp--preset--color--primary); line-height: 1; letter-spacing: -0.5px;
}
.logo-text {
  font-family: var(--wp--preset--font-family--body); font-size: 20px; font-weight: 800;
  color: var(--wp--preset--color--text); line-height: 1; letter-spacing: -0.5px;
}
@media (min-width: 768px) { .logo-h, .logo-text { font-size: 22px; } }

/* ============================================================
   DESKTOP NAV
   ============================================================ */
.desktop-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }
.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-menu li a {
  display: flex; align-items: center; padding: 6px 14px;
  font-size: 13px; font-weight: 400; color: var(--wp--preset--color--text-muted);
  text-decoration: none; border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease; white-space: nowrap;
}
.nav-menu li a:hover { color: var(--wp--preset--color--primary); background-color: rgba(200, 168, 78, 0.06); }
.nav-menu li.current-menu-item > a, .nav-menu li.current_page_item > a { color: var(--wp--preset--color--primary); font-weight: 600; }

/* Search Toggle */
.search-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--wp--preset--color--border); background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--wp--preset--color--text-muted);
  transition: border-color 0.15s, color 0.15s; flex-shrink: 0;
}
.search-toggle:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }

/* Search Overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.75); display: flex;
  align-items: flex-start; justify-content: center; padding-top: 15vh;
  visibility: hidden; opacity: 0; transition: visibility 0.2s, opacity 0.2s;
}
.search-overlay.open { visibility: visible; opacity: 1; }
.search-overlay-inner {
  background: var(--wp--preset--color--bg-card); border-radius: 16px; padding: 16px;
  width: 92%; max-width: 520px; position: relative;
  transform: translateY(-20px); transition: transform 0.2s ease;
  border: 1px solid var(--wp--preset--color--border);
}
.search-overlay.open .search-overlay-inner { transform: translateY(0); }
.search-overlay-close {
  position: absolute; top: -44px; right: 0; width: 36px; height: 36px;
  background: none; border: none; font-size: 18px;
  color: rgba(255,255,255,0.7); cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 6px;
}
.search-overlay-close:hover { background: rgba(255, 255, 255, 0.1); }
.search-overlay .search-form { max-width: 100%; }

/* Search Form */
.search-form {
  display: flex; align-items: center; gap: 8px;
  background: var(--wp--preset--color--bg); border: 1px solid var(--wp--preset--color--border);
  border-radius: 10px; padding: 6px 12px;
}
.search-input {
  flex: 1; border: none; background: transparent; outline: none;
  color: var(--wp--preset--color--text); font-size: 14px; padding: 6px 0;
}
.search-input::placeholder { color: var(--wp--preset--color--text-muted); }
.search-submit {
  background: none; border: none; cursor: pointer;
  color: var(--wp--preset--color--text-muted); display: flex; align-items: center; justify-content: center;
  padding: 4px; border-radius: 4px; transition: color 0.15s;
}
.search-submit:hover { color: var(--wp--preset--color--primary); }

/* Mobile Right */
.header-mobile-right { display: flex; align-items: center; gap: 8px; }
@media (min-width: 1024px) { .header-mobile-right { display: none; } }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-toggle {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px; background: none; border: none;
  cursor: pointer; padding: 0; flex-shrink: 0;
}
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }
.hamburger-line { display: block; width: 18px; height: 1.5px; background-color: var(--wp--preset--color--text); border-radius: 1px; }

.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; opacity: 0; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-menu-overlay.open { visibility: visible; opacity: 1; }
.mobile-menu-overlay::before { content: ""; position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.6); }

.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 80%; max-width: 320px;
  background-color: var(--wp--preset--color--bg-card); padding: 24px 20px;
  overflow-y: auto; transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column; gap: 20px;
  border-left: 1px solid var(--wp--preset--color--border);
}
.mobile-menu-overlay.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; font-size: 24px;
  color: var(--wp--preset--color--text); display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: background-color 0.15s ease;
}
.mobile-menu-close:hover { background-color: var(--wp--preset--color--primary-light); }

.mobile-nav-menu { list-style: none; margin: 0; padding: 0; }
.mobile-nav-menu li { border-bottom: 1px solid var(--wp--preset--color--border); min-height: 48px; display: flex; align-items: center; }
.mobile-nav-menu li a {
  display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 4px;
  font-size: 15px; color: var(--wp--preset--color--text); text-decoration: none;
  transition: color 0.15s ease;
}
.mobile-nav-menu li a:hover, .mobile-nav-menu li.current-menu-item > a { color: var(--wp--preset--color--primary); }

/* ============================================================
   FOOTER — Dark luxury
   ============================================================ */
.site-footer { margin-top: auto; }
.footer-main { background-color: var(--wp--preset--color--footer); color: #8A7D65; padding: 32px 0; border-top: 1px solid var(--wp--preset--color--border); }
.footer-grid { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .footer-grid { flex-direction: row; gap: 40px; } .footer-col { flex: 1; } }

.footer-title { font-size: 14px; color: var(--wp--preset--color--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.6; color: #8A7D65; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #8A7D65; text-decoration: none; font-size: 13px; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--wp--preset--color--primary); }
.footer-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-recent a { color: #8A7D65; text-decoration: none; font-size: 13px; line-height: 1.45; transition: color 0.15s ease; display: block; }
.footer-recent a:hover { color: var(--wp--preset--color--primary); }

.footer-bottom { background-color: var(--wp--preset--color--footer-bottom); color: #5A5040; padding: 12px 0; font-size: 12px; border-top: 1px solid #1A1A1A; }
.footer-bottom-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: #5A5040; text-decoration: none; font-size: 11px; }
.footer-legal a:hover { color: var(--wp--preset--color--primary); }

/* ============================================================
   SIDEBAR
   ============================================================ */
@media (min-width: 1024px) { .sidebar { position: sticky; top: 80px; align-self: start; } }
.widget {
  background-color: var(--wp--preset--color--bg-card); border-radius: 10px;
  border: 1px solid var(--wp--preset--color--border);
  padding: 16px; margin-bottom: 16px;
}
.widget-ad { background: none; border: none; padding: 0; }
.widget-title {
  font-family: var(--wp--preset--font-family--heading); font-size: 13px; font-weight: 700;
  color: var(--wp--preset--color--text); border-bottom: 2px solid var(--wp--preset--color--primary);
  padding-bottom: 8px; margin-bottom: 12px;
}

/* Popular Posts */
.popular-list { display: flex; flex-direction: column; gap: 10px; }
.popular-item { display: flex; align-items: flex-start; gap: 10px; }
.popular-rank {
  width: 24px; height: 24px; background: var(--wp--preset--color--primary);
  color: #0D0D0D; font-size: 11px; font-weight: 700; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.popular-link { font-size: 12px; font-weight: 600; color: var(--wp--preset--color--text); line-height: 1.45; transition: color 0.15s ease; }
.popular-link:hover { color: var(--wp--preset--color--primary); }

/* Categories */
.category-list { display: flex; flex-direction: column; gap: 8px; }
.category-item a { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--wp--preset--color--text); transition: color 0.15s ease; }
.category-item a:hover { color: var(--wp--preset--color--primary); }
.cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-name { flex: 1; }
.cat-count { font-size: 10px; color: var(--wp--preset--color--text-muted); background-color: var(--wp--preset--color--primary-light); padding: 1px 6px; border-radius: 10px; }

/* Tags */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  font-size: 11px; color: var(--wp--preset--color--text-secondary);
  background-color: var(--wp--preset--color--primary-light);
  padding: 3px 8px; border-radius: 12px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tag-pill:hover { color: var(--wp--preset--color--primary); }

/* ============================================================
   CATEGORY LABEL
   ============================================================ */
.cat-label {
  display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--primary-light);
  padding: 3px 8px; border-radius: 12px; margin-bottom: 8px;
}

/* ============================================================
   HERO CARD
   ============================================================ */
.hero-card {
  margin: 16px 0; border-radius: 12px;
  background-color: var(--wp--preset--color--bg-card);
  border: 1px solid var(--wp--preset--color--border);
  overflow: hidden;
}
.hero-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
@media (min-width: 768px) { .hero-link { flex-direction: row; } }
.hero-image { aspect-ratio: 16 / 9; overflow: hidden; flex-shrink: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; margin: 0; }
@media (min-width: 768px) { .hero-image { aspect-ratio: unset; flex: 1; min-height: 280px; } }
.hero-content { padding: 16px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .hero-content { padding: 32px; flex: 1; } }
.hero-title {
  font-family: var(--wp--preset--font-family--heading); font-size: 22px; font-weight: 700;
  line-height: 1.25; color: var(--wp--preset--color--text); letter-spacing: -0.3px; margin-bottom: 12px;
}
@media (min-width: 768px) { .hero-title { font-size: 28px; } }
.hero-excerpt { font-size: 14px; color: var(--wp--preset--color--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.hero-readmore {
  display: inline-block; background-color: var(--wp--preset--color--primary); color: #0D0D0D;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 8px 16px; border-radius: 6px; align-self: flex-start; transition: background-color 0.2s ease;
}
.hero-link:hover .hero-readmore { background-color: var(--wp--preset--color--primary-dark); }

/* ============================================================
   POST CARD GRID
   ============================================================ */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.post-card {
  background-color: var(--wp--preset--color--bg-card); border-radius: 10px;
  border: 1px solid var(--wp--preset--color--border);
  overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) { .post-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(200, 168, 78, 0.1); } }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-image { aspect-ratio: 3 / 2; overflow: hidden; flex-shrink: 0; }
@media (min-width: 768px) { .card-image { aspect-ratio: 16 / 9; } }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
@media (hover: hover) { .post-card:hover .card-image img { transform: scale(1.03); } }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-family: var(--wp--preset--font-family--heading); font-size: 15px; font-weight: 700;
  line-height: 1.35; color: var(--wp--preset--color--text); margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 768px) { .card-title { font-size: 16px; } }

/* Mobile: horizontal card */
@media (max-width: 767px) {
  .post-card .card-link { display: flex; flex-direction: row; }
  .card-image { width: 110px; flex-shrink: 0; aspect-ratio: 1 / 1; }
  .card-body { padding: 10px 12px; }
  .card-title { font-size: 14px; }
}

.card-meta { font-size: 11px; color: var(--wp--preset--color--text-muted); margin-top: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 32px; margin-bottom: 16px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: 6px;
  font-size: 13px; font-weight: 600; line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.pagination a {
  color: var(--wp--preset--color--text-secondary);
  background-color: var(--wp--preset--color--bg-card);
  border: 1px solid var(--wp--preset--color--border);
  text-decoration: none;
}
.pagination a:hover { background-color: var(--wp--preset--color--primary-light); color: var(--wp--preset--color--primary); }
.pagination .current { background-color: var(--wp--preset--color--primary); color: #0D0D0D; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { font-size: 11px; color: var(--wp--preset--color--text-muted); padding: 12px 0; overflow-x: auto; white-space: nowrap; }
.breadcrumb a { color: var(--wp--preset--color--primary); text-decoration: none; transition: color 0.15s ease; }
.breadcrumb a:hover { color: var(--wp--preset--color--primary-dark); }
.breadcrumb-sep { margin: 0 6px; color: var(--wp--preset--color--border); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-title {
  font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--x-large);
  font-weight: 700; line-height: 1.25; letter-spacing: -0.02em;
  color: var(--wp--preset--color--text); margin-top: 8px; margin-bottom: 12px;
}
@media (min-width: 768px) { .post-title { font-size: var(--wp--preset--font-size--xx-large); } }
.post-meta { font-size: 12px; color: var(--wp--preset--color--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; }
.meta-sep { color: var(--wp--preset--color--border); }

.post-featured-image { margin: 0 -16px; overflow: hidden; margin-bottom: 24px; }
.post-featured-image img { width: 100%; height: auto; display: block; border-radius: 0; }
@media (min-width: 768px) { .post-featured-image { margin: 0; border-radius: 12px; } .post-featured-image img { border-radius: 12px; } }

.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--wp--preset--color--border); }

/* Post Nav */
.post-nav { display: flex; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--wp--preset--color--border); }
.post-nav-link {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  padding: 12px; border-radius: 8px; background: var(--wp--preset--color--bg-card);
  border: 1px solid var(--wp--preset--color--border); text-decoration: none;
  transition: border-color 0.15s ease;
}
.post-nav-link:hover { border-color: var(--wp--preset--color--primary); }
.post-nav-link--next { text-align: right; }
.post-nav-label { font-size: 11px; color: var(--wp--preset--color--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.post-nav-title { font-size: 13px; font-weight: 600; color: var(--wp--preset--color--text); line-height: 1.4; }

/* Related Posts */
.related-posts { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--wp--preset--color--border); }
.related-posts__title { font-family: var(--wp--preset--font-family--heading); font-size: 16px; font-weight: 700; color: var(--wp--preset--color--text); margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  background-color: var(--wp--preset--color--bg-card); border-radius: 10px;
  border: 1px solid var(--wp--preset--color--border);
  overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) { .related-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(200, 168, 78, 0.1); } }
.related-card__link { display: block; color: inherit; text-decoration: none; }
.related-card__image { height: 180px; overflow: hidden; }
@media (min-width: 768px) { .related-card__image { height: 120px; } }
.related-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
@media (hover: hover) { .related-card:hover .related-card__image img { transform: scale(1.05); } }
.related-card__body { padding: 12px; }
.related-card__title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--wp--preset--color--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   ARCHIVE
   ============================================================ */
.archive-header { padding: 24px 0 16px; }
.archive-title { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--x-large); font-weight: 700; color: var(--wp--preset--color--text); }
.archive-title span { color: var(--wp--preset--color--primary); }
.archive-desc { font-size: 14px; color: var(--wp--preset--color--text-secondary); margin-top: 4px; }
.archive-count { font-size: 12px; color: var(--wp--preset--color--text-muted); display: inline-block; margin-top: 4px; }

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 { text-align: center; padding: 80px 16px; max-width: 500px; margin: 0 auto; }
.error-404-icon { font-size: 64px; margin-bottom: 16px; }
.page-404 h1 { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--xx-large); color: var(--wp--preset--color--text); margin-bottom: 8px; }
.error-desc { color: var(--wp--preset--color--text-secondary); margin-bottom: 24px; }

/* ============================================================
   SCREEN READER TEXT
   ============================================================ */
.screen-reader-text {
  border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px;
}
