/* ==========================================================================
   Blogger Theme - Modernized Classic Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Colors */
  --bg-page: #f1f3f5;
  --bg-container: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-accent: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --brand-primary: #0f172a;
  --brand-accent: #d97706; /* Warm amber */
  --brand-accent-hover: #b45309;
  --brand-highlight: #f59e0b;
  --brand-border: #e2e8f0;
  --brand-border-focus: #3b82f6;

  --like-color: #e11d48; /* Crimson */
  --like-bg: #ffe4e6;

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Document */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.6;
  margin: 0;
  padding: 24px 16px 60px;
  min-height: 100vh;
}

/* ----------------------------------------------------
 * Main Grid Container
 * ---------------------------------------------------- */
#container {
  z-index: 10;
  margin: 0 auto;
  max-width: 1140px;
  width: 100%;
  background-color: var(--bg-container);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);

  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  grid-template-areas:
    "a a"
    "b c"
    "d e";
  transition: all var(--transition-normal);
}

#a, #b, #c, #d, #e {
  position: relative;
  z-index: 20;
}

/* ----------------------------------------------------
 * Top Navigation Bar (#a)
 * ---------------------------------------------------- */
#a {
  grid-area: a;
  background-color: #090d16;
  color: var(--text-inverse);
  padding: 0 24px;
  border-bottom: 2px solid #1e293b;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  color: #94a3b8;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.16);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.btn-primary-small {
  background-color: var(--brand-accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
}

.btn-primary-small:hover {
  background-color: var(--brand-accent-hover);
  transform: translateY(-1px);
}

/* ----------------------------------------------------
 * Header Titles (#b) & Header Widget (#c)
 * ---------------------------------------------------- */
#b {
  grid-area: b;
  padding: 36px 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#b h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0 0 6px 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

#b h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#c {
  grid-area: c;
  padding: 36px 40px 24px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.header-stats {
  display: flex;
  gap: 8px;
}

.stat-badge {
  background-color: var(--bg-accent);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-border);
}

.btn-header-publish {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-header-publish:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------
 * Main Content Column (#d)
 * ---------------------------------------------------- */
#d {
  grid-area: d;
  padding: 10px 40px 50px 40px;
  min-width: 0; /* Prevents grid blowout */
}

/* Post Cards */
.posts-stream {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.blog-post-card {
  background-color: #ffffff;
  border-bottom: 1px solid var(--brand-border);
  padding-bottom: 40px;
  transition: transform var(--transition-fast);
}

.post-featured-figure {
  margin: 0 0 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: #0f172a;
}

.post-featured-figure a {
  display: block;
  overflow: hidden;
}

.post-featured-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.post-featured-figure:hover .post-featured-img {
  transform: scale(1.02);
}

.post-featured-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 8px 12px;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--brand-border);
}

.post-category-tag {
  margin-bottom: 10px;
}

.post-category-tag a {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-accent);
  background-color: #fef3c7;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.post-category-tag a:hover {
  background-color: #fde68a;
}

.post-title {
  margin: 0 0 10px 0;
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.post-sub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.post-sub-meta strong {
  color: var(--text-secondary);
}

.meta-sep {
  color: #cbd5e1;
}

.meta-comments-link {
  color: var(--text-muted);
  text-decoration: none;
}

.meta-comments-link:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

.post-excerpt p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 14px;
}

.post-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--brand-border);
  transition: all var(--transition-fast);
}

.post-tag:hover {
  color: var(--text-primary);
  background-color: #e2e8f0;
}

.post-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--brand-border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-like:hover {
  background-color: var(--like-bg);
  border-color: #fecdd3;
  color: var(--like-color);
}

.btn-like.liked {
  background-color: var(--like-bg);
  border-color: #fecdd3;
  color: var(--like-color);
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-primary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-read-more:hover {
  color: var(--brand-accent);
  transform: translateX(3px);
}

/* ----------------------------------------------------
 * Single Post Detail View
 * ---------------------------------------------------- */
.detail-back-nav {
  margin-bottom: 24px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.btn-back:hover {
  color: var(--brand-primary);
}

.single-post-figure {
  margin: 0 0 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.single-post-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.single-post-figure figcaption {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 10px 16px;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--brand-border);
}

.single-post-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 12px 0 16px 0;
}

.single-post-body {
  margin-top: 28px;
  font-size: 1.12rem;
  line-height: 1.8;
  color: #334155;
}

.single-post-body p {
  margin-bottom: 22px;
}

.single-post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 24px;
  padding-top: 18px;
  border-top: 1px solid var(--brand-border);
}

.tags-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.single-post-actions-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 36px;
}

.btn-like-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--brand-border);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-like-large:hover,
.btn-like-large.liked {
  background-color: var(--like-bg);
  border-color: #fecdd3;
  color: var(--like-color);
}

.like-badge-num {
  background-color: rgba(0, 0, 0, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid var(--brand-border);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-share:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

/* Author Box */
.post-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-border);
  margin-bottom: 48px;
}

