/* Blog-specific styles */

/* Notification styles */
.notification {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease;
}

.notification.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.notification.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

/* Navigation link styles */
.nav-link {
  position: relative;
  color: #4b5563;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #f59e0b);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Cool button styles */
.cool-button {
  position: relative;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.cool-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
  color: white;
}

/* Blog card hover effects */
.blog-card {
  transition: all 0.3s ease;
}

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

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #f59e0b);
  z-index: 100;
  transition: width 0.1s ease;
}

/* Image zoom on hover */
.blog-article img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2563eb, #7c3aed);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1d4ed8, #6d28d9);
}

/* Print styles */
@media print {
  .nav-link::after,
  .cool-button,
  nav,
  footer,
  .author-badge {
    display: none;
  }

  .blog-article {
    font-size: 12pt;
    color: black;
  }

  .blog-article pre {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb;
  }

  .blog-article pre code {
    color: #1f2937 !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-article {
    font-size: 1rem;
    line-height: 1.75;
  }

  .blog-article h1 {
    font-size: 1.875rem;
  }

  .blog-article h2 {
    font-size: 1.5rem;
  }

  .blog-article pre {
    padding: 1rem;
    font-size: 0.875rem;
  }
}
