/* ============================================
   UtilyNest - Modern Design System
   ============================================ */

/* ============================================
   CSS Variables - Design Tokens
   ============================================ */
:root {
  /* Brand Colors */
  --brand-primary: #6366f1;
  --brand-secondary: #8b5cf6;
  --brand-accent: #06b6d4;
  --brand-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --brand-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0891b2 100%);

  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgb(99 102 241 / 0.3);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ============================================
   Global Enhancements
   ============================================ */
body {
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Selection styling */
::selection {
  background: var(--brand-primary);
  color: white;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ============================================
   Header Enhancements
   ============================================ */
.nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

header.header {
  box-shadow: var(--shadow-sm);
}

/* Logo hover effect */
.logo a {
  transition: opacity var(--transition-fast);
}

.logo a:hover {
  opacity: 0.8;
}

/* Navigation menu - hide scrollbar */
#menu {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

#menu::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

/* Navigation links */
#menu a {
  position: relative;
  transition: color var(--transition-fast);
}

#menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  transition: width var(--transition-normal);
}

#menu a:hover::after,
#menu a.active::after {
  width: 100%;
}

/* ============================================
   Article Cards - Modern Design
   ============================================ */
.post-entry {
  background: var(--theme);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.post-entry::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.post-entry:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.post-entry:hover::before {
  opacity: 1;
}

.entry-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.post-entry:hover .entry-header h2 {
  color: var(--brand-primary);
}

.entry-content p {
  color: var(--secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.entry-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* First entry (featured) */
.first-entry {
  background: var(--brand-gradient);
  color: white;
  border: none;
  padding: 2rem;
}

.first-entry .entry-header h2,
.first-entry .entry-content p,
.first-entry .entry-footer {
  color: white;
}

.first-entry .entry-footer {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.first-entry:hover {
  background: var(--brand-gradient-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* ============================================
   Single Post Page
   ============================================ */
.post-single {
  background: var(--theme);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-description {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-top: 0.75rem;
}

.post-meta {
  font-size: 0.875rem;
  color: var(--secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Post content typography */
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-primary);
}

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

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--transition-fast);
}

.post-content a:hover {
  text-decoration-color: var(--brand-primary);
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-tags li a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--code-bg);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-primary);
  transition: all var(--transition-fast);
}

.post-tags li a:hover {
  background: var(--brand-primary);
  color: white;
}

/* ============================================
   Table of Contents
   ============================================ */
.toc {
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-title::before {
  content: '📑';
}

.inner {
  border-left: 2px solid var(--brand-primary);
  padding-left: 1rem;
}

.inner a {
  display: block;
  padding: 0.25rem 0;
  color: var(--secondary);
  transition: all var(--transition-fast);
}

.inner a:hover {
  color: var(--brand-primary);
  transform: translateX(4px);
}

/* ============================================
   Code Blocks
   ============================================ */
.chroma {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  box-shadow: var(--shadow-md);
}

code:not(.chroma code) {
  background: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--brand-primary);
}

/* Copy button */
.copy-code {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: white;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.copy-code:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Buttons
   ============================================ */
.btn,
button[type="submit"],
.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--brand-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn:hover,
button[type="submit"]:hover,
.form-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn:active,
button[type="submit"]:active,
.form-button:active {
  transform: translateY(0);
}

/* ============================================
   Forms
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--theme);
  color: var(--primary);
  transition: all var(--transition-fast);
}

input:focus,
textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

/* ============================================
   Hero Section - Enhanced
   ============================================ */
.hero-section {
  background: var(--brand-gradient);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius-2xl);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

.hero-section h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}

.hero-section p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--brand-primary);
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-lg);
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.hero-cta::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.hero-cta:hover::after {
  transform: translateX(4px);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--theme);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ============================================
   Feature Grid
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--theme);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Category Pills
   ============================================ */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
  justify-content: center;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--theme);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.category-pill:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-pill .emoji {
  font-size: 1.1rem;
}

