/* =============================================
 * Coding Lane - Premium Blog Theme
 * Design System: Satoshi + Zinc/Slate + Emerald Accent
 * DESIGN_VARIANCE: 8 | MOTION_INTENSITY: 6 | VISUAL_DENSITY: 4
 * ============================================= */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;

  --accent: var(--emerald-500);
  --accent-hover: var(--emerald-600);

  --bg-primary: #fafaf9;
  --bg-surface: #ffffff;
  --text-primary: var(--zinc-900);
  --text-secondary: var(--zinc-500);
  --text-tertiary: var(--zinc-400);
  --border-light: var(--zinc-200);
  --border-subtle: var(--zinc-100);

  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(9, 9, 11, 0.06);
  --shadow-lg: 0 20px 40px -15px rgba(9, 9, 11, 0.08);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-base: 0.3s var(--ease-out-expo);
  --transition-slow: 0.5s var(--ease-out-expo);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* --- Smooth Scroll & Base --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* --- Typography --- */
p {
  margin: 24px 0;
  max-width: 65ch;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--zinc-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; color: var(--zinc-600); font-weight: 600; }
h6 { font-size: 0.875rem; color: var(--zinc-600); font-weight: 600; }

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

a:hover, a:focus {
  color: var(--accent);
}

a img:hover, a img:focus {
  cursor: zoom-in;
}

article {
  overflow-x: hidden;
}

