/* ============================================================
   VoyageVixen Travel Blog — Main Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary:      #1a6ea8;
  --primary-dark: #144f7a;
  --accent:       #e8a045;
  --accent-dark:  #c8832a;
  --text:         #2c3e50;
  --text-light:   #5d6d7e;
  --text-muted:   #95a5a6;
  --bg:           #f8f9fa;
  --bg-white:     #ffffff;
  --border:       #e0e6ed;
  --tag-bg:       #eaf3fb;
  --tag-color:    #1a6ea8;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.08);
  --shadow:       0 4px 18px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 36px rgba(0,0,0,.14);
  --transition:   .22s ease;
  --font-sans:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif:   'Georgia', 'Times New Roman', serif;
  --max-width:    1180px;
  --sidebar-width: 310px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
}
.badge--accent { background: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.site-logo svg { flex-shrink: 0; }
.site-logo span { color: var(--accent); }

/* Main navigation */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--tag-bg);
  color: var(--primary);
}

/* Header search */
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--primary); }
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: .875rem;
  color: var(--text);
  width: 180px;
}
.header-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0d3f6e 0%, #1a6ea8 50%, #2196b8 100%);
  color: #fff;
  padding: 15px 0 15px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 28px;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(232,160,69,.4);
}
.hero-cta:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,160,69,.5);
}

/* ---------- Featured Post ---------- */
.featured-section { padding: 60px 0 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.view-all {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.view-all:hover { color: var(--primary-dark); text-decoration: underline; }

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.featured-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.featured-card__image {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.featured-card:hover .featured-card__image img { transform: scale(1.04); }
.featured-card__body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-category {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--tag-bg);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.post-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 14px;
  transition: color var(--transition);
}
.post-title:hover { color: var(--primary); }
.post-excerpt {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .82rem;
  color: var(--text-muted);
}
.post-meta__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-meta__info { display: flex; flex-direction: column; gap: 2px; }
.post-meta__author { font-weight: 600; color: var(--text); font-size: .85rem; }
.post-meta__date-read { font-size: .78rem; color: var(--text-muted); }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 20px;
  transition: gap var(--transition);
}
.read-more:hover { gap: 10px; color: var(--primary-dark); }

/* ---------- Main Content Layout ---------- */
.main-content {
  padding: 60px 0 80px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 40px;
  align-items: start;
}

/* ---------- Post Grid ---------- */
.posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-tab {
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover,
.filter-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Post Card */
.post-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.post-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.post-card__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 70px);
  pointer-events: none;
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card__image img { transform: scale(1.06); }
.post-card__category {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.post-card__body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__date {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.post-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 10px;
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
.post-card__title:hover { color: var(--primary); }
.post-card__excerpt {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}
.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
}
.post-card__meta-left { display: flex; align-items: center; gap: 8px; }
.post-card__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.post-card__stats { display: flex; align-items: center; gap: 12px; }
.post-card__stat { display: flex; align-items: center; gap: 4px; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-light);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 28px; }

.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Search Widget */
.widget-search {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.widget-search:focus-within { border-color: var(--primary); }
.widget-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: .875rem;
  color: var(--text);
  background: transparent;
}
.widget-search button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.widget-search button:hover { background: var(--primary-dark); }

/* Categories Widget */
.category-list { display: flex; flex-direction: column; gap: 4px; }
.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius);
  transition: background var(--transition);
  cursor: pointer;
  color: var(--text);
  font-size: .9rem;
}
.category-item:hover { background: var(--tag-bg); color: var(--primary); }
.category-item__name { display: flex; align-items: center; gap: 10px; }
.category-item__icon { font-size: 1rem; }
.category-count {
  font-size: .75rem;
  font-weight: 700;
  background: var(--tag-bg);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 50px;
}

