/*
Theme Name: Obsidian Emerald (黑青雅致)
Theme URI: https://www.kinggu.com/
Author: Davon.H
Author URI: https://www.kinggu.com/about.html
Description: 专为个人感悟、学习心得、产品设计经验与交易思考打造的 WordPress 6.9.5 暗色优雅主题。内置黑青雅致、墨绿书卷、夜海深蓝 3 款主题方案，具备极致的中文排版与高质感长文阅读体验。
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.9.5
Requires PHP: 7.4
Text Domain: obsidian-emerald
*/

/* ==========================================================================
   CSS Variables & Design Themes (Black + Blue + Green Palette)
   ========================================================================== */
:root, [data-theme="obsidian-harmony"] {
  /* Theme 1: 黑青雅致 (Obsidian & Emerald Harmony) - Default */
  --bg-body: #111113;
  --bg-surface: #18181c;
  --bg-card: #202026;
  --bg-card-hover: #292931;
  --bg-input: #141417;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent-green: #34b368;
  --accent-green-bg: rgba(52, 179, 104, 0.12);
  --accent-blue: #4f96f6;
  --accent-blue-bg: rgba(79, 150, 246, 0.12);
  --text-primary: #f0f3f6;
  --text-secondary: #a2a8b8;
  --text-muted: #6a7182;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --transition: all 0.25s ease;
}

[data-theme="ink-sage"] {
  /* Theme 2: 墨绿书卷 (Ink & Sage Green) */
  --bg-body: #0f1310;
  --bg-surface: #151b16;
  --bg-card: #1a221c;
  --bg-card-hover: #212c24;
  --bg-input: #121713;
  --border-subtle: rgba(74, 115, 87, 0.18);
  --border-strong: rgba(74, 115, 87, 0.35);
  --accent-green: #3da36c;
  --accent-green-bg: rgba(61, 163, 108, 0.12);
  --accent-blue: #388099;
  --accent-blue-bg: rgba(56, 128, 153, 0.12);
  --text-primary: #e2e9e4;
  --text-secondary: #9db2a3;
  --text-muted: #677d6e;
}

[data-theme="midnight-blue"] {
  /* Theme 3: 夜海深蓝 (Midnight Slate Blue) */
  --bg-body: #0b1017;
  --bg-surface: #111823;
  --bg-card: #17212f;
  --bg-card-hover: #1f2c3e;
  --bg-input: #0e141d;
  --border-subtle: rgba(66, 125, 190, 0.18);
  --border-strong: rgba(66, 125, 190, 0.35);
  --accent-green: #2fa866;
  --accent-green-bg: rgba(47, 168, 102, 0.12);
  --accent-blue: #388bfd;
  --accent-blue-bg: rgba(56, 139, 253, 0.12);
  --text-primary: #e6edf3;
  --text-secondary: #90a4ba;
  --text-muted: #5b7188;
}

/* ==========================================================================
   Base Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(17, 17, 19, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

[data-theme="ink-sage"] .site-header {
  background-color: rgba(15, 19, 16, 0.88);
}
[data-theme="midnight-blue"] .site-header {
  background-color: rgba(11, 16, 23, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-menu li a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 6px 4px;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current-post-ancestor > a {
  color: var(--text-primary);
}

.nav-menu li.current-menu-item > a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-green);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Switcher */
.theme-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.theme-btn {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 16px;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-btn:hover {
  color: var(--text-secondary);
}

.theme-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  border: 1px solid var(--border-strong);
}

.theme-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.indicator-obsidian { background: #4f96f6; }
.indicator-sage { background: #3da36c; }
.indicator-blue { background: #388bfd; }

.btn-icon-search {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon-search:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-card);
}

.mobile-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-body) 100%);
}