.author-avatar-badge {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: var(--brand-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-bio h4 {
  margin: 0 0 6px 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.author-bio p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ----------------------------------------------------
 * Comments Section
 * ---------------------------------------------------- */
.comments-section {
  padding-top: 36px;
  border-top: 2px solid var(--brand-border);
}

.comments-header h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.comments-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 28px 0;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.no-comments-yet {
  padding: 24px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.comment-card {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-border);
  transition: transform var(--transition-fast);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: #3b82f6;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-content-wrap {
  flex: 1;
  min-width: 0;
}

.comment-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-author-name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.comment-timestamp {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Comment Submission Form */
.comment-form-container {
  background-color: #ffffff;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-sm);
}

.comment-form-container h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-field label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.required {
  color: #ef4444;
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.submit-success-indicator {
  color: #16a34a;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ----------------------------------------------------
 * Sidebar (#e)
 * ---------------------------------------------------- */
#e {
  grid-area: e;
  padding: 10px 40px 50px 10px;
}

.search-box-wrapper {
  margin-bottom: 30px;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

#search-input-field {
  width: 100%;
  height: 48px;
  padding: 10px 40px 10px 42px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

#search-input-field:focus {
  background-color: #ffffff;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

.search-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 4px 8px;
  background-color: var(--bg-accent);
  border-radius: var(--radius-sm);
}

.search-status-bar a {
  color: var(--brand-accent);
  text-decoration: underline;
}

/* Sidebar Widgets */
.widget-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-border);
}

.widget-author .author-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.author-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: contain;
  background-color: #ffffff;
  padding: 4px;
  border: 1px solid var(--brand-border);
}

.author-avatar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #090d16;
  color: #38bdf8;
  border: 1px solid #1e293b;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.author-avatar-icon:hover {
  border-color: #38bdf8;
  transform: scale(1.05);
}

.author-avatar-icon svg {
  width: 26px;
  height: 26px;
}

.widget-subtitle {
  font-size: 0.8rem;
  color: var(--brand-accent);
  font-weight: 600;
  text-transform: uppercase;
}

.widget-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 14px 0;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 10px;
  background-color: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  color: var(--brand-primary);
  border-color: #cbd5e1;
}

/* Category List Widget */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 6px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.category-item:hover,
.category-item.active {
  background-color: #ffffff;
  color: var(--brand-accent);
  font-weight: 600;
  transform: translateX(3px);
}

.cat-count {
  background-color: var(--bg-accent);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Recent Posts Widget */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.recent-post-item:hover {
  background-color: #ffffff;
}

.recent-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.recent-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recent-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-post-item:hover .recent-title {
  color: var(--brand-accent);
}

.recent-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Tag Cloud Widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--brand-border);
  transition: all var(--transition-fast);
}

.tag-pill:hover,
.tag-pill.active {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* ----------------------------------------------------
 * Categories Page View
 * ---------------------------------------------------- */
.page-view-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--brand-border);
  padding-bottom: 20px;
}

.page-view-header h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.page-view-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.category-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.category-card-media {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.category-card:hover .category-card-media img {
  transform: scale(1.05);
}

.cat-pill-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.category-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.cat-preview-posts {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  flex: 1;
}

.cat-preview-posts li {
  margin-bottom: 6px;
}

.cat-preview-posts a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.cat-preview-posts a:hover {
  color: var(--brand-accent);
}

.btn-view-category {
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.btn-view-category:hover {
  color: var(--brand-accent);
  transform: translateX(4px);
}

/* ----------------------------------------------------
 * Dummy / Pre-Worker Markers & Badges
 * ---------------------------------------------------- */
.badge-dummy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  vertical-align: middle;
}

.badge-dummy-sm {
  display: inline-block;
  background-color: #f59e0b;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  margin-left: 4px;
  vertical-align: middle;
}

.dummy-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.dummy-banner-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.dummy-banner-content h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
  font-family: var(--font-heading);
}

.dummy-banner-content p {
  margin: 0;
  font-size: 0.85rem;
  color: #b45309;
  line-height: 1.45;
}

.dummy-inline-note {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
}

/* ----------------------------------------------------
 * Contact Page View
 * ---------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
}

.contact-form-card,
.contact-info-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-meta-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.contact-meta-list li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-meta-list strong {
  color: var(--text-primary);
}

.contact-note {
  background-color: #ffffff;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-border);
}

.contact-note h4 {
  margin: 0 0 6px 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.contact-note p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.alert-success {
  background-color: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 20px;
}

/* Active filter banner */
.active-filter-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-subtle);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-accent);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}

.filter-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.filter-count {
  margin-left: 8px;
  color: var(--text-muted);
}

.btn-clear-filter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-accent);
  text-decoration: none;
}

.btn-clear-filter:hover {
  text-decoration: underline;
}

.empty-state-card {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-subtle);
  border: 1px dashed var(--brand-border);
  border-radius: var(--radius-md);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 8px 0;
}

.empty-state-card p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 20px;
}

/* ----------------------------------------------------
 * Modal: New Post Editor
 * ---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--brand-border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--brand-border);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-form {
  padding: 24px 28px;
}

.image-preset-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.preset-option {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--brand-border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.preset-option:hover {
  border-color: var(--brand-accent);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--brand-border);
}

/* ----------------------------------------------------
 * Responsive Media Queries
 * ---------------------------------------------------- */
@media (max-width: 960px) {
  body {
    padding: 12px 8px 40px;
  }

  #container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "a"
      "b"
      "c"
      "d"
      "e";
  }

  #b {
    padding: 28px 24px 12px;
  }

  #c {
    padding: 0 24px 20px;
    justify-content: flex-start;
  }

  .header-widget {
    align-items: flex-start;
  }

  #d {
    padding: 10px 24px 30px;
  }

  #e {
    padding: 10px 24px 40px;
    border-top: 2px solid var(--brand-border);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #b h1 {
    font-size: 2.2rem;
  }

  .post-featured-img {
    height: 240px;
  }

  .single-post-title {
    font-size: 1.85rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .list-sample-columns {
    grid-template-columns: 1fr;
  }
}
