/* Custom styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #6b21a8, #0e7490);
  z-index: 0;
}

/* Animation for content */
#main-content {
  animation: fadeIn 0.5s ease-in-out;
  position: relative;
  z-index: 10;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure footer stays visible */
footer {
  position: relative;
  z-index: 10;
}

/* High contrast text colors for better accessibility */
.text-high-contrast {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.text-medium-contrast {
  color: #f3f4f6 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}

.text-low-contrast {
  color: #e5e7eb !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

/* Enhanced background contrast */
.bg-enhanced-dark {
  background-color: rgba(24, 24, 27, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blog content styling with enhanced contrast */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  color: #ffffff !important;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.content h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: #A259FF !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.content h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  color: #00F6ED !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.content h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  color: #FF914D !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.content p {
  margin-bottom: 1.5rem;
  line-height: 1.75;
  color: #f3f4f6 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.content ul,
.content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #f3f4f6 !important;
}

.content li {
  margin-bottom: 0.5rem;
  color: #f3f4f6 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.content blockquote {
  border-left: 4px solid #A259FF;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #e5e7eb !important;
  background-color: rgba(162, 89, 255, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.content code {
  background-color: #1f2937;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #FFE156 !important;
  border: 1px solid #374151;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.content pre {
  background-color: #111827;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 2px solid #A259FF;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.content pre code {
  background-color: transparent;
  padding: 0;
  color: #f3f4f6 !important;
  text-shadow: none;
}

.content a {
  color: #00F6ED !important;
  text-decoration: underline;
  text-decoration-color: #00F6ED;
  text-underline-offset: 2px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.content a:hover {
  color: #FF914D !important;
  text-decoration-color: #FF914D;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.content strong {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.content em {
  color: #e5e7eb !important;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Filter button active state */
.filter-btn.active {
  background-color: #A259FF;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Enhanced contrast for navigation and UI elements */
nav a,
nav button {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .text-high-contrast,
  .text-medium-contrast,
  .text-low-contrast {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
  }
  
  .bg-enhanced-dark {
    background-color: #000000 !important;
    border: 2px solid #ffffff;
  }
  
  .content p,
  .content li,
  .content em {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
} 