:root {
  --grid-color: #e0e0e0;
  --grid-size: 20px;
  --bg-color: #ffffff;
  --text-color: #2c3e50;
  --text-light: #7f8c8d;
  --link-color: #3498db;
  --link-hover-color: #2980b9;
  --accent-color: #e74c3c;
  --max-width: 1400px;
  --content-width: 820px;
  --sidebar-width: 320px;
  --gap: 3rem;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Inter', var(--font-family);
  --border-color: #ecf0f1;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: -1px -1px;
  background-attachment: fixed;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.7;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  flex: 1;
  padding: 3rem 2rem;
  background-color: rgba(255, 255, 255, 0.98);
}

.main-content {
  flex: 1;
  max-width: var(--content-width);
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.sidebar {
  width: var(--sidebar-width);
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--border-color);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--link-color);
  border-radius: 2px;
}

header {
  background: white;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

header > div {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 0;
}

.site-title a {
  color: var(--text-color);
  text-decoration: none;
  background: linear-gradient(135deg, var(--link-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
  align-items: center;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

nav a:hover {
  color: var(--link-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--link-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.language-switcher {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .header-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  nav ul {
    width: 100%;
  }
}

.language-switcher select {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--grid-color);
  border-radius: 4px;
  background-color: white;
  font-size: 0.9rem;
}

main {
  margin-bottom: 3rem;
}

article {
  margin-bottom: 3rem;
}

/* Article Content Styles */
article .content img,
.content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

article .content p img,
.content p img {
  margin: 1rem auto;
}

/* Ensure all content stays within boundaries */
article .content,
.content {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Code Styles */
article .content code,
.content code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
  font-size: 0.875em;
  background-color: rgba(0, 102, 204, 0.08);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  color: var(--text-color);
  font-weight: 500;
}

article .content pre,
.content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 0;
  background-color: #282a36;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

article .content pre code,
.content pre code {
  display: block;
  padding: 1.25rem;
  background: transparent;
  color: #f8f8f2;
  font-size: 0.9rem;
  line-height: 1.6;
  border-radius: 0;
  overflow-x: auto;
}

/* Code block with language label */
article .content .highlight,
.content .highlight {
  position: relative;
  margin: 1.5rem 0;
}

article .content .highlight::before,
.content .highlight::before {
  content: attr(data-lang);
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background-color: rgba(0, 102, 204, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 1;
}

/* Line numbers */
article .content .highlight .ln,
.content .highlight .ln {
  color: #6272a4;
  user-select: none;
  margin-right: 1rem;
  padding-right: 0.5rem;
  border-right: 1px solid #44475a;
}

/* Copy button */
.copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8f8f2;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  font-family: var(--font-family);
  z-index: 10;
  pointer-events: none;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

/* Show button on hover with smooth animation */
.highlight:hover .copy-button,
pre:hover .copy-button {
  opacity: 0.85;
  transform: scale(1);
  pointer-events: auto;
}

/* Enhanced hover state for the button itself */
.copy-button:hover {
  opacity: 1 !important;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.copy-button:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

.copy-button svg {
  flex-shrink: 0;
}

.copy-button.copy-success {
  background-color: rgba(80, 250, 123, 0.25);
  border-color: #50fa7b;
  color: #50fa7b;
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(80, 250, 123, 0.3);
}

.copy-button.copy-error {
  background-color: rgba(255, 121, 198, 0.25);
  border-color: #ff79c6;
  color: #ff79c6;
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 121, 198, 0.3);
}

.copy-text {
  white-space: nowrap;
}

/* Hide copy button on very small screens */
@media (max-width: 480px) {
  .copy-button {
    padding: 0.4rem;
  }
  
  .copy-text {
    display: none;
  }
}

/* Scrollbar styling for code blocks */
article .content pre::-webkit-scrollbar,
.content pre::-webkit-scrollbar {
  height: 8px;
}

article .content pre::-webkit-scrollbar-track,
.content pre::-webkit-scrollbar-track {
  background: #44475a;
  border-radius: 4px;
}

article .content pre::-webkit-scrollbar-thumb,
.content pre::-webkit-scrollbar-thumb {
  background: #6272a4;
  border-radius: 4px;
}

article .content pre::-webkit-scrollbar-thumb:hover,
.content pre::-webkit-scrollbar-thumb:hover {
  background: #8be9fd;
}

/* Table Styles */
article .content table,
.content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

article .content .table-wrapper,
.content .table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

article .content table thead,
.content table thead {
  background-color: var(--link-color);
  color: white;
}

article .content table th,
.content table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid var(--link-hover-color);
}

article .content table td,
.content table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

article .content table tbody tr:nth-child(even),
.content table tbody tr:nth-child(even) {
  background-color: rgba(0, 102, 204, 0.02);
}

article .content table tbody tr:hover,
.content table tbody tr:hover {
  background-color: rgba(0, 102, 204, 0.05);
  transition: background-color 0.2s;
}

article .content table tbody tr:last-child td,
.content table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive table */
@media (max-width: 640px) {
  article .content table,
  .content table {
    font-size: 0.85rem;
  }
  
  article .content table th,
  .content table th,
  article .content table td,
  .content table td {
    padding: 0.5rem 0.75rem;
  }
}

article .content blockquote,
.content blockquote {
  border-left: 4px solid var(--link-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #666;
}

/* Video embeds */
article .content iframe,
.content iframe {
  max-width: 100%;
  margin: 1.5rem auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 2.5rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.post-list li:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.post-list article {
  display: flex;
  gap: 0;
  align-items: stretch;
  min-height: 200px;
}

.post-content {
  flex: 1;
  min-width: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.post-thumbnail {
  flex-shrink: 0;
  width: 280px;
  overflow: hidden;
  position: relative;
}

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

.post-list li:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--grid-color) 25%, transparent 25%) -10px 0,
              linear-gradient(225deg, var(--grid-color) 25%, transparent 25%) -10px 0,
              linear-gradient(315deg, var(--grid-color) 25%, transparent 25%),
              linear-gradient(45deg, var(--grid-color) 25%, transparent 25%);
  background-size: 20px 20px;
  background-color: rgba(0, 102, 204, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--link-color);
  font-size: 3rem;
  opacity: 0.3;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-summary {
  color: #555;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.read-more:hover {
  transform: translateX(4px);
}

footer {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: var(--link-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Sidebar Styles */
.sidebar-widget {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.sidebar-widget:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sidebar-widget h3 {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.author-info {
  text-align: center;
}

.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--border-color);
}

.author-name {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.author-bio {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-block;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.social-links a:hover {
  background-color: rgba(0, 102, 204, 0.1);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.tag-cloud a:hover {
  background-color: var(--link-color);
  color: white;
  text-decoration: none;
}

.recent-posts ul {
  list-style: none;
}

.recent-posts li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-posts a {
  font-size: 0.9rem;
}

.recent-posts .date {
  font-size: 0.8rem;
  color: #666;
  display: block;
  margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 250px;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    padding: 1rem;
  }
  
  .main-content {
    max-width: 100%;
    padding: 1.5rem;
    border-radius: var(--radius);
  }
  
  .sidebar {
    width: 100%;
    position: static;
  }
  
  header > div {
    padding: 1rem;
  }
  
  .post-list article {
    flex-direction: column;
  }
  
  .post-thumbnail {
    width: 100%;
    height: 200px;
  }
  
  .post-content {
    padding: 1.5rem;
  }
  
  nav ul {
    flex-wrap: wrap;
  }
  
  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .post-list article {
    flex-direction: column;
  }
  
  .post-thumbnail {
    width: 100%;
    height: 200px;
  }
}

/* Mobile specific adjustments */
@media (max-width: 640px) {
  article .content img,
  .content img {
    margin: 1rem -1rem;
    max-width: calc(100% + 2rem);
    border-radius: 0;
  }
  
  .container {
    padding: 1rem 0.5rem;
  }
  
  .post-list li {
    padding: 1rem;
  }
}

/* Additional Typography Improvements */
.post-title a {
  transition: color 0.2s;
}

.post-title a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
}

.tags {
  margin-top: 0.5rem;
}

.tags a {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  margin-right: 0.5rem;
  background-color: rgba(0, 102, 204, 0.1);
  border-radius: 15px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.tags a:hover {
  background-color: var(--link-color);
  color: white;
  text-decoration: none;
}

/* Archive and Taxonomy Pages */
.archives-page,
.taxonomy-page,
.taxonomy-terms-page {
  max-width: 100%;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px dashed var(--border-color);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.page-description {
  color: #666;
  font-size: 1.1rem;
}

.archives-summary {
  text-align: center;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background-color: rgba(0, 102, 204, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--link-color);
}

.archives-timeline {
  position: relative;
}

.year-section {
  margin-bottom: 3rem;
}

.archive-year {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--link-color);
  position: sticky;
  top: 1rem;
  background-color: var(--bg-color);
  z-index: 5;
}

.archive-year a {
  color: var(--text-color);
  text-decoration: none;
}

.year-count {
  font-size: 0.8em;
  color: var(--link-color);
  font-weight: 400;
}

.month-section {
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
}

.archive-month {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 1.5rem 0 1rem;
  color: var(--link-color);
}

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

.archive-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.archive-item:hover {
  background-color: rgba(0, 102, 204, 0.05);
}

.archive-date {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--link-color);
  font-family: monospace;
  min-width: 3rem;
}

.archive-content {
  flex: 1;
}

.archive-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.archive-title a {
  color: var(--text-color);
  text-decoration: none;
}

.archive-title a:hover {
  color: var(--link-hover-color);
}

.archive-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.archive-category {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  background-color: rgba(0, 102, 204, 0.1);
  color: var(--link-color);
  border-radius: 12px;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  padding: 2rem;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.category-card:hover {
  border-color: var(--link-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.1);
}

.category-name {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.category-name a {
  color: var(--text-color);
  text-decoration: none;
}

.category-name a:hover {
  color: var(--link-hover-color);
}

.category-count {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.category-preview {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.preview-post {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.preview-post a {
  flex: 1;
  color: var(--text-color);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 1rem;
}

.preview-post a:hover {
  color: var(--link-hover-color);
}

.preview-post time {
  flex-shrink: 0;
  color: #666;
  font-size: 0.8rem;
  font-family: monospace;
}

.taxonomy-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px dashed var(--border-color);
}

.taxonomy-count {
  color: #666;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .archive-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .archive-date {
    min-width: auto;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .archive-year {
    font-size: 1.5rem;
    position: static;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination li {
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  background-color: rgba(255, 255, 255, 0.5);
}

.pagination a:hover {
  border-color: var(--link-color);
  background-color: rgba(0, 102, 204, 0.1);
  transform: translateY(-2px);
}

.pagination .active span {
  background-color: var(--link-color);
  color: white;
  border-color: var(--link-color);
}

.pagination .disabled span {
  color: #999;
  cursor: not-allowed;
}

.page-item.disabled {
  opacity: 0.5;
}

.page-item.active {
  font-weight: bold;
}

/* Pagination Info */
.pagination-info {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grid-color: #2a2a2a;
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --text-light: #a0a0a0;
    --link-color: #5dade2;
    --link-hover-color: #3498db;
    --accent-color: #e74c3c;
    --border-color: #2a2a2a;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
  }
  
  header,
  .content-wrapper,
  .main-content,
  .post-list li,
  .sidebar-widget,
  footer {
    background: #1a1a1a;
  }
  
  header {
    background: rgba(26, 26, 26, 0.95);
  }
  
  .main-content {
    background: #1f1f1f;
    border-color: var(--border-color);
  }
  
  .post-list li {
    background: #1f1f1f;
    border-color: var(--border-color);
  }
  
  .post-list li:hover {
    box-shadow: var(--shadow-lg);
  }
  
  .sidebar-widget {
    background: #1f1f1f;
    border-color: var(--border-color);
  }
  
  .tag-cloud a {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
  }
  
  .tags a {
    background-color: rgba(77, 184, 255, 0.15);
  }
  
  .pagination a,
  .pagination span {
    background-color: rgba(26, 26, 26, 0.5);
    border-color: #444;
  }
  
  .pagination a:hover {
    background-color: rgba(77, 184, 255, 0.15);
    border-color: var(--link-color);
  }
  
  .pagination .active span {
    background-color: var(--link-color);
    border-color: var(--link-color);
  }
  
  /* Dark mode code adjustments */
  article .content code,
  .content code {
    background-color: rgba(77, 184, 255, 0.15);
    color: #8be9fd;
  }
  
  article .content pre,
  .content pre {
    background-color: #1a1e29;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
  
  article .content img,
  .content img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  article .content blockquote,
  .content blockquote {
    color: #bbb;
    border-left-color: var(--link-color);
  }
  
  /* Dark mode table styles */
  article .content .table-wrapper,
  .content .table-wrapper {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  article .content table thead,
  .content table thead {
    background-color: #2a5a7a;
  }
  
  article .content table th,
  .content table th {
    border-bottom-color: var(--link-color);
  }
  
  article .content table td,
  .content table td {
    border-bottom-color: #444;
  }
  
  article .content table tbody tr:nth-child(even),
  .content table tbody tr:nth-child(even) {
    background-color: rgba(77, 184, 255, 0.05);
  }
  
  article .content table tbody tr:hover,
  .content table tbody tr:hover {
    background-color: rgba(77, 184, 255, 0.1);
  }
  
  .language-switcher select {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-color: var(--grid-color);
  }
  
  .post-meta,
  .post-summary,
  footer,
  .author-bio,
  .recent-posts .date {
    color: #999;
  }
}