/*
Theme Name: Isaiah Chua Portfolio
Theme URI: https://ikechua.com
Author: Isaiah Chua
Author URI: https://ikechua.com
Description: A Brittany Chiang-inspired portfolio theme with Japanese cultural undertones, two-column sticky sidebar, scroll-spy navigation, blog support, and scroll-triggered animations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
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: icp
*/

/* ===== Design Tokens ===== */
:root {
  --bg: #1a1d2e;
  --bg-alt: #212538;
  --bg-card: #272b40;
  --card-hover: rgba(200,80,60,0.07);
  --card-border: rgba(200,80,60,0.15);
  --text: #c8cdd8;
  --text-bright: #e2e6ef;
  --text-dim: #5a6178;
  --accent: #e8714a;
  --accent-soft: rgba(232,113,74,0.12);
  --accent-glow: rgba(232,113,74,0.08);
  --gold: #d4a853;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --max-w: 1280px;
  --ease: cubic-bezier(0.645,0.045,0.355,1);
}

/* ===== Reset ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--text-bright); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }

/* ===== Seigaiha Wave Overlay ===== */
.seigaiha-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cpath d='M0 40 Q20 0 40 40' fill='none' stroke='%23c8503c' stroke-width='0.6'/%3E%3Cpath d='M40 40 Q60 0 80 40' fill='none' stroke='%23c8503c' stroke-width='0.6'/%3E%3Cpath d='M-20 40 Q0 0 20 40' fill='none' stroke='%23c8503c' stroke-width='0.6'/%3E%3Cpath d='M60 40 Q80 0 100 40' fill='none' stroke='%23c8503c' stroke-width='0.6'/%3E%3Cpath d='M10 40 Q30 -5 50 40' fill='none' stroke='%23c8503c' stroke-width='0.3'/%3E%3Cpath d='M30 40 Q50 -5 70 40' fill='none' stroke='%23c8503c' stroke-width='0.3'/%3E%3C/svg%3E");
  background-size: 80px 40px;
}

/* ===== Cursor Spotlight ===== */
.spotlight { position: fixed; inset: 0; z-index: 1; pointer-events: none; transition: background 0.3s ease; }

