/* Aether Theme Custom CSS */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom prose styles for better readability */
.prose {
  max-width: none;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose h1 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.dark .prose h2 {
  border-color: #374151;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.prose img {
  border-radius: 0.5rem;
}

.prose a {
  color: #2563eb;
  text-decoration: none;
}

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

.dark .prose a {
  color: #60a5fa;
}

.prose blockquote {
  font-style: italic;
  border-left: 4px solid #d1d5db;
  padding-left: 1.5rem;
  margin-left: 0;
  margin-right: 0;
}

.dark .prose blockquote {
  border-color: #4b5563;
}

.prose code {
  font-family: 'Consolas', 'Monaco', 'Ubuntu Mono', monospace;
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.dark .prose code {
  background-color: #374151;
}

.prose pre {
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
}

.dark .prose pre {
  background-color: #1f2937;
}

.prose ol, .prose ul {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Article list animations */
article {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

article:hover {
  transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prose h1 {
    font-size: 2rem;
  }
  
  .prose h2 {
    font-size: 1.5rem;
  }
  
  header .text-3xl {
    font-size: 1.875rem;
  }
  
  .pt-20 {
    padding-top: 5rem;
  }
}

/* Dark mode specific adjustments */
.dark body {
  background-color: #111827;
}

/* Loading animation for images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* 404 page styles */
.text-9xl {
  font-size: 8rem;
}

@media (max-width: 640px) {
  .text-9xl {
    font-size: 6rem;
  }
}

/* Random page button */
.inline-flex.items-center {
  display: inline-flex;
  align-items: center;
}

/* Reading mode styles */
.reading-mode {
  background-color: #ffffff;
  color: #000000;
}

.dark .reading-mode {
  background-color: #000000;
  color: #ffffff;
}

.reading-mode header {
  background-color: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #4b5563;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.dark .share-button {
  background-color: #1f2937;
  color: #9ca3af;
  border-color: #374151;
}

.share-button:hover {
  background-color: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
}

.share-button.whatsapp:hover {
  background-color: #25D366;
}

.share-button.facebook:hover {
  background-color: #1877F2;
}

.share-button.twitter:hover {
  background-color: #1DA1F2;
}

.share-button.linkedin:hover {
  background-color: #0A66C2;
}

.share-button.copy:hover {
  background-color: #10B981;
}

/* Post content padding */
.post-content {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .post-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .post-content {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Ensure max width for article content */
.article-container {
  max-width: 65ch; /* Optimal reading width */
  margin-left: auto;
  margin-right: auto;
}