blockquote {
  color: var(--zinc-600);
  font-style: italic;
  font-size: 0.95em;
  margin: 24px 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

blockquote p {
  margin: 0;
}

small.img-hint {
  display: block;
  margin-top: -16px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

br + small.img-hint {
  margin-top: -36px;
}

img.shadow {
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
}

select {
  -webkit-appearance: none;
  margin-top: 15px;
  color: var(--accent);
  border: 1px solid var(--border-light);
  padding: 0.3em 0.6em;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
}

select.sel-lang {
  min-height: 28px;
  font-size: 14px;
}

.table th, .table td {
  border: 1px solid var(--border-light) !important;
}

hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 16px 0;
}

hr.small {
  max-width: 60px;
  margin: 20px auto;
  border-width: 2px;
  border-color: var(--accent);
}

pre, .table-responsive {
  -webkit-overflow-scrolling: touch;
}

pre {
  background: var(--zinc-900);
  border-radius: var(--radius-md);
  border: 1px solid var(--zinc-800);
}

pre code {
  display: block;
  width: auto;
  white-space: pre;
  word-wrap: normal;
  font-family: var(--font-mono);
  font-size: 14px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  color: white;
  text-shadow: none;
  background: var(--accent);
}

::-moz-selection {
  color: white;
  text-shadow: none;
  background: var(--accent);
}

img::selection { color: white; background: transparent; }
img::-moz-selection { color: white; background: transparent; }


/* ===========================================
 * NAVIGATION
 * =========================================== */

.navbar-custom {
  background: none;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  font-family: var(--font-sans);
  line-height: 1.7;
}

.navbar-custom .navbar-brand {
  font-weight: 900;
  color: white;
  height: 56px;
  line-height: 25px;
  letter-spacing: -0.03em;
  font-size: 18px;
  transition: all var(--transition-base);
}

.navbar-custom .navbar-brand:hover {
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.navbar-custom .nav li a {
  text-transform: uppercase;
  font-size: 11px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: all var(--transition-base);
  position: relative;
}

.navbar-custom .nav li a::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.navbar-custom .nav li a:hover::after {
  width: 20px;
}

.navbar-custom .nav li a:active {
  background: rgba(0, 0, 0, 0.08);
}

@media only screen and (min-width: 768px) {
  .navbar-custom {
    background: transparent;
    border-bottom: 1px solid transparent;
  }
  .navbar-custom .navbar-brand {
    color: white;
    padding: 20px;
    line-height: 20px;
  }
  .navbar-custom .navbar-brand:hover,
  .navbar-custom .navbar-brand:focus {
    color: rgba(255, 255, 255, 0.85);
  }
  .navbar-custom .nav li a {
    color: white;
    padding: 20px;
  }
  .navbar-custom .nav li a:hover,
  .navbar-custom .nav li a:focus {
    color: rgba(255, 255, 255, 0.85);
  }
  .navbar-custom .nav li a:active {
    background: none;
  }
}

/* Sticky Navbar on Scroll */
@media only screen and (min-width: 1170px) {
  .navbar-custom {
    transition: background-color 0.4s var(--ease-out-expo),
                backdrop-filter 0.4s var(--ease-out-expo);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }
  .navbar-custom.is-fixed {
    position: fixed;
    top: -61px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(228, 228, 231, 0.5);
    box-shadow: 0 1px 3px rgba(9, 9, 11, 0.04);
    transition: transform 0.4s var(--ease-out-expo);
  }
  .navbar-custom.is-fixed .navbar-brand {
    color: var(--zinc-900);
  }
  .navbar-custom.is-fixed .navbar-brand:hover,
  .navbar-custom.is-fixed .navbar-brand:focus {
    color: var(--accent);
  }
  .navbar-custom.is-fixed .nav li a {
    color: var(--zinc-600);
  }
  .navbar-custom.is-fixed .nav li a:hover,
  .navbar-custom.is-fixed .nav li a:focus {
    color: var(--accent);
  }
  .navbar-custom.is-visible {
    transform: translate3d(0, 100%, 0);
  }
}

/* Mobile Nav */
@media only screen and (max-width: 767px) {
  .navbar-default .navbar-collapse {
    position: absolute;
    right: 8px;
    top: 52px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(228, 228, 231, 0.4);
    border-radius: var(--radius-lg);
    width: 200px;
    padding: 8px 0;
  }
  #xieblog_navbar {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
    transform-origin: top right;
    transition: all 250ms var(--ease-out-expo);
  }
  #xieblog_navbar a {
    font-size: 13px;
    line-height: 28px;
    color: var(--zinc-700) !important;
  }
  #xieblog_navbar .navbar-collapse {
    height: 0px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 350ms var(--ease-out-expo);
  }
  #xieblog_navbar li {
    opacity: 0;
    transform: translateY(-4px);
    transition: all 150ms var(--ease-out-expo);
  }
  #xieblog_navbar.in {
    transform: scale(1) translateY(0);
    opacity: 1;
    transition: all 300ms var(--ease-spring);
  }
  #xieblog_navbar.in .navbar-collapse {
    transform: scaleY(1);
    transition: transform 400ms var(--ease-out-expo);
  }
  #xieblog_navbar.in li {
    opacity: 1;
    transform: translateY(0);
    transition: all 400ms var(--ease-out-expo) 120ms;
  }
}

/* Navbar Toggle Button */
.navbar-default .navbar-toggle {
  border-color: transparent;
  padding: 18px 15px;
  margin-top: 3px;
  margin-right: 4px;
  margin-bottom: 2px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base);
}

.navbar-default .navbar-toggle:focus,
.navbar-default .navbar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-default .navbar-toggle:active {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(0.96);
}

.navbar-default .navbar-toggle .icon-bar {
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background-color: white;
  transition: all var(--transition-base);
}

.navbar-default .navbar-toggle .icon-bar + .icon-bar {
  margin-top: 4px;
}


/* ===========================================
 * HERO / INTRO HEADER
 * =========================================== */

.intro-header {
  background: no-repeat center center;
  background-color: var(--zinc-800);
  background-attachment: scroll;
  background-size: cover;
  margin-bottom: 0px;
  position: relative;
  overflow: hidden;
}

/* Gradient overlay for better text legibility */
.intro-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0.3) 0%,
    rgba(9, 9, 11, 0.15) 40%,
    rgba(9, 9, 11, 0.5) 100%
  );
  z-index: 1;
}

.intro-header .header-mask {
  z-index: 1;
}

