/*
Theme Name: UraKnow Blog
Theme URI: https://beyction.co.jp/UraKnow/
Author: Beyction合同会社
Author URI: https://beyction.co.jp
Description: UraKnow unified blog theme
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: proprietary
Text Domain: uraknow-blog
*/

/* ========================================
   Design Tokens
   ======================================== */

:root {
  --uk-primary: #575E74;
  --uk-primary-light: #D0D6F1;
  --uk-primary-dim: #BFC6E0;
  --uk-secondary: #685A64;
  --uk-secondary-light: #F0DDE8;
  --uk-tertiary: #695D48;
  --uk-bg: #FCF9F6;
  --uk-surface: #F6F3F0;
  --uk-surface-high: #EAE8E5;
  --uk-surface-white: #ffffff;
  --uk-text: #1B1C1A;
  --uk-text-sub: #45464D;
  --uk-text-muted: #76767D;
  --uk-outline: #C6C6CD;
  --uk-inverse: #31302F;
  --uk-inverse-text: #F3F0ED;
  --uk-wood: #47AD6B;
  --uk-fire: #E05959;
  --uk-earth: #C7A34D;
  --uk-metal: #858FA3;
  --uk-water: #4D85D1;
  --uk-success: #10B981;
  --shadow-sm: 0 2px 12px rgba(27,28,26,0.04);
  --shadow-md: 0 8px 30px rgba(27,28,26,0.06);
  --shadow-lg: 0 16px 48px rgba(27,28,26,0.08);
  --shadow-glow: 0 0 40px rgba(87,94,116,0.15);
  --glass: rgba(255,255,255,0.65);
  --glass-border: rgba(255,255,255,0.35);
}

/* ========================================
   Reset & Base
   ======================================== */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: var(--uk-bg);
  color: var(--uk-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--uk-primary); text-decoration: none; transition: all 0.25s ease; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ========================================
   Scroll Animations
   ======================================== */

[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Reading Progress Bar
   ======================================== */

.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--uk-primary), var(--uk-water));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ========================================
   Navigation -- matches main site exactly
   ======================================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(252,249,246,0.7);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid rgba(198,198,205,0.12);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav--scrolled {
  background: rgba(252,249,246,0.92);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav__logo {
  display: flex; align-items: center; flex-shrink: 0;
}
.nav__logo-img {
  height: 22px; width: auto; display: block;
}

.nav__search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  color: var(--uk-text-sub);
  border-radius: 10px;
  transition: all 0.2s;
  margin-left: auto;
  margin-right: 8px;
}
.nav__search-toggle:hover {
  background: var(--uk-surface);
  color: var(--uk-primary);
}

.nav__links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav__links a {
  font-size: 13px; font-weight: 600; color: var(--uk-text-sub);
  letter-spacing: 0.3px; transition: color 0.2s;
}
.nav__links a:hover { color: var(--uk-primary); opacity: 1; }
.nav__links a[aria-current="page"] {
  color: var(--uk-primary);
}
.nav__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--uk-primary), #6E758F);
  color: white !important; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(87,94,116,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); opacity: 1 !important; }

.nav__hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__hamburger span { display: block; width: 20px; height: 2px; background: var(--uk-text); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

@media (max-width: 768px) {
  .nav__hamburger { display: block; }
  .nav__links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(252,249,246,0.97); backdrop-filter: blur(40px);
    flex-direction: column; padding: 24px; gap: 16px;
    border-bottom: 1px solid rgba(198,198,205,0.12);
  }
  .nav__links.is-open { display: flex; }
  .nav__cta--desktop { display: none; }
}

/* ========================================
   Search Overlay
   ======================================== */

.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(27,28,26,0.5);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 20vh;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }

.search-overlay__inner {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px;
  margin: 0 24px;
  padding: 8px;
  transform: translateY(-20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-overlay.is-open .search-overlay__inner {
  transform: translateY(0) scale(1);
}

.search-overlay__close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--uk-text-muted);
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}
.search-overlay__close:hover { background: var(--uk-surface); color: var(--uk-text); }

.search-overlay__form {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
}
.search-overlay__icon { flex-shrink: 0; color: var(--uk-text-muted); }
.search-overlay__input {
  flex: 1; border: none; outline: none;
  font-size: 17px; font-weight: 500;
  background: transparent;
  color: var(--uk-text);
  font-family: inherit;
}
.search-overlay__input::placeholder { color: var(--uk-text-muted); }

.search-overlay__hint {
  text-align: center;
  font-size: 11px; color: var(--uk-text-muted);
  padding: 8px 16px 12px;
  border-top: 1px solid rgba(198,198,205,0.12);
}