/* ============================================
   Popular Posts - Enhanced
   ============================================ */
.popular-posts {
  background: var(--theme);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin: 2rem 0;
}

.popular-posts h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.popular-posts h3::before {
  content: '🔥';
}

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

.popular-posts-list li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.popular-posts-list li:last-child {
  border-bottom: none;
}

.popular-posts-list li:hover {
  padding-left: 0.5rem;
}

.popular-posts-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: block;
  transition: color var(--transition-fast);
}

.popular-posts-list a:hover {
  color: var(--brand-primary);
}

/* ============================================
   Tag Cloud - Enhanced
   ============================================ */
.tag-cloud {
  background: var(--theme);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin: 2rem 0;
}

.tag-cloud h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.tag-cloud h3::before {
  content: '🏷️';
}

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

.tag-cloud-item {
  background: var(--code-bg);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.tag-cloud-item:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
}

.tag-cloud-item .count {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 0.3rem;
}

/* ============================================
   Newsletter Box - Enhanced
   ============================================ */
.newsletter-box {
  background: var(--brand-gradient);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  margin: 2rem 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '✉️';
  position: absolute;
  font-size: 8rem;
  opacity: 0.1;
  right: -1rem;
  top: -1rem;
}

.newsletter-box h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
  position: relative;
}

.newsletter-box p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
  font-size: 1.05rem;
  position: relative;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 450px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  background: white;
  color: #333;
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  border: 2px solid white;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.newsletter-form button:hover {
  background: white;
  color: var(--brand-primary);
  transform: translateY(-2px);
}

/* ============================================
   Homepage Widgets Grid
   ============================================ */
.home-widgets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.home-widgets-grid .popular-posts,
.home-widgets-grid .tag-cloud {
  margin: 0;
  height: fit-content;
}

@media (max-width: 768px) {
  .home-widgets-grid {
    grid-template-columns: 1fr;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid transparent;
  border-image: var(--brand-gradient) 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   Reading Progress Bar
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--brand-gradient);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--brand-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ============================================
   Related/Latest Articles
   ============================================ */
.custom-section,
.custom-section-alt {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--theme);
}

.custom-section-alt {
  background: var(--code-bg);
}

.custom-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-primary);
}

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

.custom-list-item {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.custom-list-item:last-child {
  border-bottom: none;
}

.custom-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.custom-link:hover {
  color: var(--brand-primary);
}

.custom-date {
  color: var(--secondary);
  font-size: 0.85rem;
}

.custom-more {
  margin-top: 1rem;
  text-align: right;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--brand-primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination a {
  padding: 0.75rem 1.5rem;
  background: var(--theme);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.pagination a:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: white;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--secondary);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.footer a {
  color: var(--brand-primary);
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
  padding: 1.5rem;
  background: var(--code-bg);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-align: center;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.sidebar a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--theme);
  border-radius: var(--radius-full);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.sidebar a:hover {
  background: var(--brand-primary);
  color: white;
}

/* ============================================
   Mermaid Diagrams
   ============================================ */
.mermaid {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

/* ============================================
   Dark Mode Adjustments
   ============================================ */
.dark {
  --shadow-glow: 0 0 20px rgb(99 102 241 / 0.5);
}

.dark .hero-section::before {
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.dark .chroma {
  background: #0d1117;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .reading-progress,
  .back-to-top,
  .newsletter-box,
  .sidebar {
    display: none;
  }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
/* ============================================
   Articles Grid Layout
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.articles-grid .first-entry {
  grid-column: 1 / -1;
}

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

.recent-articles {
  margin-top: 2rem;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
  .post-single {
    padding: 1.25rem;
  }

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

  .newsletter-box {
    padding: 1.5rem;
  }

  .newsletter-form input[type="email"] {
    min-width: 100%;
  }

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

  .category-pills {
    gap: 0.5rem;
  }

  .category-pill {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}