.intro-header .container {
  position: relative;
  z-index: 2;
}

@media only screen and (min-width: 768px) {
  .intro-header {
    margin-bottom: 0;
  }
}

.intro-header .site-heading,
.intro-header .post-heading,
.intro-header .page-heading {
  padding: 100px 0 60px;
  color: white;
}

/* Override global heading color inside intro-header */
.intro-header h1,
.intro-header h2,
.intro-header h3,
.intro-header span {
  color: inherit;
}

@media only screen and (min-width: 768px) {
  .intro-header .site-heading,
  .intro-header .post-heading,
  .intro-header .page-heading {
    padding: 160px 0 100px;
  }
}

/* Site Heading - Left aligned for DESIGN_VARIANCE=8 */
.intro-header .site-heading {
  padding: 110px 0 80px;
  text-align: left;
}

@media only screen and (min-width: 768px) {
  .intro-header .site-heading {
    padding: 180px 0 120px;
  }
}

.intro-header .site-heading h1 {
  margin-top: 0;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.intro-header .page-heading {
  text-align: left;
}

.intro-header .page-heading h1 {
  margin-top: 0;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.intro-header .site-heading .subheading,
.intro-header .page-heading .subheading {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  display: block;
  font-weight: 400;
  margin: 16px 0 0;
  opacity: 0.8;
  max-width: 480px;
  letter-spacing: 0;
}

@media only screen and (min-width: 768px) {
  .intro-header .site-heading h1,
  .intro-header .page-heading h1 {
    font-size: 64px;
  }
  .intro-header .site-heading .subheading,
  .intro-header .page-heading .subheading {
    font-size: 18px;
  }
}

/* Post Heading */
.intro-header .post-heading h1 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.intro-header .post-heading .subheading,
.intro-header .post-heading .meta {
  line-height: 1.4;
  display: block;
}

.intro-header .post-heading .subheading {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  margin: -8px 0 24px;
  opacity: 0.85;
}

.intro-header .post-heading .meta {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  opacity: 0.6;
  letter-spacing: 0.5px;
}

.intro-header .post-heading .meta a {
  color: white;
}

@media only screen and (min-width: 768px) {
  .intro-header .post-heading h1 {
    font-size: 48px;
  }
  .intro-header .post-heading .subheading {
    font-size: 22px;
  }
  .intro-header .post-heading .meta {
    font-size: 14px;
  }
}


/* ===========================================
 * POST LIST
 * =========================================== */

.postlist-container {
  margin-bottom: 15px;
}

.post-preview {
  position: relative;
}

.post-preview > a {
  color: var(--text-primary);
  display: block;
  padding: 4px 0;
  transition: all var(--transition-base);
}

.post-preview > a:hover,
.post-preview > a:focus {
  text-decoration: none;
}

.post-preview > a:hover .post-title {
  color: var(--accent);
}

.post-preview > a > .post-title {
  font-size: 20px;
  line-height: 1.35;
  margin-top: 28px;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color var(--transition-base);
}

.post-preview > a > .post-subtitle {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
  font-weight: 400;
  color: var(--zinc-500);
}

.post-preview > .post-meta {
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  font-size: 12px;
  font-style: normal;
  margin-top: 0;
  letter-spacing: 0.3px;
}

.post-preview > .post-meta > a {
  text-decoration: none;
  color: var(--text-tertiary);
}

.post-preview > .post-meta > a:hover,
.post-preview > .post-meta > a:focus {
  color: var(--accent);
}

@media only screen and (min-width: 768px) {
  .post-preview > a > .post-title {
    font-size: 24px;
    margin-bottom: 8px;
  }
  .post-preview > a > .post-subtitle {
    font-size: 15px;
  }
  .post-preview .post-meta {
    font-size: 13px;
  }
}

.post-content-preview {
  font-size: 13px;
  font-style: normal;
  color: var(--zinc-400);
  line-height: 1.6;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-content-preview:hover {
  color: var(--zinc-500);
}

@media only screen and (min-width: 768px) {
  .post-content-preview {
    font-size: 14px;
  }
}

/* Post list separator */
.post-preview + hr {
  border-top: 1px solid var(--border-subtle);
  margin: 8px 0;
}


/* ===========================================
 * POST CONTENT
 * =========================================== */

.post-container a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(16, 185, 129, 0.3);
  text-underline-offset: 3px;
  transition: all var(--transition-base);
}

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

.post-container h1,
.post-container h2,
.post-container h3,
.post-container h4,
.post-container h5,
.post-container h6 {
  margin: 40px 0 12px;
}

.post-container h5 {
  font-size: 18px;
  font-weight: 600;
  color: var(--zinc-600);
}

.post-container h5 + p { margin-top: 5px; }

.post-container h6 {
  font-size: 15px;
  font-weight: 600;
  color: var(--zinc-600);
}

.post-container h6 + p { margin-top: 5px; }

.post-container ul,
.post-container ol {
  margin-bottom: 32px;
}

@media screen and (max-width: 768px) {
  .post-container ul,
  .post-container ol {
    padding-left: 28px;
  }
}

@media screen and (max-width: 500px) {
  .post-container ul,
  .post-container ol {
    padding-left: 20px;
  }
}

.post-container ol ol,
.post-container ol ul,
.post-container ul ol,
.post-container ul ul {
  margin-bottom: 5px;
}

.post-container li p {
  margin: 0;
  margin-bottom: 5px;
}

.post-container li h1,
.post-container li h2,
.post-container li h3,
.post-container li h4,
.post-container li h5,
.post-container li h6 {
  line-height: 2;
  margin-top: 20px;
}

.post-container img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  border-radius: var(--radius-md);
}

/* Pager (Prev/Next) */
.post-container .pager li {
  width: 48%;
}

.post-container .pager li.next {
  float: right;
}

.post-container .pager li.previous {
  float: left;
}

.post-container .pager li > a {
  width: 100%;
}

.post-container .pager li > a > span {
  color: var(--zinc-500);
  font-weight: normal;
  letter-spacing: 0.3px;
}


/* ===========================================
 * PAGER
 * =========================================== */

.pager {
  margin: 24px 0 0 !important;
  padding: 0px !important;
}

.pager li > a,
.pager li > span {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 12px 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

@media only screen and (min-width: 768px) {
  .pager li > a,
  .pager li > span {
    font-size: 13px;
    padding: 14px 28px;
  }
}

.pager li > a {
  color: var(--zinc-600);
}

.pager li > a:hover,
.pager li > a:focus {
  color: white;
  background-color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.pager li > a:hover > span,
.pager li > a:focus > span {
  color: white;
}

.pager .disabled > a,
.pager .disabled > a:hover,
.pager .disabled > a:focus,
.pager .disabled > span {
  color: var(--zinc-400);
  background-color: var(--zinc-100);
  border-color: var(--zinc-100);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* ===========================================
 * SIDEBAR
 * =========================================== */

@media (min-width: 1200px) {
  .post-container,
  .sidebar-container {
    padding-right: 5%;
  }
}

@media (min-width: 768px) {
  .post-container {
    padding-right: 5%;
  }
}

.sidebar-container {
  color: var(--zinc-500);
  font-size: 14px;
}

.sidebar-container h5 {
  color: var(--zinc-600);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.sidebar-container h5 a {
  color: var(--zinc-600) !important;
  text-decoration: none;
}

.sidebar-container a {
  color: var(--zinc-500) !important;
  transition: color var(--transition-base);
}

.sidebar-container a:hover,
.sidebar-container a:active {
  color: var(--accent) !important;
}

.sidebar-container .tags a {
  border-color: var(--zinc-300);
  color: var(--zinc-600) !important;
  background: var(--zinc-100);
}

.sidebar-container .tags a:hover,
.sidebar-container .tags a:active {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent) !important;
}

.sidebar-container .short-about img {
  width: 80%;
  display: block;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.sidebar-container .short-about p {
  margin-top: 0px;
  margin-bottom: 16px;
  color: var(--zinc-500);
  font-size: 13px;
  line-height: 1.6;
}

.sidebar-container .short-about .list-inline > li {
  padding-left: 0px;
}


/* ===========================================
 * SIDE CATALOG (Table of Contents)
 * =========================================== */

.catalog-container {
  padding: 0px;
}

.side-catalog {
  display: block;
  overflow: auto;
  height: 100%;
  padding-bottom: 40px;
  width: 195px;
}

.side-catalog.fixed {
  position: fixed;
  top: -21px;
}

.side-catalog.fold .catalog-toggle::before {
  content: "+";
}

.side-catalog.fold .catalog-body {
  display: none;
}

.side-catalog .catalog-toggle::before {
  content: "\2212";
  position: relative;
  margin-right: 5px;
  bottom: 1px;
}

.side-catalog .catalog-body {
  position: relative;
  list-style: none;
  height: auto;
  overflow: hidden;
  padding-left: 0px;
  padding-right: 5px;
  text-indent: 0;
}

.side-catalog .catalog-body li {
  position: relative;
  list-style: none;
}

.side-catalog .catalog-body li a {
  padding-left: 12px;
  max-width: 180px;
  display: inline-block;
  vertical-align: middle;
  height: 32px;
  line-height: 32px;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--zinc-500);
  font-size: 13px;
  transition: all var(--transition-base);
  border-left: 2px solid transparent;
}

.side-catalog .catalog-body li a:hover {
  color: var(--accent);
}

.side-catalog .catalog-body .h1_nav,
.side-catalog .catalog-body .h2_nav,
.side-catalog .catalog-body .h3_nav {
  margin-left: 0;
  font-size: 13px;
  font-weight: 600;
}

.side-catalog .catalog-body .h4_nav,
.side-catalog .catalog-body .h5_nav,
.side-catalog .catalog-body .h6_nav {
  margin-left: 10px;
  font-size: 12px;
}

.side-catalog .catalog-body .h4_nav a,
.side-catalog .catalog-body .h5_nav a,
.side-catalog .catalog-body .h6_nav a {
  max-width: 170px;
}

.side-catalog .catalog-body .active a {
  color: var(--accent) !important;
  border-left-color: var(--accent);
  background: transparent;
  font-weight: 600;
}

.side-catalog .catalog-body .active {
  border-radius: 0;
  background-color: transparent;
}

@media (max-width: 1200px) {
  .side-catalog {
    display: none;
  }
}


/* ===========================================
 * TAGS
 * =========================================== */

.tags {
  margin-bottom: -5px;
}

.tags a,
.tags .tag {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 2px 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 24px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  margin: 0 2px;
  margin-bottom: 6px;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.08);
}

.tags a:hover,
.tags .tag:hover,
.tags a:active,
.tags .tag:active {
  color: white;
  border-color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transform: translateY(-1px);
}

@media only screen and (min-width: 768px) {
  .tags a,
  .tags .tag {
    margin-right: 5px;
  }
}

/* Tag page heading */
#tag-heading {
  padding: 70px 0 60px;
}

@media only screen and (min-width: 768px) {
  #tag-heading {
    padding: 55px 0;
  }
}

/* Tag Cloud */
#tag_cloud {
  margin: 24px 0 20px 0;
}

