/*
Theme Name: CleanBlog
Theme URI: https://example.com/cleanblog
Author: Hasan
Description: A super clean, readable blog theme optimized for articles and Amazon roundup posts. Beautiful typography, mobile-first responsive design, and conversion-focused layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cleanblog
Tags: blog, one-column, two-columns, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== CSS VARIABLES ===== */
:root {
  --color-bg: #ffffff;
  --color-text: #1a1a2e;
  --color-text-light: #555770;
  --color-text-muted: #8b8da3;
  --color-accent: #e8453c;
  --color-accent-hover: #d13a32;
  --color-border: #e8e8ef;
  --color-bg-alt: #f7f7fa;
  --color-bg-card: #ffffff;
  --color-link: #e8453c;
  --color-link-hover: #d13a32;
  --color-success: #22c55e;
  --color-warning: #f59e0b;

  --font-heading: 'Source Serif 4', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1200px;
  --content-width: 720px;
  --sidebar-width: 320px;
  --gap: 48px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px 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-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-link-hover);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; margin-bottom: 0.5em; }
h2 { font-size: 1.75rem; margin-top: 2em; margin-bottom: 0.6em; }
h3 { font-size: 1.35rem; margin-top: 1.8em; margin-bottom: 0.5em; }
h4 { font-size: 1.15rem; margin-top: 1.5em; margin-bottom: 0.4em; }