/* ========================================
   Blog Hero / Page Header
   ======================================== */

.blog-header {
  padding: 120px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-header::before {
  content: ''; position: absolute;
  top: -120px; left: 50%; transform: translateX(-70%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(208,214,241,0.25) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}

.blog-header__label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--uk-primary); margin-bottom: 8px;
}
.blog-header__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900; line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.blog-header__desc {
  font-size: 15px; color: var(--uk-text-sub);
  max-width: 480px; margin: 0 auto; line-height: 1.8;
}

/* ========================================
   Category Filter
   ======================================== */

.category-filter {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px 48px;
}
.category-filter a {
  padding: 8px 20px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--uk-text-sub);
  transition: all 0.25s;
}
.category-filter a:hover,
.category-filter a.is-active {
  background: linear-gradient(135deg, var(--uk-primary), #6E758F);
  color: white;
  border-color: transparent;
  opacity: 1;
}

/* ========================================
   Post Grid
   ======================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 80px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(198,198,205,0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.post-card a, .post-card__link { color: inherit; }
.post-card a:hover, .post-card__link:hover { opacity: 1; }

.post-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--uk-surface);
  transition: transform 0.4s ease;
}
.post-card:hover .post-card__thumb {
  transform: scale(1.03);
}
.post-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--uk-surface) 0%, var(--uk-surface-high) 100%);
}

.post-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__cat {
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--uk-primary);
  margin-bottom: 8px;
}

.post-card__title {
  font-size: 16px; font-weight: 800;
  line-height: 1.5; letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__excerpt {
  font-size: 13px; color: var(--uk-text-sub);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}

.post-card__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--uk-text-muted); font-weight: 600;
}
.post-card__date,
.post-card__reading {
  display: flex; align-items: center; gap: 4px;
}

/* ========================================
   Breadcrumb
   ======================================== */

.breadcrumb {
  padding: 84px 0 0;
}
.breadcrumb__list {
  display: flex; align-items: center; gap: 0;
  list-style: none;
  font-size: 12px;
  color: var(--uk-text-muted);
  flex-wrap: wrap;
}
.breadcrumb__list li { display: flex; align-items: center; }
.breadcrumb__list li + li::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  margin: 0 6px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C6C6CD' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.breadcrumb__list a {
  color: var(--uk-text-muted);
  font-weight: 500;
}
.breadcrumb__list a:hover { color: var(--uk-primary); opacity: 1; }
.breadcrumb__list li:last-child {
  color: var(--uk-text-sub);
  font-weight: 600;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================
   Single Post
   ======================================== */

.single-header {
  padding: 32px 0;
  text-align: center;
}
.single-header__cat {
  font-size: 11px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--uk-primary); margin-bottom: 12px;
}
.single-header__cat a { color: inherit; }

.single-header__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900; line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 720px; margin: 0 auto 16px;
}
.single-header__meta {
  font-size: 13px; color: var(--uk-text-muted);
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
}
.single-header__meta span {
  display: flex; align-items: center; gap: 5px;
}

.single-thumbnail {
  max-width: 720px;
  margin: 0 auto 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.single-thumbnail img {
  width: 100%; height: auto; display: block;
}

/* ========================================
   Single Layout -- Sidebar TOC + Content
   ======================================== */

.single-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
}

.single-sidebar {
  position: relative;
}

.sidebar-toc {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.sidebar-toc__title {
  font-size: 10px; font-weight: 800;
  letter-spacing: 2px; color: var(--uk-text-muted);
  margin-bottom: 12px;
}
.sidebar-toc__list {
  list-style: none;
  padding: 0;
  border-left: 2px solid rgba(198,198,205,0.15);
}
.sidebar-toc__list li {
  margin-bottom: 2px;
}
.sidebar-toc__list li a {
  display: block;
  padding: 5px 0 5px 14px;
  font-size: 12px; font-weight: 500;
  color: var(--uk-text-muted);
  line-height: 1.5;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all 0.2s;
}
.sidebar-toc__list li a:hover {
  color: var(--uk-text-sub);
  opacity: 1;
}
.sidebar-toc__list li a.is-active {
  color: var(--uk-primary);
  border-left-color: var(--uk-primary);
  font-weight: 700;
  opacity: 1;
}
.sidebar-toc__list li.sidebar-toc__sub a {
  padding-left: 26px;
  font-size: 11px;
}

.single-main {
  min-width: 0;
  max-width: 720px;
}

@media (max-width: 900px) {
  .single-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .single-sidebar { display: none; }
  .single-main { max-width: 100%; }
}

/* ========================================
   Post Content
   ======================================== */

.post-content {
  padding: 0 0 40px;
}

.post-content h2 {
  font-size: 22px; font-weight: 800;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(87,94,116,0.08);
  letter-spacing: -0.02em;
  scroll-margin-top: 84px;
}
.post-content h3 {
  font-size: 18px; font-weight: 700;
  margin: 36px 0 12px;
  color: var(--uk-primary);
  scroll-margin-top: 84px;
}
.post-content h4 {
  font-size: 15px; font-weight: 700;
  margin: 24px 0 8px;
}

.post-content p {
  font-size: 15px; line-height: 2;
  color: var(--uk-text-sub);
  margin-bottom: 20px;
}

.post-content ul, .post-content ol {
  padding-left: 24px; margin-bottom: 20px;
}
.post-content li {
  font-size: 15px; line-height: 2;
  color: var(--uk-text-sub);
  margin-bottom: 4px;
}

.post-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-left: 4px solid var(--uk-primary);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: var(--uk-text-sub);
}
.post-content blockquote p { margin-bottom: 0; }