#tag_cloud a,
#tag_cloud .tag {
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  line-height: 30px;
  margin: 0 3px;
  margin-bottom: 10px;
  background: var(--bg-surface);
  color: var(--zinc-600);
  padding: 2px 16px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

#tag_cloud a:hover,
#tag_cloud .tag:hover,
#tag_cloud a:active,
#tag_cloud .tag:active {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

@media only screen and (min-width: 768px) {
  #tag_cloud {
    margin-bottom: 28px;
  }
}

.tag-comments {
  font-size: 12px;
  color: var(--zinc-400);
}

@media only screen and (min-width: 768px) {
  .tag-comments {
    font-size: 14px;
  }
}

/* Tag List */
.t:first-child {
  margin-top: 0px;
}

.listing-seperator {
  color: var(--accent);
  font-size: 18px !important;
  font-weight: 600;
  margin-top: 40px;
}

.listing-seperator::before {
  margin-right: 8px;
}

@media only screen and (min-width: 768px) {
  .listing-seperator {
    font-size: 20px !important;
    line-height: 2 !important;
  }
}

.one-tag-list .tag-text {
  font-weight: 500;
  font-family: var(--font-sans);
}

.one-tag-list .post-preview {
  position: relative;
  padding: 4px 0;
  transition: all var(--transition-base);
}