p {
  margin-bottom: 1.5em;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* ===== LAYOUT ===== */
.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.content-area {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
  max-width: var(--content-width);
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

/* ===== HEADER ===== */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.site-logo a {
  color: inherit;
}

.site-logo .logo-dot {
  color: var(--color-accent);
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--color-text);
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Search icon in header */
.header-search {
  display: flex;
  align-items: center;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  padding: 8px;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.search-toggle:hover {
  color: var(--color-text);
}

/* ===== HERO / HOME ===== */
.home-hero {
  padding: 80px 0 60px;
  text-align: center;
}

.home-hero h1 {
  font-size: 3rem;
  max-width: 680px;
  margin: 0 auto 16px;
}

.home-hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== CATEGORY TABS (Home) ===== */
.category-tabs {
  display: flex;
  gap: 8px;
  padding: 0 0 40px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.category-tab:hover,
.category-tab.active {
  background: var(--color-text);
  color: #fff;
}

/* ===== POST CARDS (Home listing) ===== */
.posts-grid {
  display: grid;
  gap: 32px;
}

.post-card {
  display: flex;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.2s ease;
}

.post-card:last-child {
  border-bottom: none;
}

.post-card-thumbnail {
  width: 260px;
  height: 180px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.post-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.post-card-category {
  background: var(--color-accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card h2 {
  font-size: 1.3rem;
  margin: 0 0 8px;
  line-height: 1.35;
}

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

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

.post-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-card-author-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.post-card-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.read-time {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* Featured post (first / large) */
.post-card.featured {
  flex-direction: column;
  gap: 20px;
}

.post-card.featured .post-card-thumbnail {
  width: 100%;
  height: 360px;
}

.post-card.featured h2 {
  font-size: 1.75rem;
}

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

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

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

/* ===== SINGLE POST ===== */
.single-post-header {
  padding: 48px 0 32px;
  max-width: var(--content-width);
}

.single-post-category {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.single-post-header h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 640px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.single-post-meta img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.single-post-meta .author-name {
  font-weight: 700;
  color: var(--color-text);
}

.single-post-meta .meta-sep {
  color: var(--color-border);
}

/* Featured image */
.single-featured-image {
  margin: 0 0 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
}

.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== POST CONTENT ===== */
.post-content {
  max-width: var(--content-width);
}

.post-content p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 1.6em;
  color: #3d3d56;
}

.post-content h2 {
  font-size: 1.65rem;
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--color-border);
}

.post-content h3 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.post-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.post-content a:hover {
  text-decoration-thickness: 2.5px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.6em 1.4em;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #3d3d56;
}

.post-content li {
  margin-bottom: 0.5em;
}

.post-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text);
}

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

.post-content pre {
  background: #1a1a2e;
  color: #e2e8f0;
  padding: 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.6em;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content img {
  border-radius: var(--radius-md);
  margin: 2em 0;
}

.post-content figure {
  margin: 2em 0;
}

.post-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
}

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

.post-content th {
  font-weight: 700;
  background: var(--color-bg-alt);
}

/* ===== AMAZON PRODUCT BOX (for roundup articles) ===== */
.product-box {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 2em 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.product-box:hover {
  border-color: var(--color-accent);
}

.product-box-image {
  width: 160px;
  flex-shrink: 0;
}

.product-box-image img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.product-box-content {
  flex: 1;
}

.product-box-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.product-box h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.product-box .product-rating {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.product-box p {
  font-size: 0.92rem;
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.product-box .product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 12px;
}

.product-box .btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff9900;
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.product-box .btn-amazon:hover {
  background: #e68a00;
  transform: translateY(-1px);
  color: #111;
}

/* Product comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.comparison-table th {
  background: var(--color-text);
  color: #fff;
  padding: 14px 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table td {
  padding: 14px 16px;
  font-size: 0.92rem;
}

.comparison-table tr:nth-child(even) {
  background: var(--color-bg-alt);
}

.comparison-table .best-pick {
  background: #fef3c7;
}

/* ===== TABLE OF CONTENTS ===== */
.toc-box {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 0 0 2em;
}

.toc-box h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  color: var(--color-text);
}

.toc-box ol {
  list-style: decimal;
  padding-left: 1.2em;
  margin: 0;
}

.toc-box li {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.toc-box a {
  color: var(--color-text-light);
}

.toc-box a:hover {
  color: var(--color-accent);
}

/* ===== SOCIAL SHARE ===== */
.social-share {
  display: flex;
  gap: 10px;
  padding: 24px 0;
  margin: 2em 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.social-share-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  margin-right: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.9rem;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: #fff;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.pinterest { background: #e60023; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy-link { background: var(--color-text-light); }

/* ===== AUTHOR BOX ===== */
.author-box {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin: 2.5em 0;
}

.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box h4 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.author-box p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--color-text-light);
}

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

.related-posts h3 {
  font-size: 1.4rem;
  margin: 0 0 28px;
}

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

.related-card {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.related-card-thumb {
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.related-card h4 {
  font-size: 1rem;
  margin: 12px 0 4px;
  line-height: 1.35;
}

.related-card h4 a {
  color: var(--color-text);
}

.related-card h4 a:hover {
  color: var(--color-accent);
}

.related-card .post-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ===== SIDEBAR ===== */
.widget {
  margin-bottom: 36px;
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.widget-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-text);
  font-family: var(--font-body);
}

/* Search widget */
.search-form {
  display: flex;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
}

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

.search-form button {
  padding: 10px 16px;
  background: var(--color-text);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-size: 0.88rem;
}

/* Recent posts widget */
.recent-post-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.recent-post-item:last-child {
  margin-bottom: 0;
}

.recent-post-thumb {
  width: 64px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-info h5 {
  font-size: 0.85rem;
  margin: 0 0 4px;
  line-height: 1.35;
  font-weight: 600;
}

.recent-post-info h5 a {
  color: var(--color-text);
}

.recent-post-info h5 a:hover {
  color: var(--color-accent);
}

.recent-post-info .date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* Newsletter widget */
.newsletter-widget {
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
}

.newsletter-widget .widget-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.2);
}

.newsletter-widget p {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}

.newsletter-widget input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-family: var(--font-body);
}

.newsletter-widget button {
  width: 100%;
  padding: 12px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-widget button:hover {
  background: var(--color-accent-hover);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 64px;
  padding: 48px 0 32px;
  background: var(--color-bg-alt);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-about .site-logo {
  margin-bottom: 12px;
  display: block;
}

.footer-about p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-weight: 800;
}

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

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

.footer-col a {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.footer-col a:hover {
  color: var(--color-accent);
}

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

/* ===== COMMENTS ===== */
.comments-area {
  margin-top: 2.5em;
  padding-top: 2.5em;
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

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

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

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

.comment-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment-author .fn {
  font-weight: 700;
  font-size: 0.92rem;
}

.comment-content p {
  font-size: 0.95rem;
}

.comment-reply-link {
  font-size: 0.8rem;
  font-weight: 600;
}

.comment-respond {
  margin-top: 32px;
}

.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.comment-form .submit {
  background: var(--color-text);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-form .submit:hover {
  background: var(--color-accent);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 16px 0;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

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

.breadcrumb .sep {
  margin: 0 8px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--color-text);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
}

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

.back-to-top:hover {
  background: var(--color-accent);
}

/* ===== PROGRESS BAR (Reading) ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: 101;
  transition: width 0.1s linear;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-area {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

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

@media (max-width: 768px) {
  html { font-size: 15px; }

  .header-inner {
    height: 60px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
  }

  .home-hero h1 { font-size: 2rem; }
  .home-hero { padding: 48px 0 36px; }

  .post-card {
    flex-direction: column;
    gap: 16px;
  }

  .post-card-thumbnail {
    width: 100%;
    height: 200px;
  }

  .single-post-header h1 {
    font-size: 1.8rem;
  }

  .product-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .product-box-image {
    width: 120px;
  }

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

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

  .social-share {
    flex-wrap: wrap;
  }

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

@media (max-width: 480px) {
  .site-container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  h1 { font-size: 1.7rem; }
  .post-content p { font-size: 1rem; }
  .single-featured-image { border-radius: var(--radius-sm); }
}

/* ===== ACCESSIBILITY ===== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== CUSTOM SIDEBAR WIDGETS ===== */

/* Search widget */
.widget-search {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.widget-icon {
  margin-right: 6px;
}

.search-input-wrap {
  display: flex;
  position: relative;
}

.sidebar-search-input {
  flex: 1;
  padding: 13px 50px 13px 16px;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  background: var(--color-bg-alt);
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

.sidebar-search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232, 69, 60, 0.1);
  background: #fff;
}

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

.sidebar-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.sidebar-search-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-50%) scale(1.05);
}

/* Recent posts widget - card style */
.widget-recent-posts {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-post-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  position: relative;
}

.recent-post-card:hover {
  background: var(--color-bg-alt);
  transform: translateX(4px);
}

.recent-post-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-border);
  min-width: 28px;
  line-height: 1;
  transition: color 0.2s;
}

.recent-post-card:hover .recent-post-number {
  color: var(--color-accent);
}

.recent-post-card .recent-post-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.recent-post-card .recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.recent-post-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.recent-post-card .recent-post-info h5 {
  font-size: 0.84rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.35;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.recent-post-card:hover .recent-post-info h5 {
  color: var(--color-accent);
}

.recent-post-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.recent-post-date svg {
  opacity: 0.5;
}

.recent-post-readtime {
  opacity: 0.7;
}

/* Categories widget - pill cards */
.widget-categories {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-decoration: none;
  background: var(--color-bg-alt);
  border: 1px solid transparent;
}

.category-card:hover {
  background: #fff;
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.category-card:hover .category-dot {
  transform: scale(1.3);
}

.category-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.category-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 2px 10px;
  border-radius: 50px;
  min-width: 28px;
  text-align: center;
}

.category-card:hover .category-count {
  background: var(--color-accent);
  color: #fff;
}

/* Newsletter widget - dark style */
.widget-newsletter {
  background: linear-gradient(145deg, #1a1a2e, #2d2d4a);
  color: #fff;
  border: none;
  text-align: center;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.widget-newsletter::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(232, 69, 60, 0.15);
}

.widget-newsletter::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
}

.newsletter-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.widget-title-light {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.15);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-heading);
}

.widget-newsletter p {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  position: relative;
  z-index: 1;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.88rem;
  font-family: var(--font-body);
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.12);
}

.newsletter-form button {
  width: 100%;
  padding: 13px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-body);
}

.newsletter-form button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.newsletter-note {
  display: block;
  margin-top: 10px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  position: relative;
  z-index: 1;
}

/* Tags widget */
.widget-tags {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-block;
  padding: 5px 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all 0.2s;
  text-decoration: none;
}

.tag-pill:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 69, 60, 0.25);
}

