/*
Theme Name: Shojibur
Theme URI: https://shojibur.com
Author: Shajibur Rahman
Author URI: https://shojibur.com
Description: A premium, modern portfolio theme for Shojibur Rahman.
Version: 2026
Requires at least: 5.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: shojibur
*/

:root {
  /* Colors */
  --bg-body: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --text-main: #0a0a0a;
  --text-muted: #6b7280;

  --primary: #0a0a0a;
  --primary-glow: rgba(0, 0, 0, 0.08);
  --secondary: #444444;
  --accent: #0a0a0a;

  --gradient-main: linear-gradient(135deg, #0a0a0a 0%, #333333 100%);
  --gradient-text: linear-gradient(135deg, #0a0a0a 0%, #444444 100%);

  /* Typography */
  --font-main: "Outfit", sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 80px 20px;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.06),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 20px -3px rgba(0, 0, 0, 0.1),
    0 4px 8px -2px rgba(0, 0, 0, 0.05);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   ACCESSIBILITY
======================================== */

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100000;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Screen reader only text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #000;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #fff;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Focus visible (only for keyboard, not mouse) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-main: #000;
    --text-muted: #333;
  }
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.75rem;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Layout Utilities */
.container,
#container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: var(--section-padding);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Layout: Mini Sidebar + Top Header */
#wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

#mini-sidebar {
  width: 60px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: var(--bg-card);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000; /* Above header */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  overflow: hidden; /* Ensure line doesn't overflow */
}

#sidebar-scroll-line {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 0%; /* Dynamic */
  background: var(--gradient-main);
  box-shadow: 0 0 15px var(--primary);
  z-index: 1001;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  transition: height 0.1s linear;
}

.sidebar-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px;
}

.vertical-text-wrapper {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
}

.vertical-text {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary); /* Use primary color directly for clarity */
  animation: pulseText 3s infinite ease-in-out;
}

@keyframes pulseText {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

.sidebar-bottom-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#main-viewport {
  width: 100%;
  margin-left: 60px; /* Offset for sidebar */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sidebar Elements */
.sidebar-logo-mark {
  padding-bottom: 0;
}
.sidebar-logo-mark .dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  display: block;
}

.social-links-vertical {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.social-links-vertical li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
  transition: var(--transition);
}

.social-links-vertical li a:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--primary);
}

/* Inline SVG icons inherit text color and align with text */
.sh-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Mobile menu toggle: show menu icon closed, close icon when open */
#mobile-menu-toggle .icon-close {
  display: none;
}
#mobile-menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}
#mobile-menu-toggle[aria-expanded="true"] .icon-close {
  display: inline-flex;
}

/* Header Style */
#header {
  position: sticky;
  width: calc(100%); /* Adjust width */
  z-index: 900;
  background: rgba(255, 255, 255, 0.85); /* Slightly more transparent */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 0 10px;
}

/* Branding & Menu in Header */
#branding h1,
#branding div {
  margin: 0;
  font-size: 1.25rem;
}

/* Desktop Pill Menu */
.pill-menu {
  display: flex;
  gap: 10px;
  margin: 0;
  background: var(--bg-body);
  padding: 5px;
  border-radius: 40px;
}

.pill-menu li {
  margin: 0;
}

.pill-menu a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 30px;
  background: transparent;
  transition: var(--transition);
  display: block;
}

.pill-menu a:hover,
.pill-menu .current-menu-item > a {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-pill-cta {
  background: var(--gradient-main);
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-pill-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-circle-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-circle-arrow:hover {
  transform: rotate(45deg);
  background: var(--primary);
}

/* Mobile Menu Toggle */
#mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ---- Full-screen mobile menu ---- */
#mm-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1099;
  backdrop-filter: blur(2px);
}

#mm-backdrop.active { display: block; }

#mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100vw);
  background: var(--bg-card);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}

#mobile-menu-overlay.open {
  transform: translateX(0);
}

