/* ========================================
   MailWebhook Blog - Pure CSS Stylesheet
   ======================================== */

/* CSS Variables / Design Tokens */
:root {
  /* Light theme */
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --primary: #171717;
  --primary-foreground: #fafafa;
  --secondary: #f5f5f5;
  --secondary-foreground: #171717;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #f5f5f5;
  --accent-foreground: #171717;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: #a3a3a3;
  --radius: 0.625rem;
  
  /* Font families */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* Dark theme */
.dark {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #0a0a0a;
  --card-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #171717;
  --secondary: #262626;
  --secondary-foreground: #fafafa;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --accent: #262626;
  --accent-foreground: #fafafa;
  --border: #262626;
  --input: #262626;
  --ring: #525252;
}

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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  line-height: 1.6;
}

/* ========================================
   Utilities
   ======================================== */

.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-narrow {
  max-width: 48rem;
}

.container-prose {
  max-width: 42rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-balance {
  text-wrap: balance;
}

/* ========================================
   Header
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 229, 229, 0.4);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dark .header {
  background-color: rgba(10, 10, 10, 0.8);
  border-bottom-color: rgba(38, 38, 38, 0.4);
}

.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo img {
  height: 2rem;
  width: 2rem;
}

.header-logo-text {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
}

.header-badge {
  display: none;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background-color: var(--muted);
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .header-badge {
    display: inline-flex;
  }
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.header-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--foreground);
}

.header-nav a.active {
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme Toggle */
.theme-toggle {
  padding: 0.5rem;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle:hover {
  color: var(--foreground);
  background-color: var(--muted);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-toggle .icon-moon {
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

.dark .theme-toggle .icon-moon {
  display: none;
}

.dark .theme-toggle .icon-sun {
  display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  color: var(--muted-foreground);
}

.mobile-menu-btn:hover {
  color: var(--foreground);
}

.mobile-menu-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid rgba(229, 229, 229, 0.4);
}

.dark .mobile-nav {
  border-top-color: rgba(38, 38, 38, 0.4);
}

.mobile-nav.active {
  display: block;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.mobile-nav a.active {
  font-weight: 500;
  color: var(--foreground);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-lg {
  height: 3rem;
  padding: 0 1.5rem;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

.btn-subscribe {
  display: none;
}

@media (min-width: 640px) {
  .btn-subscribe {
    display: inline-flex;
  }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(229, 229, 229, 0.4);
}

.dark .hero {
  border-bottom-color: rgba(38, 38, 38, 0.4);
}

.hero-inner {
  max-width: 56rem;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  line-height: 1.7;
}

/* ========================================
   Featured Section
   ======================================== */

.featured {
  padding: 4rem 0;
}

.featured-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.featured-divider-line {
  flex: 1;
  height: 1px;
  background-color: rgba(229, 229, 229, 0.4);
}

.dark .featured-divider-line {
  background-color: rgba(38, 38, 38, 0.4);
}

.featured-divider-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  padding: 0 1rem;
}

.featured-carousel {
  position: relative;
  overflow: hidden;
}

.featured-track {
  display: flex;
  transition: transform 0.5s ease-out;
}

.featured-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 0.25rem;
}

.featured-card {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 229, 229, 0.4);
  background-color: var(--card);
  transition: border-color 0.15s ease;
}

.dark .featured-card {
  border-color: rgba(38, 38, 38, 0.4);
}

.featured-card:hover {
  border-color: var(--border);
}

@media (min-width: 640px) {
  .featured-card {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .featured-card {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.featured-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--muted) 0%, rgba(115, 115, 115, 0.1) 100%);
  border-radius: calc(var(--radius) - 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-image-icon {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  color: rgba(115, 115, 115, 0.3);
}

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.featured-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background-color: rgba(23, 23, 23, 0.1);
  color: var(--primary);
}

.dark .featured-category {
  background-color: rgba(250, 250, 250, 0.1);
}

.featured-read-time {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.featured-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: color 0.15s ease;
}

@media (min-width: 640px) {
  .featured-title {
    font-size: 1.875rem;
  }
}

.featured-card:hover .featured-title {
  color: var(--primary);
}

.featured-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.featured-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.15s ease;
}

.featured-card:hover .featured-link svg {
  transform: translateX(0.25rem);
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 229, 229, 0.4);
  color: var(--muted-foreground);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  z-index: 10;
}

.dark .carousel-nav {
  background-color: rgba(10, 10, 10, 0.9);
  border-color: rgba(38, 38, 38, 0.4);
}

.carousel-nav:hover {
  border-color: var(--border);
  background-color: var(--muted);
}

.carousel-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.carousel-prev {
  left: 0.5rem;
}

.carousel-next {
  right: 0.5rem;
}

@media (min-width: 1024px) {
  .carousel-prev {
    left: 1rem;
  }
  .carousel-next {
    right: 1rem;
  }
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  height: 0.375rem;
  border-radius: 9999px;
  transition: width 0.3s ease, background-color 0.3s ease;
  width: 0.375rem;
  background-color: var(--border);
}

.carousel-dot:hover {
  background-color: rgba(115, 115, 115, 0.5);
}

.carousel-dot.active {
  width: 2rem;
  background-color: var(--primary);
}

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

.posts-section {
  padding: 4rem 0;
  background-color: rgba(245, 245, 245, 0.3);
}

.dark .posts-section {
  background-color: rgba(38, 38, 38, 0.3);
}

.posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.posts-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.posts-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.posts-view-all:hover {
  color: var(--foreground);
}

.posts-view-all svg {
  width: 0.75rem;
  height: 0.75rem;
}

.posts-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Post Card */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 229, 229, 0.4);
  background-color: var(--card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dark .post-card {
  border-color: rgba(38, 38, 38, 0.4);
}

.post-card:hover {
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.post-card-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.post-card-read-time {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.post-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card:hover .post-card-title {
  color: var(--primary);
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(229, 229, 229, 0.4);
}

.dark .post-card-footer {
  border-top-color: rgba(38, 38, 38, 0.4);
}

.post-card-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ========================================
   Newsletter CTA
   ======================================== */

.newsletter {
  padding: 5rem 0;
}

.newsletter-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.newsletter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(23, 23, 23, 0.1);
  margin-bottom: 1.5rem;
}

.dark .newsletter-icon {
  background-color: rgba(250, 250, 250, 0.1);
}

.newsletter-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.newsletter-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .newsletter-title {
    font-size: 2.25rem;
  }
}

.newsletter-description {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex: 1;
  height: 3rem;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.newsletter-input::placeholder {
  color: var(--muted-foreground);
}

.newsletter-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(163, 163, 163, 0.2);
}

.newsletter-success {
  padding: 1rem;
  border-radius: var(--radius);
  background-color: rgba(23, 23, 23, 0.1);
  border: 1px solid rgba(23, 23, 23, 0.2);
}

.dark .newsletter-success {
  background-color: rgba(250, 250, 250, 0.1);
  border-color: rgba(250, 250, 250, 0.2);
}

.newsletter-success p {
  color: var(--primary);
  font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  border-top: 1px solid rgba(229, 229, 229, 0.4);
  padding: 3rem 0;
}

.dark .footer {
  border-top-color: rgba(38, 38, 38, 0.4);
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 1.5rem;
  width: 1.5rem;
}

.footer-brand-text {
  font-family: var(--font-mono);
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 20rem;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(229, 229, 229, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.dark .footer-bottom {
  border-top-color: rgba(38, 38, 38, 0.4);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-email {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.footer-email:hover {
  color: var(--foreground);
}

/* ========================================
   Post Page Styles
   ======================================== */

.post-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  transition: color 0.15s ease;
}

.post-back:hover {
  color: var(--foreground);
}

.post-back svg {
  width: 1rem;
  height: 1rem;
}

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(229, 229, 229, 0.4);
}

.dark .post-header {
  border-bottom-color: rgba(38, 38, 38, 0.4);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.post-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background-color: rgba(23, 23, 23, 0.1);
  color: var(--primary);
}

.dark .post-category {
  background-color: rgba(250, 250, 250, 0.1);
}

.post-read-time {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.post-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .post-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .post-title {
    font-size: 3rem;
  }
}

.post-excerpt {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-author-initials {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
}

.post-author-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.post-author-info {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Post Content / Prose */
.post-content {
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  color: rgba(10, 10, 10, 0.9);
  margin-bottom: 1rem;
}

.dark .post-content p {
  color: rgba(250, 250, 250, 0.9);
}

.post-content ul,
.post-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.post-content ul {
  list-style-type: disc;
}

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

.post-content li {
  color: rgba(10, 10, 10, 0.9);
  margin-bottom: 0.5rem;
}

.dark .post-content li {
  color: rgba(250, 250, 250, 0.9);
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background-color: var(--muted);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.post-content pre {
  background-color: var(--muted);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.post-content pre code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
  background: none;
}

.post-content blockquote {
  border-left: 4px solid rgba(23, 23, 23, 0.5);
  padding-left: 1rem;
  font-style: italic;
  color: var(--muted-foreground);
  margin: 1.5rem 0;
}

.dark .post-content blockquote {
  border-left-color: rgba(250, 250, 250, 0.5);
}

.post-content strong {
  font-weight: 600;
  color: var(--foreground);
}

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

.post-content a:hover {
  text-decoration: none;
}

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

.related-posts {
  padding: 4rem 0;
  background-color: rgba(245, 245, 245, 0.3);
  border-top: 1px solid rgba(229, 229, 229, 0.4);
  border-bottom: 1px solid rgba(229, 229, 229, 0.4);
}

.dark .related-posts {
  background-color: rgba(38, 38, 38, 0.3);
  border-color: rgba(38, 38, 38, 0.4);
}

.related-posts-title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-post-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 229, 229, 0.4);
  background-color: var(--card);
  transition: border-color 0.15s ease;
}

.dark .related-post-card {
  border-color: rgba(38, 38, 38, 0.4);
}

.related-post-card:hover {
  border-color: var(--border);
}

.related-post-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.related-post-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  flex-shrink: 0;
}

.related-post-title {
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-post-card:hover .related-post-title {
  color: var(--primary);
}

.related-post-read-time {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
  display: none;
}

@media (min-width: 640px) {
  .related-post-read-time {
    display: block;
  }
}

/* ========================================
   Category Page
   ======================================== */

.category-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.category-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.category-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .category-title {
    font-size: 3rem;
  }
}

.category-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
}

.category-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.category-post-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 229, 229, 0.4);
  background-color: var(--card);
  transition: border-color 0.15s ease;
}

.dark .category-post-card {
  border-color: rgba(38, 38, 38, 0.4);
}

.category-post-card:hover {
  border-color: var(--border);
}

.category-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.category-post-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.category-post-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
}

.category-post-card:hover .category-post-title {
  color: var(--primary);
}

.category-post-excerpt {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.empty-state {
  text-align: center;
  padding: 3rem 0;
  color: var(--muted-foreground);
}

/* ========================================
   SVG Icons (inline styles for icons)
   ======================================== */

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}