.hero-content {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 14px;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid rgba(52, 179, 104, 0.25);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Main Layout Grid */
.main-layout {
  padding: 40px 0 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
}

/* Categories Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.filter-tab {
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.filter-tab.active {
  background: var(--accent-green-bg);
  border-color: var(--accent-green);
  color: var(--accent-green);
  font-weight: 600;
}

/* Articles Feed Cards */
.articles-stream {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: var(--transition);
}

.article-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-card:hover::before {
  background: var(--accent-green);
}

.article-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.cat-tag {
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  font-weight: 600;
  border: 1px solid rgba(79, 150, 246, 0.2);
}

.tag-badge {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.article-title a {
  color: var(--text-primary);
}

.article-title a:hover {
  color: var(--accent-green);
}

.article-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

.article-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.meta-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Single Post Content Styling */
.single-post-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 42px;
}

.entry-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.entry-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.entry-content p {
  margin-bottom: 1.6em;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin: 1.8em 0 0.8em;
  line-height: 1.35;
}

.entry-content blockquote {
  border-left: 3px solid var(--accent-green);
  background: var(--accent-green-bg);
  padding: 16px 20px;
  margin: 1.8em 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

.entry-content pre, .entry-content code {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.entry-content pre {
  padding: 18px 22px;
  overflow-x: auto;
  margin: 1.8em 0;
}

.entry-content code {
  padding: 2px 6px;
  font-size: 0.9em;
}

.post-navigation {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.post-nav-item {
  max-width: 48%;
}

.post-nav-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.post-nav-item a {
  font-size: 0.95rem;
  color: var(--accent-blue);
  font-weight: 500;
}

.post-nav-item a:hover {
  color: var(--accent-green);
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget-card, .widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 0;
}

.widget-title, .widget h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-title::after, .widget h3::after {
  content: "";
  display: block;
  width: 12px;
  height: 3px;
  background: var(--accent-green);
  border-radius: 2px;
}

/* Profile Widget */
.profile-widget {
  text-align: center;
}

.profile-avatar-wrapper {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
}

.profile-avatar-img, .profile-avatar-wrapper img, .profile-avatar-wrapper .avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  background: var(--bg-body);
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-bio {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-btn:hover {
  color: var(--accent-green);
  border-color: var(--accent-green);
  background: var(--accent-green-bg);
}

.tags-cloud, .tagcloud, .wp-block-tag-cloud {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.tag-item, .tag-cloud-link, .tagcloud a, .wp-block-tag-cloud a {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.82rem !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-secondary) !important;
  transition: var(--transition) !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

.tag-item:hover, .tag-cloud-link:hover, .tagcloud a:hover, .wp-block-tag-cloud a:hover {
  border-color: var(--accent-blue) !important;
  color: var(--accent-blue) !important;
  background: var(--accent-blue-bg) !important;
}

.tag-item.hot, .tag-cloud-link.hot, .tagcloud a.hot {
  border-color: rgba(52, 179, 104, 0.4) !important;
  color: var(--accent-green) !important;
}

.links-list, .widget_links ul, .widget_categories ul, .widget_archive ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-item a, .widget_links li a, .widget_categories li a, .widget_archive li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-decoration: none;
}

.link-item a:hover, .widget_links li a:hover, .widget_categories li a:hover {
  color: var(--accent-green);
}

/* ==========================================================================
   WordPress Comments & Comment Form Styling (Dark Theme)
   ========================================================================== */
#respond, .comment-respond {
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.comment-reply-title, #reply-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-reply-title small a, #cancel-comment-reply-link {
  font-size: 0.82rem;
  color: var(--accent-blue);
  font-family: var(--font-sans);
  text-decoration: underline;
}

.logged-in-as, .logged-in-as a {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.logged-in-as a {
  color: var(--accent-green);
  font-weight: 500;
}

/* Comment Form Controls */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-form p {
  margin-bottom: 0;
}

.comment-form label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
#comment {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: var(--bg-input) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  padding: 14px 16px !important;
  font-size: 0.95rem !important;
  font-family: var(--font-sans) !important;
  line-height: 1.6 !important;
  outline: none !important;
  transition: var(--transition) !important;
}

.comment-form textarea, #comment {
  min-height: 130px !important;
  resize: vertical !important;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
#comment:focus {
  border-color: var(--accent-green) !important;
  box-shadow: 0 0 0 3px var(--accent-green-bg) !important;
}

/* Comment Form Submit Button */
.form-submit {
  margin-top: 8px;
}

.comment-form input[type="submit"],
#submit,
.submit,
.form-submit input[type="submit"] {
  background: var(--accent-green-bg) !important;
  border: 1px solid var(--accent-green) !important;
  color: var(--accent-green) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: 10px 28px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.comment-form input[type="submit"]:hover,
#submit:hover,
.submit:hover,
.form-submit input[type="submit"]:hover {
  background: var(--accent-green) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(52, 179, 104, 0.3) !important;
}

/* Comment List Display */
.comment-list, .commentlist {
  list-style: none;
  padding: 0;
  margin: 32px 0 20px;
}

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

.comment-body {
  display: flex;
  gap: 16px;
}

.comment-author .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

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

.comment-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pagination Navigation */
.navigation.pagination {
  margin-top: 36px;
}

.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.navigation.pagination a, .navigation.pagination span {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.navigation.pagination .current {
  background: var(--accent-green-bg);
  border-color: var(--accent-green);
  color: var(--accent-green);
  font-weight: 600;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  transform: translateY(15px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--text-muted);
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 4px 14px;
  margin-top: 12px;
}

.search-input {
  width: 100%;
  padding: 10px 8px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
}

.qr-container {
  text-align: center;
  padding: 10px 0;
}

.qr-img {
  width: 180px;
  height: 180px;
  margin: 16px auto;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-subtle);
}

/* Responsive */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px;
    align-items: flex-start;
    gap: 16px;
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .theme-btn span {
    display: none;
  }
  .single-post-wrapper {
    padding: 24px 20px;
  }
}
