/*
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, featuring a two-column sticky sidebar, cursor spotlight, scroll-spy navigation, and full blog support.
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 {
  /* Backgrounds — deep indigo night (藍色 ai-iro) */
  --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 — silver tones (銀色) */
  --text: #c8cdd8;
  --text-bright: #e2e6ef;
  --text-dim: #5a6178;

  /* Accent — vermillion (朱色 shu-iro) */
  --accent: #e8714a;
  --accent-soft: rgba(232,113,74,0.12);
  --accent-glow: rgba(232,113,74,0.08);

  /* Gold — (金色 kin-iro) */
  --gold: #d4a853;

  /* Fonts */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --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: 5rem; }
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;
}

/* ===== 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.15rem;
  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: 2.5rem;
}

/* ===== Sidebar Languages ===== */
.sidebar-languages {
  margin-bottom: 2rem;
  font-size: 0.75rem;
  line-height: 1.6;
}

.lang-label {
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  display: block;
  margin-bottom: 0.15rem;
}

.lang-list {
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* ===== 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;
}

.nav-link-blog:hover .nav-indicator {
  width: 4rem;
  background: #7dd8e4;
}

.nav-link-blog:hover .nav-text {
  color: #7dd8e4;
}

.nav-link-blog.active .nav-indicator {
  width: 4rem;
  background: #5ac4d4;
}

.nav-link-blog.active .nav-text {
  color: #5ac4d4;
}

/* ===== Social Links ===== */
.sidebar-bottom {
  padding-top: 2rem;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-links a {
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
  display: flex;
}

.social-links a:hover {
  color: var(--text-bright);
}

/* ===== Main Content ===== */
.content {
  padding: 6rem 0;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .content {
    width: 67%;
  }
}

/* ===== Sections ===== */
.section {
  margin-bottom: 6rem;
  scroll-margin-top: 5rem;
}

.section:last-child {
  margin-bottom: 3rem;
}

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

.section-header-tri h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-bright);
  margin: 0;
}

.header-zh, .header-jp {
  font-size: 0.9rem;
  opacity: 1;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}

