/* Blog Content Styles - Compiled CSS without @apply */

.blog-content {
  color: #d1d5db;
  line-height: 1.625;
}

.blog-content > * {
  margin-bottom: 2rem;
}

.blog-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2rem;
  margin-top: 0;
  line-height: 1.2;
}

.blog-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  margin-top: 4rem;
  line-height: 1.25;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  margin-top: 3rem;
  line-height: 1.375;
}

.blog-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
  line-height: 1.625;
  font-size: 1.125rem;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
  gap: 0.75rem;
}

.blog-content ul {
  list-style-type: disc;
}

.blog-content ol {
  list-style-type: decimal;
}

.blog-content li {
  line-height: 1.625;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.blog-content li::marker {
  color: #60a5fa;
}

.blog-content ol li::marker {
  color: #60a5fa;
  font-weight: 700;
}

.blog-content a {
  color: #60a5fa;
  transition: color 0.15s;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-content a:hover {
  color: #93c5fd;
  text-decoration: none;
}

.blog-content strong {
  font-weight: 700;
  color: #ffffff;
}

.blog-content em {
  font-style: italic;
}

.blog-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin: 2.5rem 0;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.05), transparent);
  border-radius: 0 0.5rem 0.5rem 0;
}

.blog-content blockquote p {
  color: #d1d5db;
  font-style: italic;
  margin-bottom: 0;
  font-size: 1.25rem;
  line-height: 1.625;
}

.blog-content blockquote::before {
  content: '"';
  font-size: 3.75rem;
  color: rgba(59, 130, 246, 0.3);
  margin-left: -1rem;
  margin-top: -1rem;
  font-family: serif;
}

.blog-content code {
  background: rgba(31, 41, 55, 0.5);
  color: #93c5fd;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-family: monospace;
  border: 1px solid #374151;
}

.blog-content pre {
  background: #111827;
  border-radius: 1rem;
  padding: 2rem;
  overflow-x: auto;
  margin: 2.5rem 0;
  border: 1px solid #374151;
}

.blog-content pre code {
  background: transparent;
  padding: 0;
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.625;
}

.blog-content img {
  border-radius: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #374151;
}

.blog-content hr {
  border-color: #374151;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.blog-content table {
  width: 100%;
  margin-bottom: 2.5rem;
  border-collapse: collapse;
  border-radius: 0.75rem;
  overflow: hidden;
}

.blog-content th {
  background: linear-gradient(to right, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  color: #ffffff;
  font-weight: 700;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.blog-content td {
  padding: 1rem;
  border-bottom: 1px solid #374151;
}

.blog-content tr:nth-child(even) {
  background: rgba(17, 24, 39, 0.3);
}

.blog-content tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s;
}

.blog-card:hover::before {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.star {
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .group:hover {
    transform: none !important;
  }

  .group:hover img {
    transform: none !important;
  }

  .group:hover .group-hover\:scale-110 {
    transform: scale(1) !important;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  @keyframes twinkle {
    0%, 100% {
      opacity: 0.5;
    }
    50% {
      opacity: 0.5;
    }
  }
}

@media (max-width: 640px) {
  .blog-content h1 {
    font-size: 1.875rem;
  }

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

  .blog-content h3 {
    font-size: 1.25rem;
  }

  .blog-content p,
  .blog-content li {
    font-size: 1rem;
  }

  .blog-content blockquote {
    padding-left: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .blog-content blockquote p {
    font-size: 1.125rem;
  }

  .blog-content pre {
    padding: 1rem;
  }
}

.text-gradient {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-image: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