.one-tag-list .post-preview:hover {
  transform: translateX(4px);
}

.one-tag-list .post-preview > a .post-title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
}

.one-tag-list .post-preview > a .post-subtitle {
  font-size: 12px;
  color: var(--zinc-400);
}

.one-tag-list .post-preview > .post-meta {
  position: absolute;
  right: 5px;
  bottom: 4px;
  margin: 0px;
  font-size: 12px;
  line-height: 12px;
  font-family: var(--font-mono);
  color: var(--zinc-400);
}

@media only screen and (min-width: 768px) {
  .one-tag-list .post-preview {
    margin-left: 20px;
  }
  .one-tag-list .post-preview > a > .post-title {
    font-size: 18px;
    line-height: 1.3;
  }
  .one-tag-list .post-preview > a > .post-subtitle {
    font-size: 14px;
  }
  .one-tag-list .post-preview .post-meta {
    font-size: 14px;
  }
}


/* ===========================================
 * BUTTONS
 * =========================================== */

.btn {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  transition: all var(--transition-base);
}

.btn-lg {
  font-size: 15px;
  padding: 18px 36px;
}

.btn-default:hover,
.btn-default:focus {
  background-color: var(--accent);
  border: 1px solid var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-default:active {
  transform: translateY(0) scale(0.98);
}


/* ===========================================
 * FOOTER
 * =========================================== */

footer {
  font-size: 16px;
  padding: 48px 0 56px;
  background: var(--zinc-950);
  color: var(--zinc-400);
  margin-top: 80px;
}

footer .list-inline {
  margin: 0;
  padding: 0;
}

footer .copyright {
  font-size: 13px;
  text-align: center;
  margin-bottom: 0;
  color: var(--zinc-500);
}

footer .copyright a {
  color: var(--zinc-400);
  transition: color var(--transition-base);
}

footer .copyright a:hover,
footer .copyright a:focus {
  color: var(--accent);
}

/* SNS links in footer */
footer .fa-stack {
  transition: transform var(--transition-base);
}

footer .fa-stack:hover {
  transform: translateY(-3px);
}

footer .fa-stack .fa-circle {
  color: var(--zinc-700);
  transition: color var(--transition-base);
}

footer .fa-stack:hover .fa-circle {
  color: var(--accent);
}


/* ===========================================
 * SECTION HEADING & CAPTION
 * =========================================== */

.section-heading {
  font-size: 32px;
  margin-top: 60px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.caption {
  text-align: center;
  font-size: 13px;
  padding: 10px;
  font-style: italic;
  margin: 0;
  display: block;
  color: var(--zinc-400);
}


/* ===========================================
 * FORMS
 * =========================================== */

.floating-label-form-group {
  font-size: 14px;
  position: relative;
  margin-bottom: 0;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--border-light);
}

.floating-label-form-group input,
.floating-label-form-group textarea {
  z-index: 1;
  position: relative;
  padding-right: 0;
  padding-left: 0;
  border: none;
  border-radius: 0;
  font-size: 1.5em;
  background: none;
  box-shadow: none !important;
  resize: none;
  font-family: var(--font-sans);
}

.floating-label-form-group label {
  display: block;
  z-index: 0;
  position: relative;
  top: 2em;
  margin: 0;
  font-size: 0.85em;
  line-height: 1.764705882em;
  vertical-align: baseline;
  opacity: 0;
  transition: top 0.3s ease, opacity 0.3s ease;
}

.floating-label-form-group:not(:first-child) {
  padding-left: 14px;
  border-left: 1px solid var(--border-light);
}

.floating-label-form-group-with-value label {
  top: 0;
  opacity: 1;
}

.floating-label-form-group-with-focus label {
  color: var(--accent);
}

form .row:first-child .floating-label-form-group {
  border-top: 1px solid var(--border-light);
}


/* ===========================================
 * COMMENTS
 * =========================================== */

.comment {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

/* Gitalk Overrides */
.gt-container .gt-header-textarea {
  border-radius: var(--radius-md) !important;
  border-color: var(--border-light) !important;
}

.gt-container .gt-btn {
  border-radius: var(--radius-md) !important;
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}


/* ===========================================
 * 404 / FULLSCREEN PAGES
 * =========================================== */

.page-fullscreen .intro-header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.page-fullscreen #tag-heading {
  position: fixed;
  left: 0;
  top: 0;
  padding-bottom: 150px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.page-fullscreen footer {
  position: absolute;
  width: 100%;
  bottom: 0;
  padding-bottom: 20px;
  opacity: 0.6;
  color: #fff;
  background: transparent;
  margin-top: 0;
}

.page-fullscreen footer .copyright {
  color: #fff;
}

.page-fullscreen footer .copyright a {
  color: #fff;
}

.page-fullscreen footer .copyright a:hover {
  color: var(--accent);
}


/* ===========================================
 * SEARCH OVERLAY
 * =========================================== */

.search-page {
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.search-page #search-input {
  font-family: var(--font-mono);
  font-size: 18px;
  color: white;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--zinc-700);
  padding: 12px 0;
  transition: border-color var(--transition-base);
}

.search-page #search-input:focus {
  border-bottom-color: var(--accent);
  outline: none;
}