/* Recent Posts Widget */
.recent-post {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post:first-child { padding-top: 0; }
.recent-post__image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.recent-post__info { display: flex; flex-direction: column; gap: 4px; }
.recent-post__title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.recent-post__title:hover { color: var(--primary); }
.recent-post__date { font-size: .75rem; color: var(--text-muted); }

/* Tags Widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: .78rem;
  font-weight: 600;
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.tag-cloud a:hover {
  background: var(--primary);
  color: #fff;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--primary) 0%, #2196b8 100%);
  color: #fff;
  border: none;
}
.newsletter-widget .widget-title { color: #fff; border-color: rgba(255,255,255,.5); }
.newsletter-widget p { font-size: .875rem; opacity: .9; margin-bottom: 16px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: .875rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.8); }
.newsletter-form button {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.newsletter-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Social Widget */
.social-links { display: flex; gap: 10px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tag-bg);
  color: var(--primary);
  font-size: .95rem;
  transition: all var(--transition);
  text-decoration: none;
  font-weight: 700;
}
.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a2434;
  color: #c8d6e5;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .site-logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .875rem; line-height: 1.75; opacity: .7; margin-bottom: 20px; }
.footer-col-title {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .875rem; color: #8fa4bb; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: .8rem;
  color: #627d97;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
}
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list a { color: var(--primary); }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list .sep { color: var(--border); }

/* ---------- Single Post ---------- */
.post-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.post-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  color: #fff;
}
.post-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}
.post-article__header { margin-bottom: 32px; }
.post-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.post-article h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 18px;
}
.post-article__standfirst {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 32px;
}
.post-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.post-author-card img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 700; font-size: .95rem; color: var(--text); }
.author-bio { font-size: .82rem; color: var(--text-muted); }

/* Post content typography */
.post-content { font-size: 1.02rem; line-height: 1.85; color: var(--text); }
.post-content h2 { font-size: 1.5rem; font-weight: 800; margin: 36px 0 16px; color: var(--text); }
.post-content h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 12px; color: var(--text); }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  background: var(--tag-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-light);
}
.post-content img {
  border-radius: var(--radius-lg);
  margin: 28px 0;
  box-shadow: var(--shadow);
}
.post-content .tip-box {
  background: #fffbeb;
  border: 1px solid #f6c84a;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 28px 0;
}
.post-content .tip-box strong { color: #b7791f; display: block; margin-bottom: 6px; }

/* Post tags & share */
.post-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.post-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-tags-label { font-size: .82rem; font-weight: 700; color: var(--text-muted); }
.share-buttons { display: flex; align-items: center; gap: 10px; }
.share-label { font-size: .82rem; font-weight: 700; color: var(--text-muted); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.share-btn--twitter { background: #1da1f2; color: #fff; }
.share-btn--fb { background: #1877f2; color: #fff; }
.share-btn--copy { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.share-btn:hover { opacity: .85; transform: translateY(-1px); }

/* Related Posts */
.related-posts { margin-top: 56px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }

/* Post not-found (404) state */
.post-not-found { text-align: center; padding: 96px 20px 88px; }
.post-not-found__code {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.post-not-found h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 12px;
}
.post-not-found p {
  color: var(--text-light);
  max-width: 440px;
  margin: 0 auto 24px;
}
.post-not-found__alt { margin-top: 28px; font-size: .9rem; color: var(--text-muted); }
.post-not-found__alt a { color: var(--primary); font-weight: 600; }

/* ---------- Back-to-top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 99;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 80px;
  right: 28px;
  background: #1a2434;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s ease;
  z-index: 200;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---------- No-results ---------- */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.no-results svg { margin: 0 auto 16px; opacity: .4; }
.no-results h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-light); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --sidebar-width: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__image { min-height: 240px; }
  .content-grid,
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .menu-toggle { display: flex; }
  .main-nav, .header-search { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
    z-index: 99;
  }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-hero { height: 320px; }
  .post-hero__content { padding: 24px; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 1.75rem; }
  .container { padding: 0 16px; }
}