/* ===== DARK MODE TOGGLE ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 1.1rem;
  color: var(--color-text-light);
  transition: color 0.2s;
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode-toggle:hover {
  color: var(--color-text);
}

.dm-icon-moon { display: inline; }
.dm-icon-sun { display: none; }
.dark-mode .dm-icon-moon { display: none; }
.dark-mode .dm-icon-sun { display: inline; }

/* ===== DARK MODE VARIABLES ===== */
.dark-mode {
  --color-bg: #121220;
  --color-text: #e4e4ef;
  --color-text-light: #a8a8c0;
  --color-text-muted: #6e6e8a;
  --color-bg-alt: #1a1a2e;
  --color-bg-card: #1e1e32;
  --color-border: #2a2a42;
  --color-link: #f06560;
  --color-link-hover: #ff7b76;
  --color-accent: #f06560;
  --color-accent-hover: #ff7b76;
}

.dark-mode body {
  background: var(--color-bg);
  color: var(--color-text);
}

.dark-mode .site-header {
  background: rgba(18, 18, 32, 0.95);
  border-bottom-color: var(--color-border);
}

.dark-mode .site-logo a,
.dark-mode .site-logo {
  color: var(--color-text);
}

.dark-mode .main-nav a {
  color: var(--color-text-light);
}