/* ===== Scroll Progress Bar ===== */
.scroll-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #f4a574, var(--accent));
  background-size: 200% 100%;
  animation: shimmer-progress 3s ease-in-out infinite;
  z-index: 9999; transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(232,113,74,0.4);
}
@keyframes shimmer-progress {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Text Scramble ===== */
.site-name a, .site-name { display: inline-block; min-width: 200px; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== Site Wrapper — Two Column Layout ===== */
.site-wrapper { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 2; }
.site-inner { display: block; }
@media (min-width: 1024px) {
  .site-wrapper { padding: 0 6rem; }
  .site-inner { display: flex; justify-content: space-between; gap: 4rem; }
}

/* ===== Sidebar ===== */
.sidebar { padding: 3rem 0 2rem; }
@media (min-width: 1024px) {
  .sidebar {
    position: sticky; top: 0; width: 33%; max-height: 100vh;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 6rem 0; flex-shrink: 0;
  }
}

.site-name { font-family: var(--sans); font-size: 2.8rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.site-name a { color: var(--text-bright); text-decoration: none; }
.site-name a:hover { color: var(--text-bright); }
.site-title { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; color: var(--text-bright); margin-bottom: 0.15rem; }
.site-subtitle-zh { font-size: 1.05rem; color: #f4a574; letter-spacing: 0.08em; margin-bottom: 0.2rem; font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
.site-subtitle-jp { font-size: 1.05rem; color: #e8714a; letter-spacing: 0.08em; margin-bottom: 1rem; font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", "Yu Gothic", sans-serif; }
.site-tagline { font-size: 0.95rem; color: var(--text-dim); max-width: 320px; line-height: 1.6; margin-bottom: 1rem; }
.site-location { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 1.5rem; }

/* ===== Sidebar Languages ===== */
.sidebar-languages { margin-bottom: 2rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.lang-tag { font-size: 0.7rem; color: var(--text-dim); background: var(--bg-alt); padding: 0.15rem 0.5rem; border-radius: 50px; border: 1px solid rgba(90,97,120,0.12); }

/* ===== Sidebar Nav ===== */
.sidebar-nav { display: none; flex-direction: column; gap: 0.25rem; margin-top: 1rem; }
@media (min-width: 1024px) { .sidebar-nav { display: flex; } }

.nav-link { display: flex; align-items: center; padding: 0.6rem 0; text-decoration: none; transition: all 0.25s var(--ease); }
.nav-indicator { display: inline-block; width: 2rem; height: 1px; background: var(--text-dim); margin-right: 1rem; transition: all 0.25s var(--ease); }
.nav-text { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-dim); transition: color 0.25s var(--ease); }

.nav-link:hover .nav-indicator, .nav-link.active .nav-indicator { width: 4rem; background: var(--text-bright); }
.nav-link:hover .nav-text, .nav-link.active .nav-text { color: var(--text-bright); }
.nav-link.active .nav-indicator { background: var(--accent); }
.nav-link.active .nav-text { color: var(--text-bright); }

.nav-link-blog { margin-top: 0.5rem; }
.nav-link-blog .nav-indicator { background: #5ac4d4; }
.nav-link-blog .nav-text { color: #5ac4d4; }

/* ===== Main Content ===== */
.content { padding: 4rem 0; min-height: 100vh; }
@media (min-width: 1024px) { .content { width: 67%; } }

/* ===== Sections ===== */
.section { margin-bottom: 3.5rem; scroll-margin-top: 4rem; }
.section:last-child { margin-bottom: 2rem; }

/* ===== Trilingual Section Headers ===== */
.section-header-tri {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-bottom: 1.5rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(90,97,120,0.12);
}

.section-header-tri h2, .blog-header-tri h1 {
  font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--text-bright); margin: 0;
  position: relative; display: inline-block;
}

.header-zh, .header-jp { letter-spacing: 0.04em; position: relative; display: inline-block; }
.header-zh { font-size: 1.05rem; font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; color: #f4a574; }
.header-jp { font-size: 1.05rem; font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", "Yu Gothic", sans-serif; color: #e8714a; }

.section:hover .header-zh { color: #f7be96; }
.section:hover .header-jp { color: #f28a5e; }

.header-zh::before, .header-jp::before {
  content: "\00B7"; margin-right: 0.75rem; color: var(--accent); opacity: 0.4;
}

@media (max-width: 1023px) {
  .section-header-tri {
    position: sticky; top: 0; z-index: 20;
    margin: 0 -1.5rem 1.5rem; padding: 0.85rem 1.5rem;
    background: rgba(26,29,46,0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(90,97,120,0.15); border-radius: 0;
  }
}
@media (min-width: 1024px) { .section-header-tri { margin-bottom: 1.5rem; } }

/* ===== Section Divider ===== */
.section-divider { display: flex; justify-content: center; padding: 0.5rem 0; margin-bottom: 1.25rem; opacity: 0.15; }
.section-divider svg { width: 60px; height: 20px; }

/* ===== About ===== */
.about-hero { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 1.5rem; }
.about-photo {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover; object-position: top center;
  border: 3px solid rgba(232,113,74,0.35); filter: grayscale(20%);
  box-shadow: 0 0 0 6px rgba(232,113,74,0.08), 0 8px 24px rgba(0,0,0,0.3);
  transition: filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; flex-shrink: 0;
}
.about-photo:hover { filter: grayscale(0%); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(232,113,74,0.15), 0 8px 32px rgba(0,0,0,0.4); }
.about-text p { margin-bottom: 1rem; font-size: 0.92rem; line-height: 1.8; color: var(--text); }

/* ===== Stats ===== */
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2.5rem 0; }
.stat-item { text-align: left; opacity: 0; transform: translateY(20px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.stat-item.stat-revealed { opacity: 1; transform: translateY(0); }
.stat-value { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.stat-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.15rem; }

/* ===== Experience Cards ===== */
.card-list:hover .exp-card { opacity: 0.5; }
.card-list .exp-card:hover { opacity: 1 !important; }
.exp-card {
  position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem;
  padding: 1.25rem; margin: 0 -1.25rem; border-radius: 6px;
  transition: opacity 0.3s var(--ease); cursor: default;
}
.exp-card:hover { background: var(--card-hover); box-shadow: inset 0 1px 0 0 var(--card-border); }
.exp-date { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-dim); padding-top: 0.25rem; font-family: var(--mono); line-height: 1.5; }
.exp-title { font-size: 0.95rem; font-weight: 600; color: var(--text-bright); line-height: 1.4; margin-bottom: 0.15rem; }
.exp-company { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 0.15rem; }
.exp-desc { font-size: 0.82rem; color: var(--text-dim); font-style: italic; margin-bottom: 0.5rem; line-height: 1.6; }
.exp-highlights { margin: 0; padding: 0; }
.exp-highlights li {
  position: relative; padding-left: 1rem; margin-bottom: 0.4rem;
  font-size: 0.82rem; color: var(--text); line-height: 1.6;
  opacity: 0; transform: translateX(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.exp-highlights li.bullet-revealed { opacity: 1; transform: translateX(0); }
.exp-highlights li::before { content: '\25B8'; position: absolute; left: 0; color: var(--accent); font-size: 0.7rem; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }

/* ===== Tags ===== */
.tag-pill {
  display: inline-flex; align-items: center; padding: 0.2rem 0.65rem; border-radius: 50px;
  background: var(--accent-soft); color: var(--accent); font-size: 0.72rem;
  font-weight: 500; font-family: var(--mono); line-height: 1.6;
}

/* ===== Skills ===== */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.skill-group h3 { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.65rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ===== Certifications ===== */
.cert-list:hover .cert-card { opacity: 0.5; }
.cert-list .cert-card:hover { opacity: 1 !important; }
.cert-card {
  position: relative; padding: 1.25rem; margin: 0 -1.25rem; border-radius: 6px;
  transition: opacity 0.3s var(--ease);
}
.cert-card:hover { background: var(--card-hover); box-shadow: inset 0 1px 0 0 var(--card-border); }
.cert-name { font-size: 0.88rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.15rem; }
.cert-issuer { font-size: 0.78rem; color: var(--text-dim); }
.cert-date { font-size: 0.72rem; color: var(--text-dim); font-family: var(--mono); }

/* ===== Education ===== */
.education-block { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid rgba(90,97,120,0.15); }
.education-block h3 { font-size: 0.92rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.15rem; }
.education-block p { font-size: 0.82rem; color: var(--text-dim); }

/* ===== Contact ===== */
.contact-hero { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 2rem; }
.contact-photo {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: top center;
  border: 3px solid rgba(232,113,74,0.35); flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(232,113,74,0.08), 0 8px 24px rgba(0,0,0,0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-photo:hover { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(232,113,74,0.15), 0 8px 32px rgba(0,0,0,0.4); }
.contact-text p { font-size: 0.92rem; line-height: 1.8; color: var(--text); }
.contact-text a.mailto-link { color: var(--accent); font-weight: 600; border-bottom: 1px solid rgba(232,113,74,0.3); transition: border-color 0.25s var(--ease); }
.contact-text a.mailto-link:hover { border-color: var(--accent); }
.contact-services { margin-top: 1rem; padding-left: 1rem; }
.contact-services li { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.35rem; list-style: disc; }

/* ===== Footer ===== */
.site-footer { position: relative; z-index: 2; padding: 3rem 1.5rem 2rem; text-align: center; }
@media (min-width: 1024px) { .site-footer { padding: 3rem 6rem 2rem; } }
.footer-accent { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin-bottom: 2rem; opacity: 0.3; }
.footer-text { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 0.35rem; }
.footer-text-zh { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 0.25rem; font-family: "Noto Sans SC", "PingFang SC", sans-serif; }
.footer-text-jp { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 1rem; font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", sans-serif; }
.footer-sdg { font-size: 0.72rem; color: var(--text-dim); font-style: italic; margin-bottom: 0.5rem; opacity: 0.6; }
.footer-ichthys { font-size: 0.9rem; opacity: 0.3; margin-top: 0.25rem; }

/* ===== Mobile Responsive ===== */
@media (max-width: 1023px) {
  .sidebar { padding: 2rem 0 1.5rem; }
  .content { padding: 0 0 3rem; }
  .section { margin-bottom: 2.5rem; }
  .exp-card { grid-template-columns: 1fr; gap: 0.25rem; }
  .exp-date { padding-top: 0; }
  .card-list:hover .exp-card, .cert-list:hover .cert-card { opacity: 1; }
  .about-hero { flex-direction: column; align-items: center; text-align: center; }
  .contact-hero { flex-direction: column; align-items: center; text-align: center; }
  .skills-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 768px) { .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 480px) { .stats-row { grid-template-columns: 1fr; } }

/* ===== Blog Landing Page ===== */
.blog-header { margin-bottom: 2rem; }
.blog-header-tri { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; }
.blog-header-tri h1 { font-size: 2rem; font-weight: 700; color: var(--text-bright); letter-spacing: -0.02em; }
.blog-header-tri .header-zh { font-size: 1.1rem; color: #f4a574; font-family: "Noto Sans SC", "PingFang SC", sans-serif; }
.blog-header-tri .header-jp { font-size: 1.1rem; color: #e8714a; font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", sans-serif; }
.blog-header-tri .header-zh::before, .blog-header-tri .header-jp::before { content: "\00B7"; margin-right: 0.75rem; color: var(--accent); opacity: 0.4; }
.blog-intro { font-size: 0.95rem; color: var(--text-dim); line-height: 1.7; max-width: 600px; }

.blog-divider { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.blog-divider-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-dim); white-space: nowrap; }
.blog-divider-line { flex: 1; height: 1px; background: rgba(90,97,120,0.15); }

/* Featured Post Hero */
.featured-post {
  position: relative; display: block; padding: 2rem; margin-bottom: 2.5rem;
  border-radius: 8px; background: var(--bg-card); border: 1px solid rgba(90,97,120,0.12);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-decoration: none; overflow: hidden;
}
.featured-post:hover { border-color: var(--accent); box-shadow: 0 4px 24px rgba(232,113,74,0.08); }
.featured-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.75rem; font-family: var(--mono); }
.featured-post .post-card-date { font-size: 0.72rem; color: var(--text-dim); font-family: var(--mono); margin-bottom: 0.5rem; }
.featured-post .post-card-title { font-size: 1.3rem; font-weight: 700; color: var(--text-bright); margin-bottom: 0.75rem; line-height: 1.3; }
.featured-post .post-card-excerpt { font-size: 0.9rem; color: var(--text); line-height: 1.7; margin-bottom: 1rem; }
.featured-post .post-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.featured-thumb { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; margin-bottom: 1rem; }

/* Post Grid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.post-card {
  display: flex; flex-direction: column; padding: 1.25rem; border-radius: 6px;
  background: var(--bg-card); border: 1px solid rgba(90,97,120,0.08);
  transition: border-color 0.3s var(--ease), transform 0.2s var(--ease);
  text-decoration: none; overflow: hidden;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card-thumb img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; margin-bottom: 0.75rem; }
.post-card-body { flex: 1; display: flex; flex-direction: column; }
.post-card-date { font-size: 0.7rem; color: var(--text-dim); font-family: var(--mono); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.04em; }
.post-card-title { font-size: 0.95rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.5rem; line-height: 1.4; }
.post-card-excerpt { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 0.75rem; flex: 1; }
.post-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: auto; }

/* Pagination */
.pagination { text-align: center; margin-top: 2rem; }
.pagination .nav-links { display: flex; justify-content: center; gap: 0.5rem; }
.pagination .page-numbers { padding: 0.5rem 0.85rem; border-radius: 4px; font-size: 0.82rem; color: var(--text-dim); background: var(--bg-alt); border: 1px solid rgba(90,97,120,0.12); }
.pagination .page-numbers.current { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* ===== Single Blog Post ===== */
.single-post-header { margin-bottom: 2rem; }
.single-post-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 1.5rem; font-family: var(--mono); }
.single-post-back:hover { color: var(--text-bright); }
.single-post-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.single-post-meta time { font-size: 0.72rem; color: var(--text-dim); font-family: var(--mono); text-transform: uppercase; }
.single-post-meta .reading-time { font-size: 0.72rem; color: var(--text-dim); font-family: var(--mono); }
.single-post-title { font-size: 1.8rem; font-weight: 700; color: var(--text-bright); line-height: 1.3; margin-bottom: 1rem; letter-spacing: -0.02em; }
.single-post-featured { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 2rem; }

.single-post-content { font-size: 0.95rem; line-height: 1.9; color: var(--text); }
.single-post-content h2 { font-size: 1.2rem; font-weight: 700; color: var(--text-bright); margin: 2rem 0 0.75rem; }
.single-post-content h3 { font-size: 1rem; font-weight: 600; color: var(--text-bright); margin: 1.5rem 0 0.5rem; }
.single-post-content p { margin-bottom: 1.25rem; }
.single-post-content ul, .single-post-content ol { margin: 0 0 1.25rem 1.5rem; }
.single-post-content li { margin-bottom: 0.4rem; list-style: disc; }
.single-post-content blockquote { border-left: 3px solid var(--accent); padding: 0.75rem 1.25rem; margin: 1.5rem 0; background: var(--bg-alt); border-radius: 0 6px 6px 0; font-style: italic; color: var(--text-dim); }
.single-post-content code { font-family: var(--mono); font-size: 0.85em; background: var(--bg-alt); padding: 0.15rem 0.4rem; border-radius: 3px; color: var(--accent); }
.single-post-content pre { background: var(--bg-alt); padding: 1.25rem; border-radius: 6px; overflow-x: auto; margin-bottom: 1.25rem; }
.single-post-content pre code { background: none; padding: 0; }
.single-post-content a { color: var(--accent); border-bottom: 1px solid rgba(232,113,74,0.3); }
.single-post-content a:hover { border-color: var(--accent); }
.single-post-content img { border-radius: 6px; margin: 1.5rem 0; }

.single-post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(90,97,120,0.15); }

.post-nav { display: flex; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(90,97,120,0.15); }
.post-nav a { font-size: 0.82rem; color: var(--text-dim); transition: color 0.25s var(--ease); }
.post-nav a:hover { color: var(--accent); }
.post-nav .next-post { text-align: right; }

.no-posts { color: var(--text-dim); font-size: 0.9rem; text-align: center; padding: 3rem 0; }