.post-content img {
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}

.post-content a {
  color: var(--uk-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tables */
.post-content table,
.post-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
}
.post-content th,
.post-content td {
  padding: 12px 16px;
  border: 1px solid var(--uk-outline);
  text-align: left;
}
.post-content th {
  background: var(--uk-surface);
  font-weight: 700;
}

/* Info box */
.post-content .info-box {
  padding: 24px;
  background: rgba(208,214,241,0.15);
  border-radius: 16px;
  margin: 24px 0;
  border: 1px solid rgba(208,214,241,0.3);
}
.post-content .info-box p { margin-bottom: 0; }

/* Inline code */
.post-content code:not([class*="language-"]) {
  background: rgba(87,94,116,0.08);
  color: var(--uk-primary);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
}

/* Code blocks */
.post-content pre {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-content pre code {
  font-size: 13px;
  line-height: 1.7;
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
}
.post-content pre[class*="language-"] {
  border-radius: 16px;
  border: 1px solid rgba(198,198,205,0.12);
}

/* HR */
.post-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--uk-outline), transparent);
  margin: 40px 0;
}

/* Mark */
.post-content mark {
  background: linear-gradient(transparent 60%, rgba(199,163,77,0.25) 60%);
  padding: 0 2px;
}

/* Footnotes */
.post-content .footnotes {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--uk-outline);
  font-size: 13px;
  color: var(--uk-text-muted);
}

/* Embedded */
.post-content iframe {
  border-radius: 16px;
  margin: 24px 0;
  max-width: 100%;
}

/* WP blocks */
.post-content .wp-block-image { margin: 24px 0; }
.post-content .wp-block-image figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--uk-text-muted);
  margin-top: 8px;
}

/* Callouts */
.post-content .callout,
.post-content .alert {
  padding: 20px 24px;
  border-radius: 16px;
  margin: 24px 0;
  font-size: 14px; line-height: 1.8;
}
.post-content .callout--info  { background: rgba(77,133,209,0.08); border: 1px solid rgba(77,133,209,0.2); }
.post-content .callout--warning { background: rgba(199,163,77,0.08); border: 1px solid rgba(199,163,77,0.2); }
.post-content .callout--tip   { background: rgba(71,173,107,0.08); border: 1px solid rgba(71,173,107,0.2); }

/* ========================================
   Table of Contents (inline, in content)
   ======================================== */

.toc {
  background: var(--uk-surface);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 0 0 36px;
  border: 1px solid rgba(198,198,205,0.12);
}
.toc__title {
  font-size: 11px; font-weight: 800;
  letter-spacing: 2px; color: var(--uk-text-muted);
  margin-bottom: 14px;
}
.toc__list {
  list-style: none;
  counter-reset: toc-counter;
  padding-left: 0;
}
.toc__list li {
  counter-increment: toc-counter;
  margin-bottom: 6px;
}
.toc__list li::before {
  content: counter(toc-counter) '.';
  color: var(--uk-primary);
  font-weight: 700; font-size: 12px;
  margin-right: 8px; min-width: 20px;
  display: inline-block;
}
.toc__list li a {
  font-size: 14px; font-weight: 600;
  color: var(--uk-text-sub);
  text-decoration: none;
}
.toc__list li a:hover { color: var(--uk-primary); opacity: 1; }
.toc__list li.toc__sub { padding-left: 28px; }

/* ========================================
   Tags
   ======================================== */

.post-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 0 32px;
}
.post-tag {
  padding: 5px 14px;
  background: var(--uk-surface);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--uk-text-muted);
  transition: all 0.2s;
}
.post-tag:hover {
  background: var(--uk-primary-light);
  color: var(--uk-primary);
  opacity: 1;
}