.dark-mode .main-nav a:hover {
  color: var(--color-text);
}

.dark-mode .menu-toggle span {
  background: var(--color-text);
}

.dark-mode .post-card h2 a {
  color: var(--color-text);
}

.dark-mode .post-card-excerpt,
.dark-mode .post-content p {
  color: var(--color-text-light);
}

.dark-mode .widget {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

.dark-mode .widget-search,
.dark-mode .widget-recent-posts,
.dark-mode .widget-categories,
.dark-mode .widget-tags {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

.dark-mode .widget-title {
  border-bottom-color: var(--color-text-muted);
}

.dark-mode .sidebar-search-input {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-text);
}

.dark-mode .category-card {
  background: var(--color-bg);
}

.dark-mode .category-count {
  background: var(--color-bg-alt);
}

.dark-mode .tag-pill {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-text-light);
}

.dark-mode .recent-post-card:hover {
  background: var(--color-bg);
}

.dark-mode .recent-post-card .recent-post-info h5 {
  color: var(--color-text);
}

.dark-mode .post-content blockquote {
  background: var(--color-bg-alt);
  border-left-color: var(--color-accent);
}

.dark-mode .post-content pre {
  background: #0d0d18;
}

.dark-mode .site-footer {
  background: var(--color-bg-alt);
  border-top-color: var(--color-border);
}

.dark-mode .author-box {
  background: var(--color-bg-alt);
}

.dark-mode .product-box {
  border-color: var(--color-border);
}

.dark-mode .toc-box {
  background: var(--color-bg-alt);
}

.dark-mode .post-card {
  border-bottom-color: var(--color-border);
}

.dark-mode .category-tab {
  background: var(--color-bg-alt);
  color: var(--color-text-light);
}

.dark-mode .category-tab.active {
  background: var(--color-text);
  color: var(--color-bg);
}

.dark-mode .pagination a,
.dark-mode .pagination span {
  border-color: var(--color-border);
  color: var(--color-text-light);
}

.dark-mode .pagination .current {
  background: var(--color-text);
  color: var(--color-bg);
}

.dark-mode .comment-form input,
.dark-mode .comment-form textarea {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
  color: var(--color-text);
}

.dark-mode img {
  opacity: 0.92;
}

/* ===== QUICK ANSWER BOX ===== */
.quick-answer-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 28px;
  margin: 1.5em 0 2em;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: var(--radius-lg);
  border-left: 5px solid #f59e0b;
  position: relative;
  overflow: hidden;
}