.mm-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow-y: auto;
}

/* Top bar */
.mm-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 28px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mm-identity { display: flex; flex-direction: column; gap: 3px; }
.mm-name { font-size: 1rem; font-weight: 700; color: var(--text-main); letter-spacing: -0.01em; }
.mm-role { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

#mm-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-body);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
#mm-close:hover { background: var(--text-main); color: #fff; }

/* Nav links */
.mm-nav { flex: 1; padding: 16px 16px; }

.mm-list { list-style: none; margin: 0; padding: 0; }

.mm-list li a {
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.mm-list li a:hover,
.mm-list .current-menu-item > a {
  background: var(--bg-body);
  color: var(--primary);
  padding-left: 20px;
}

.mm-list .current-menu-item > a {
  font-weight: 700;
}

/* Bottom CTAs + socials */
.mm-bottom {
  padding: 20px 28px 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  background: var(--text-main);
  color: #fff;
}
.mm-cta:hover { opacity: 0.85; color: #fff; }

.mm-cta-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.mm-cta-ghost:hover { border-color: var(--text-main); background: var(--bg-body); color: var(--text-main); }

.mm-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}
.mm-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.mm-socials a:hover { background: var(--text-main); color: #fff; border-color: var(--text-main); }

/* Responsive */
@media (max-width: 1024px) {
  .pill-menu { display: none; }
  .header-cta .btn-pill-cta { display: none; }
  .btn-circle-arrow { display: none; }
  #menu { display: none; }

  .header-layout {
    flex-direction: row;
    align-items: center;
  }

  #mobile-menu-toggle {
    display: flex;
    order: 1;
    flex-shrink: 0;
  }

  #branding {
    order: 3;
    flex-shrink: 0;
  }

  .header-cta {
    order: 2;
    flex: 1;
  }
}

@media (max-width: 768px) {
  #mini-sidebar {
    width: 0;
    overflow: hidden;
    padding: 0;
    border: none;
  }
  #main-viewport {
    margin-left: 0;
  }
  #header {
    top: 10px;
    margin: 0 10px;
    width: calc(100% - 20px);
  }
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--primary);
  filter: blur(200px);
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--text-main);
  color: #ffffff;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-left: 10px;
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(0, 0, 0, 0.02);
}

/* Cards (Project/Blog) */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-hover);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.card-title a {
  color: var(--text-main);
}
.card-title a:hover {
  color: var(--primary);
}

.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
}

.card-excerpt {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  color: var(--text-muted);
}

/* Footer */
#footer {
  background: transparent;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto; /* Push to bottom of flex container if content is short */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

#copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}

/* ========================================
   BLOG STYLES
======================================== */

/* ========================================
   BLOG STYLES - CLEAN & MINIMAL
======================================== */

/* Blog Archive */
.blog-archive {
  padding: 40px 20px;
}

.blog-archive .container {
  max-width: 1200px;
  margin: 0 auto;
}

.archive-header {
  margin-bottom: 40px;
}