.search-page .search-icon-close {
  color: var(--zinc-400);
  transition: color var(--transition-base);
}

.search-page .search-icon-close:hover {
  color: white;
}


/* ===========================================
 * ANIMATIONS & MICRO-INTERACTIONS
 * =========================================== */

/* Fade-in animation for page elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animate post items on load */
.post-preview {
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.post-preview:nth-child(1) { animation-delay: 0.05s; }
.post-preview:nth-child(2) { animation-delay: 0.1s; }
.post-preview:nth-child(3) { animation-delay: 0.15s; }
.post-preview:nth-child(4) { animation-delay: 0.2s; }
.post-preview:nth-child(5) { animation-delay: 0.25s; }
.post-preview:nth-child(6) { animation-delay: 0.3s; }
.post-preview:nth-child(7) { animation-delay: 0.35s; }
.post-preview:nth-child(8) { animation-delay: 0.4s; }

/* Header text animations */
.intro-header .site-heading,
.intro-header .page-heading,
.intro-header .post-heading {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

/* Subtle hover effect on post items */
.post-preview > a {
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin: -8px -12px;
}

.post-preview > a:hover {
  background: rgba(16, 185, 129, 0.04);
}

/* Smooth image hover */
.post-container img {
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.post-container img:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}


/* ===========================================
 * RESPONSIVE OVERRIDES
 * =========================================== */

@media only screen and (max-width: 767px) {
  body {
    font-size: 15px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.125rem; }

  .intro-header .site-heading,
  .intro-header .page-heading {
    text-align: left;
  }

  .intro-header .site-heading h1,
  .intro-header .page-heading h1 {
    font-size: 32px;
  }

  .intro-header .post-heading h1 {
    font-size: 24px;
  }

  footer {
    margin-top: 48px;
    padding: 36px 0 48px;
  }
}

/* Ensure content doesn't overflow on mobile */
@media only screen and (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  pre {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
  }
}