.dark-mode .quick-answer-box {
  background: linear-gradient(135deg, #2d2510 0%, #3d3015 100%);
  border-left-color: #f59e0b;
}

.quick-answer-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.quick-answer-content {
  flex: 1;
}

.quick-answer-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #92400e;
  display: block;
  margin-bottom: 4px;
}

.dark-mode .quick-answer-label {
  color: #fbbf24;
}

.quick-answer-product {
  font-size: 1.3rem;
  margin: 0 0 8px;
  font-family: var(--font-heading);
  color: #78350f;
}

.dark-mode .quick-answer-product {
  color: #fde68a;
}

.quick-answer-reason {
  font-size: 0.9rem;
  margin: 0 0 14px;
  color: #92400e;
  line-height: 1.5;
}

.dark-mode .quick-answer-reason {
  color: #d4a855;
}

.quick-answer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
}

.quick-answer-btn:hover {
  background: #d97706;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .quick-answer-box {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }
}

/* ===== FLOATING TOC ===== */
.floating-toc-btn {
  position: fixed;
  left: 24px;
  bottom: 90px;
  width: 44px;
  height: 44px;
  background: var(--color-text);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 98;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.floating-toc-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-toc-btn:hover {
  background: var(--color-accent);
  transform: scale(1.08);
}

.dark-mode .floating-toc-btn {
  background: var(--color-accent);
}

.floating-toc {
  position: fixed;
  left: 24px;
  bottom: 145px;
  width: 280px;
  max-height: 420px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 98;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.floating-toc.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.floating-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--color-border);
}

.floating-toc-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.floating-toc-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px;
  line-height: 1;
}

.floating-toc-close:hover {
  color: var(--color-accent);
}

.floating-toc-nav {
  padding: 10px 14px;
  overflow-y: auto;
  flex: 1;
}

.floating-toc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--color-text-light);
  text-decoration: none;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  margin-bottom: 2px;
}

.floating-toc-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.floating-toc-link.active {
  background: var(--color-bg-alt);
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  font-weight: 600;
}

.floating-toc-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-toc-time {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.floating-toc-progress {
  height: 3px;
  background: var(--color-bg-alt);
}

.floating-toc-progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

@media (max-width: 768px) {
  .floating-toc-btn {
    left: 16px;
    bottom: 80px;
    width: 40px;
    height: 40px;
  }

  .floating-toc {
    left: 16px;
    right: 16px;
    bottom: 130px;
    width: auto;
    max-height: 50vh;
  }
}

/* ===== INLINE RELATED POSTS ===== */
.inline-related {
  margin: 2.5em 0;
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.inline-related-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.inline-related-cards {
  display: flex;
  gap: 16px;
}

.inline-related-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all 0.2s;
}

.inline-related-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.inline-related-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.inline-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inline-related-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inline-related-card:hover .inline-related-title {
  color: var(--color-accent);
}

@media (max-width: 600px) {
  .inline-related-cards {
    flex-direction: column;
  }
}

/* ===== NEXT ARTICLE BAR ===== */
.next-article-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-text);
  color: #fff;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 97;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.next-article-bar.visible {
  transform: translateY(0);
}

.dark-mode .next-article-bar {
  background: #2d2d4a;
}

.next-article-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  flex: 1;
}

.next-article-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.next-article-link {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color 0.2s;
}

.next-article-link:hover {
  color: var(--color-accent);
}

.next-article-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}

.next-article-close:hover {
  color: #fff;
}

@media (max-width: 480px) {
  .next-article-bar {
    padding: 0 16px;
    height: 52px;
  }
  .next-article-label {
    display: none;
  }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .sidebar, .social-share, .related-posts,
  .site-footer, .back-to-top, .reading-progress, .comments-area,
  .floating-toc, .floating-toc-btn, .next-article-bar, .inline-related,
  .quick-answer-box, .dark-mode-toggle { display: none; }
  body { font-size: 12pt; color: #000; }
  .post-content a { text-decoration: underline; }
}