.archive-header h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.archive-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Blog Posts List */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 48px;
  margin-bottom: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card-image {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card-meta .sep {
  margin: 0 6px;
}

.post-category {
  color: var(--text-muted);
  font-weight: 500;
}

.post-category:hover {
  color: var(--text-main);
}

.blog-card h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog-card h2 a {
  color: var(--text-main);
}

.blog-card h2 a:hover {
  color: var(--primary);
}

.blog-card-excerpt {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.read-more {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.read-more:hover {
  opacity: 0.75;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Single Post */
.single-post .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.post-header {
  margin-bottom: 40px;
}

.post-header .post-meta {
  margin-bottom: 16px;
}

.post-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.post-author img {
  border-radius: 50%;
}

.post-author span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.post-featured-image {
  margin-top: 24px;
  border-radius: 4px;
  overflow: hidden;
  max-height: 400px;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 40px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 32px 0 16px 0;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 1.75rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content ul,
.post-content ol {
  margin: 20px 0;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
  list-style: disc;
}

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

.post-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: var(--bg-body);
  font-style: italic;
}

.post-content code {
  background: var(--bg-body);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: var(--bg-body);
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 20px 0;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content img {
  margin: 24px 0;
  border-radius: 4px;
}

.post-footer {
  margin: 40px 0;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.post-tags {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-tags a {
  color: var(--primary);
  margin-left: 8px;
}

.post-tags a:hover {
  text-decoration: underline;
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 20px;
  margin: 40px 0;
  padding: 24px;
  background: var(--bg-body);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
}

.author-bio img {
  border-radius: 50%;
  flex-shrink: 0;
}

.author-bio-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.author-bio-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Related Posts */
.related-posts {
  margin: 60px 0 40px 0;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.related-posts .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.related-posts h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.related-post {
  display: flex;
  flex-direction: column;
}

.related-post-image {
  display: block;
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: opacity 0.2s;
}

.related-post-image:hover img {
  opacity: 0.9;
}

.related-post h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.related-post h3 a {
  color: var(--text-main);
}

.related-post h3 a:hover {
  color: var(--primary);
}

.related-post time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Comments */
.comments-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* No Posts */
.no-posts {
  text-align: center;
  padding: 60px 20px;
}

.no-posts h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.no-posts p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .archive-header h1,
  .post-header h1 {
    font-size: 2rem;
  }

  .blog-post h2 {
    font-size: 1.5rem;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }
}

/* Clean, no gradients, no animations, no fancy effects */

.comments-wrapper {
  padding: 60px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#comments {
  max-width: 100%;
}

.comments-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-main);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.comment-list li {
  list-style: none;
}

.comment-body {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.comment-body:hover {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

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

.comment-author img {
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.08);
}

.comment-author .fn {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  font-style: normal;
}

.comment-metadata {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.comment-metadata a {
  color: var(--text-muted);
  text-decoration: none;
}

.comment-metadata a:hover {
  color: var(--primary);
}

.comment-separator {
  color: var(--text-muted);
  margin: 0 4px;
}

/* Comment Delete Button - Inline with edit on metadata line */
.comment-edit-link,
.delete-comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.comment-edit-link {
  color: var(--primary);
}

.comment-edit-link:hover {
  color: var(--secondary);
}

.delete-comment-btn {
  color: #ef4444;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.delete-comment-btn:hover {
  color: #dc2626;
}

.delete-comment-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.delete-comment-btn svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* Reply section */
.reply {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.3s ease;
}

.comment-reply-link:hover {
  gap: 10px;
}

.comment-content {
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 12px;
}

.comment-content p {
  margin-bottom: 1em;
}

/* Nested Comments */
.children {
  list-style: none;
  margin-left: 40px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .children {
    margin-left: 20px;
  }
}

/* Comment Form */
.comment-respond {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.015) 0%,
    rgba(0, 0, 0, 0.015) 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 40px;
}

.comment-reply-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-main);
}

.comment-reply-title small {
  font-size: 0.875rem;
  font-weight: 400;
  margin-left: 12px;
}

.comment-reply-title small a {
  color: var(--primary);
  text-decoration: none;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin: 0;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-main);
  background: var(--bg-card);
  transition: var(--transition);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  margin: 0;
}

.form-submit input[type="submit"] {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit input[type="submit"]:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.comment-notes,
.logged-in-as {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.comment-notes a,
.logged-in-as a {
  color: var(--primary);
  text-decoration: none;
}

.comment-notes a:hover,
.logged-in-as a:hover {
  text-decoration: underline;
}

/* Comment Navigation */
.comments-navigation {
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.paginated-comments-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.paginated-comments-links a,
.paginated-comments-links span {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.paginated-comments-links a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.paginated-comments-links .current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
