/*
Theme Name: Developer Codex
Description: Professional WordPress theme for real estate developers - exact copy of React prototype
Author: Claude Code
Version: 1.0.0
Text Domain: developer-codex
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* EXACT CSS Variables from prototype */
:root {
  --button-outline: rgba(0,0,0, .10);
  --badge-outline: rgba(0,0,0, .05);
  --opaque-button-border-intensity: -8;
  --elevate-1: rgba(0,0,0, .03);
  --elevate-2: rgba(0,0,0, .08);

  --background: 0 0% 98%;
  --foreground: 220 15% 25%;
  --border: 0 0% 92%;
  --card: 0 0% 100%;
  --card-foreground: 220 15% 25%;
  --card-border: 0 0% 96%;
  --primary: 220 15% 25%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 90%;
  --secondary-foreground: 220 15% 25%;
  --muted: 210 8% 92%;
  --muted-foreground: 0 0% 45%;
  --accent: 210 50% 55%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 65% 45%;
  --destructive-foreground: 0 0% 98%;
  --input: 0 0% 85%;
  --ring: 210 50% 55%;

  --font-sans: Inter, sans-serif;
  --radius: .5rem;
}

.dark {
  --background: 220 15% 8%;
  --foreground: 210 20% 85%;
  --border: 220 15% 18%;
  --card: 220 15% 12%;
  --card-foreground: 210 20% 85%;
  --primary: 210 60% 65%;
  --primary-foreground: 220 15% 8%;
  --secondary: 220 15% 16%;
  --secondary-foreground: 210 20% 85%;
  --muted: 220 15% 12%;
  --muted-foreground: 0 0% 70%;
  --accent: 210 30% 25%;
  --accent-foreground: 210 20% 85%;
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility classes - Tailwind style */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.grid {
  display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Responsive grid classes */
@media (min-width: 768px) {
  .md\\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-0 { padding: 0; }
.p-6 { padding: 1.5rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-accent { color: hsl(var(--accent)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }

.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-muted { background-color: hsl(var(--muted)); }

.rounded-lg { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }

.top-4 { top: 1rem; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.bottom-6 { bottom: 1.5rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.h-48 { height: 12rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }

.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.space-x-4 > * + * { margin-left: 1rem; }

.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }

.transition-all { transition: all 0.15s ease-in-out; }
.transition-colors { transition: color 0.15s ease-in-out; }
.transition-transform { transition: transform 0.15s ease-in-out; }
.duration-300 { transition-duration: 300ms; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding .site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-navigation a {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease-in-out;
}

.main-navigation a:hover {
  color: hsl(var(--accent));
}

/* Hero section - exact copy from prototype */
.hero-section {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content .accent-text {
  color: hsl(var(--accent));
}

.hero-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

/* Stats grid in hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Buttons - exact copy from prototype */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

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

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

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

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

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: hsl(var(--primary));
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Cards - exact copy from prototype */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-2px);
}

.hover-elevate:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--elevate-1);
  pointer-events: none;
  border-radius: inherit;
}

.card-header {
  padding: 0;
}

.card-content {
  padding: 1.5rem;
}

/* Badge - exact copy from prototype */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Project cards exactly as in prototype */
.project-card {
  position: relative;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.availability-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.project-content {
  padding: 1.5rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.project-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: color 0.15s ease-in-out;
}

.project-card:hover .project-name {
  color: hsl(var(--primary));
}

.project-price-section .price-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.project-price-section .price-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.project-location {
  display: flex;
  align-items: center;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.project-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 1rem;
  /* Line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-units {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* About section exactly as in prototype */
.about-section {
  background-color: hsl(var(--muted) / 0.3);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content .badge {
  margin-bottom: 1rem;
}

.about-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

.about-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background-color: hsl(var(--primary) / 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.feature-content h3 {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.about-image-section {
  position: relative;
}

.about-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
  border-radius: var(--radius);
}

.stats-overlay {
  position: absolute;
  bottom: -1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .stats-overlay {
    right: auto;
    width: 16rem;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Project image overlays */
.project-overlay-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Contact section */
.contact-section {
  padding: 4rem 0;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.contact-panels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Contact form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

@media (min-width: 768px) {
  .form-row.two-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.form-input {
  height: 2.5rem;
  width: 100%;
  border: 1px solid hsl(var(--input));
  border-radius: 0.375rem;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.form-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.form-textarea {
  min-height: 80px;
  width: 100%;
  border: 1px solid hsl(var(--input));
  border-radius: 0.375rem;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.form-submit {
  height: 2.5rem;
  width: 100%;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: 1px solid hsl(var(--primary));
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-submit:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.form-title {
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
}

.form-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Blog section styling */
.blog-card h3 a {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: hsl(var(--foreground));
  text-decoration: none;
}


.contact-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.contact-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-bottom: 3rem;
}

/* Icons */
.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--primary-foreground) / 0.2);
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-title {
    font-size: 1.875rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Blog Archive Page Styles */
.blog-archive-container {
  background: hsl(var(--background));
  min-height: 50vh;
}

.featured-post {
  margin-bottom: 4rem;
}

.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-height: 400px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.featured-image {
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-article:hover .featured-image img {
  transform: scale(1.05);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.featured-meta {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.featured-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-title a {
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-title a:hover {
  color: hsl(var(--accent));
}

.featured-excerpt {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.post-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.post-card:hover {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.post-image img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.post-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.post-title a {
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.post-excerpt {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Pagination Styles */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  transition: all 0.3s ease;
}

.page-numbers a:hover {
  background: hsl(var(--accent));
  color: white;
  border-color: hsl(var(--accent));
}

.page-numbers .current {
  background: hsl(var(--accent));
  color: white;
  border-color: hsl(var(--accent));
}

.page-numbers svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Blog Archive Mobile Responsive */
@media (max-width: 768px) {
  .featured-article {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .featured-content {
    padding: 1.5rem;
  }

  .featured-title {
    font-size: 1.5rem;
  }

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

/* Single Post Styles */
.single-post-container {
  background: hsl(var(--background));
  min-height: 100vh;
}

.single-article {
  max-width: 1200px;
  margin: 0 auto;
  background: hsl(var(--card));
  border-radius: 0.5rem;
  padding: 3rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.article-header {
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.meta-info span {
  opacity: 0.6;
}

.article-title {
  font-size: 3rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  line-height: 1.1;
  margin-bottom: 2rem;
}

.article-excerpt {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  font-style: italic;
}

.featured-image-container {
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 3rem;
}

.featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.image-caption {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* Article Content Typography */
.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: hsl(var(--foreground));
  margin-bottom: 3rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 2rem;
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 0.5rem;
}

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

.article-content h4 {
  font-size: 1.25rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content blockquote {
  border-left: 4px solid hsl(var(--accent));
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.3);
  padding: 1.5rem;
  border-radius: 0.375rem;
}

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

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content code {
  background: hsl(var(--muted));
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: 'Courier New', monospace;
}

.article-content pre {
  background: hsl(var(--muted));
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

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

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.article-content a {
  color: hsl(var(--accent));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: hsl(var(--accent) / 0.8);
}

/* Article Footer */
.article-footer {
  border-top: 1px solid hsl(var(--border));
  padding-top: 2rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.tag-link:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Share Buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.share-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Author Info */
.author-info {
  background: hsl(var(--muted) / 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.author-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.author-avatar img {
  border-radius: 50%;
  width: 64px;
  height: 64px;
}

.author-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.author-bio {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
  border-top: 1px solid hsl(var(--border));
  padding-top: 2rem;
  margin-top: 3rem;
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.nav-previous,
.nav-next {
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.nav-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.nav-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.nav-title:hover {
  color: hsl(var(--accent));
}

/* Related Posts */
.related-posts {
  border-top: 1px solid hsl(var(--border));
  padding-top: 2rem;
  margin-top: 3rem;
}

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

.related-post {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-post:hover {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.related-image img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 1.5rem;
}

.related-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.related-title a {
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-title a:hover {
  color: hsl(var(--accent));
}

.related-meta {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Single Post Mobile Responsive */
@media (max-width: 768px) {
  .single-article {
    padding: 1.5rem;
    margin: 0 1rem;
    max-width: none;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-excerpt {
    font-size: 1.125rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .meta-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }

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

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