/* ========================================
   Share Buttons
   ======================================== */

.share-buttons {
  padding: 0 0 40px;
  text-align: center;
}
.share-buttons__label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 2px; color: var(--uk-text-muted);
  margin-bottom: 12px;
}
.share-buttons__list {
  display: flex; gap: 10px; justify-content: center;
}
.share-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(198,198,205,0.15);
  background: white;
  color: var(--uk-text-sub);
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}
.share-btn:hover { opacity: 1; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.share-btn--x:hover { background: #000; color: white; border-color: #000; }
.share-btn--fb:hover { background: #1877F2; color: white; border-color: #1877F2; }
.share-btn--line:hover { background: #06C755; color: white; border-color: #06C755; }
.share-btn--hatena:hover { background: #00A4DE; color: white; border-color: #00A4DE; }
.share-btn--copy:hover { background: var(--uk-primary); color: white; border-color: var(--uk-primary); }
.share-btn--copy.is-copied { background: var(--uk-success); color: white; border-color: var(--uk-success); }

/* ========================================
   Ad Units
   ======================================== */

.ad-unit { margin: 32px 0; text-align: center; }
.ad-unit--inline { margin: 32px auto; max-width: 720px; }
.ad-unit--bottom { padding-bottom: 32px; }

/* ========================================
   Post Navigation
   ======================================== */

.post-nav {
  padding: 0 0 60px;
  display: flex; gap: 20px;
}
.post-nav__item {
  flex: 1;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(198,198,205,0.08);
  transition: all 0.3s;
}
.post-nav__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-nav__label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.5px; color: var(--uk-text-muted);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 4px;
}
.post-nav__title {
  font-size: 14px; font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav__item--next { text-align: right; }
.post-nav__item--next .post-nav__label { justify-content: flex-end; }

@media (max-width: 600px) {
  .post-nav { flex-direction: column; }
}

/* ========================================
   Related Posts
   ======================================== */

.related-posts {
  padding: 60px 0 80px;
  background: var(--uk-surface);
}
.related-posts__label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--uk-primary); text-align: center;
  margin-bottom: 4px;
}
.related-posts__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

/* ========================================
   Pagination
   ======================================== */

.pagination {
  display: flex; justify-content: center;
  gap: 8px; padding: 0 0 80px;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-size: 14px; font-weight: 700;
  transition: all 0.25s;
}
.pagination a {
  background: white;
  color: var(--uk-text-sub);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(198,198,205,0.08);
}
.pagination a:hover {
  background: var(--uk-primary);
  color: white;
  opacity: 1;
}
.pagination .current {
  background: linear-gradient(135deg, var(--uk-primary), #6E758F);
  color: white;
  box-shadow: 0 4px 16px rgba(87,94,116,0.25);
}

/* ========================================
   Empty State
   ======================================== */

.empty-state {
  text-align: center;
  padding: 80px 0;
}
.empty-state__icon {
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-state__title {
  font-size: 17px; font-weight: 700;
  margin-bottom: 8px;
}
.empty-state__desc {
  font-size: 14px;
  color: var(--uk-text-muted);
}

/* ========================================
   CTA Banner -- matches main site CTA
   ======================================== */

.blog-cta {
  background: var(--uk-inverse);
  color: var(--uk-inverse-text);
  padding: 60px 32px;
  border-radius: 32px;
  margin: 0 24px 60px;
  position: relative;
  overflow: hidden;
}
.blog-cta::before {
  content: '';
  position: absolute; top: -50%; left: -20%; width: 140%; height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(87,94,116,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(104,90,100,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.blog-cta__inner {
  position: relative;
  text-align: center;
}
.blog-cta__label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 3px;
  color: var(--uk-primary-dim);
  margin-bottom: 8px;
}
.blog-cta__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.3;
}
.blog-cta__desc {
  font-size: 14px;
  color: rgba(243,240,237,0.6);
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto; margin-right: auto;
  line-height: 1.8;
}
.btn--white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: 999px;
  font-size: 15px; font-weight: 700;
  background: white; color: var(--uk-inverse);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  border: none; cursor: pointer;
}
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); opacity: 1 !important; }
.btn--glass {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  background: var(--glass);
  backdrop-filter: blur(20px);
  color: var(--uk-primary);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.btn--glass:hover { background: rgba(255,255,255,0.85); transform: translateY(-2px); opacity: 1 !important; }

/* ========================================
   Footer -- matches main site exactly
   ======================================== */

.footer { padding: 48px 0; border-top: 1px solid rgba(198,198,205,0.12); }
.footer__inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 32px;
}
.footer__brand { margin-bottom: 6px; }
.footer__logo-img { height: 20px; width: auto; display: block; }
.footer__company { font-size: 12px; color: var(--uk-text-muted); }
.footer__links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer__group h4 {
  font-size: 10px; font-weight: 800; letter-spacing: 2.5px;
  color: var(--uk-text-sub); margin-bottom: 12px; text-transform: uppercase;
}
.footer__group ul { list-style: none; }
.footer__group ul li { margin-bottom: 8px; }
.footer__group ul a { font-size: 13px; color: var(--uk-text-muted); }
.footer__group ul a:hover { color: var(--uk-primary); opacity: 1; }
.footer__bottom {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(198,198,205,0.12);
  font-size: 11px; color: var(--uk-text-muted); text-align: center;
}
@media (max-width: 768px) {
  .footer__inner { flex-direction: column; }
  .footer__links { gap: 24px; }
}

/* ========================================
   Back to Top
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(198,198,205,0.15);
  box-shadow: var(--shadow-md);
  color: var(--uk-text-sub);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s;
  z-index: 50;
}
.back-to-top.is-visible {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--uk-primary);
  color: white;
  border-color: var(--uk-primary);
  transform: translateY(-2px);
}

/* ========================================
   Sidebar Widgets (optional)
   ======================================== */

.widget {
  margin-bottom: 32px;
  padding: 24px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(198,198,205,0.08);
}
.widget__title {
  font-size: 12px; font-weight: 800;
  letter-spacing: 2px; color: var(--uk-text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.widget ul { list-style: none; }
.widget li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(198,198,205,0.1);
}
.widget li:last-child { border-bottom: none; }
.widget a { font-size: 14px; color: var(--uk-text-sub); font-weight: 500; }
.widget a:hover { color: var(--uk-primary); opacity: 1; }

/* ========================================
   Screen Reader
   ======================================== */

.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* ========================================
   Skip Navigation
   ======================================== */

.skip-nav {
  position: fixed;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: var(--uk-primary);
  color: white;
  padding: 12px 28px;
  border-radius: 0 0 12px 12px;
  font-size: 14px; font-weight: 700;
  transition: top 0.3s ease;
  text-decoration: none;
}
.skip-nav:focus {
  top: 0;
  outline: none;
  opacity: 1;
}

/* ========================================
   Focus Indicators (Accessibility)
   ======================================== */

*:focus-visible {
  outline: 2px solid var(--uk-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--uk-primary);
  outline-offset: 2px;
}

/* ========================================
   Author Card
   ======================================== */

.author-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--uk-surface);
  border-radius: 20px;
  margin-bottom: 40px;
  border: 1px solid rgba(198,198,205,0.12);
}
.author-card__avatar img {
  width: 56px; height: 56px;
  border-radius: 16px;
  object-fit: cover;
  background: white;
  box-shadow: var(--shadow-sm);
}
.author-card__label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 2px;
  color: var(--uk-text-muted);
  margin-bottom: 4px;
}
.author-card__name {
  font-size: 16px; font-weight: 800;
  margin-bottom: 6px;
}
.author-card__bio {
  font-size: 13px;
  color: var(--uk-text-sub);
  line-height: 1.8;
  margin: 0;
}

/* ========================================
   Feedback Section
   ======================================== */

.post-feedback {
  text-align: center;
  padding: 32px 24px;
  background: var(--uk-surface);
  border-radius: 20px;
  margin-bottom: 32px;
  border: 1px solid rgba(198,198,205,0.12);
}
.post-feedback__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.post-feedback__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.post-feedback__btn {
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(198,198,205,0.15);
  background: white;
  font-size: 14px; font-weight: 600;
  color: var(--uk-text-sub);
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}
.post-feedback__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--uk-primary);
  border-color: var(--uk-primary-light);
}
.post-feedback__thanks {
  font-size: 15px;
  font-weight: 700;
  color: var(--uk-success);
}

/* ========================================
   Image Lightbox
   ======================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(27,28,26,0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: zoom-out;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}
.lightbox.is-open .lightbox__img {
  transform: scale(1);
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 44px; height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.25);
}

/* ========================================
   Popular Posts Section
   ======================================== */

.popular-section {
  padding: 60px 0 0;
  border-top: 1px solid rgba(198,198,205,0.12);
  margin-top: 0;
}
.popular-section__label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--uk-primary); text-align: center;
  margin-bottom: 4px;
}
.popular-section__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}
.popular-section .posts-grid {
  padding-bottom: 60px;
}