.header-zh { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; color: #f4a574; }
.header-jp { 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: "·";
  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 — Minimal Wave ===== */
.section-divider {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  margin-bottom: 2rem;
  opacity: 0.15;
}

.section-divider svg {
  width: 60px;
  height: 20px;
}

/* ===== About Section ===== */
.about-hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.about-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(200,80,60,0.2);
  filter: grayscale(30%);
  transition: filter 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

.about-photo:hover {
  filter: grayscale(0%);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .about-hero {
    flex-direction: column;
  }
  .about-photo {
    width: 140px;
    height: 140px;
  }
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
}

.about-text a {
  color: var(--accent);
  font-weight: 500;
}

.about-text a:hover {
  text-decoration: underline;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.stat-item {
  text-align: left;
}

.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;
}

/* Languages */
.languages {
  margin-top: 2rem;
}

.languages h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.languages li {
  padding: 0.2rem 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ===== Experience Cards (Brittany Chiang style) ===== */
.card-list {
  /* group for sibling dimming */
}

.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-title .company {
  color: var(--accent);
  font-weight: 500;
}

.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;
}

.exp-highlights li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
}

/* ===== Skill Tags / Pills ===== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.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 Section ===== */
.skills-grid {
  display: grid;
  grid-template-columns: 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;
}

/* ===== Certifications ===== */
.cert-list {
  /* group for sibling dimming */
}

.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-note {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.cert-year {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.education-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  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 Section ===== */
.contact-hero {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.contact-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(200,80,60,0.2);
  filter: grayscale(30%);
  transition: filter 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.contact-photo:hover {
  filter: grayscale(0%);
  border-color: var(--accent);
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .contact-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contact-photo {
    width: 120px;
    height: 120px;
  }
}

.contact-intro {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.8;
}

.contact-cta {
  color: #5ac4d4 !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(90, 196, 212, 0.4);
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

.contact-cta:hover {
  color: #7dd8e4 !important;
  text-decoration-color: #7dd8e4;
}


/* ===== 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-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.footer-zh {
  color: var(--text-dim);
  margin-left: 0.5rem;
  letter-spacing: 0.06em;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.footer-jp {
  color: var(--text-dim);
  margin-left: 0.5rem;
  letter-spacing: 0.1em;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", sans-serif;
}

.footer-credit {
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.5;
}

.footer-credit a {
  color: var(--text-dim);
}

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

/* ===== Blog Landing Page ===== */
.blog-header { margin-bottom: 3rem; }

.blog-header-tri {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.blog-header-tri h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin: 0;
}

.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: "·";
  margin-right: 0.75rem;
  color: var(--accent);
  opacity: 0.4;
}

.blog-intro {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 600px;
}

/* Featured Post Hero */
.featured-post {
  position: relative;
  display: block;
  margin-bottom: 3rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.featured-post:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.featured-content { padding: 2rem; }

.featured-date {
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.featured-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  transition: color 0.25s var(--ease);
}

.featured-post:hover .featured-title { color: var(--accent); }

.featured-image {
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.featured-post:hover .featured-image img {
  transform: scale(1.03);
}

.featured-excerpt {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.featured-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.featured-reading-time { font-size: 0.72rem; font-family: var(--mono); color: var(--text-dim); }
.featured-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.featured-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
  transition: gap 0.25s var(--ease);
}

.featured-post:hover .featured-read-more { gap: 0.7rem; }

/* Blog Divider */
.blog-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.blog-divider-line { flex: 1; height: 1px; background: rgba(90,97,120,0.15); }

.blog-divider-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

/* Post Grid */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 0; }

/* Post Cards */
.post-grid:hover .post-card { opacity: 0.5; }
.post-grid:hover .post-card:hover { opacity: 1; }

.post-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  margin: 0 -1.25rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease), opacity 0.3s var(--ease);
}

.post-card:hover {
  background: var(--card-hover);
}

.post-card-thumb {
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s var(--ease);
}

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

.post-card.has-thumb {
  grid-template-columns: 140px 1fr;
}

.post-card-date {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding-top: 0.3rem;
  font-family: var(--mono);
}

.post-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.35;
  margin-bottom: 0.4rem;
  transition: color 0.25s var(--ease);
}

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

.post-card-excerpt {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.no-posts {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.88rem;
}

/* Pagination */
.pagination {
  margin-top: 3rem;
}

.pagination .nav-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.pagination a,
.pagination span {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-family: var(--mono);
  border-radius: 4px;
  transition: all 0.25s var(--ease);
}

.pagination a {
  color: var(--text-dim);
  border: 1px solid rgba(90,97,120,0.2);
}

.pagination a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pagination .current {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ===== Single Post ===== */
.single-post {
  padding-bottom: 3rem;
}

.post-meta-top {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease);
}

.back-link:hover {
  color: var(--text-bright);
}

.back-link svg {
  transition: transform 0.25s var(--ease);
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-date {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.25;
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

.post-featured-image {
  margin-top: 1.5rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(90,97,120,0.15);
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

/* Post Body Content */
.post-content {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text);
}

.post-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.post-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 2rem 0 0.5rem;
}

.post-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 1.5rem 0 0.5rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(200,80,60,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s ease;
}

.post-content a:hover {
  text-decoration-color: var(--accent);
}

.post-content ul,
.post-content ol {
  margin: 1rem 0 1.25rem 1.25rem;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

.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 4px 4px 0;
  color: var(--text);
  font-style: italic;
}

.post-content pre {
  background: var(--bg-alt);
  border: 1px solid rgba(90,97,120,0.15);
  border-radius: 6px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-bright);
}

.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);
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--text-bright);
}

.post-content img {
  border-radius: 6px;
  margin: 1.5rem 0;
  border: 1px solid rgba(90,97,120,0.1);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

.post-content th,
.post-content td {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(90,97,120,0.15);
  text-align: left;
}

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

/* Reading time */
.reading-time {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* Post Footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(90,97,120,0.15);
}

.post-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.post-tag {
  display: inline-flex;
  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);
  text-decoration: none;
  transition: background 0.25s var(--ease);
}

.post-tag:hover {
  background: rgba(200,80,60,0.2);
  color: var(--accent);
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.25s var(--ease);
}

.post-nav-link:hover {
  background: var(--card-hover);
}

.post-nav-next {
  text-align: right;
}

.post-nav-label {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.post-nav-title {
  font-size: 0.85rem;
  color: var(--text-bright);
  font-weight: 500;
  line-height: 1.4;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1023px) {
  .site-name { font-size: 2.2rem; }
  .sidebar { padding: 2rem 0 1.5rem; }
  .content { padding: 0 0 3rem; }
  .section { margin-bottom: 4rem; }
  .exp-card { grid-template-columns: 1fr; gap: 0.25rem; }
  .exp-date { padding-top: 0; }
  .post-card-inner { grid-template-columns: 1fr; gap: 0.25rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-title { font-size: 1.5rem; }

  /* Disable hover dimming on mobile */
  .card-list:hover .exp-card,
  .cert-list:hover .cert-card,
  .posts-list:hover .post-card {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
}
