/* =============================
   TEKIZZ BLOG DETAIL — UPGRADED
   ============================= */

/* Blog Hero Section */
.blog-hero {
  position: relative;
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(1400px 1000px at 90% -10%, rgba(147, 51, 234, 0.2), transparent 50%),
    radial-gradient(1000px 800px at -10% 30%, rgba(65, 105, 225, 0.18), transparent 40%),
    radial-gradient(800px 600px at 50% 100%, rgba(220, 38, 127, 0.12), transparent 50%),
    linear-gradient(180deg, #0d1221 0%, #141929 100%);
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), 
    var(--cover, none);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Floating Orbs Animation */
.blog-hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: linear-gradient(135deg, rgba(65, 105, 225, 0.08), rgba(147, 51, 234, 0.08));
  border-radius: 50%;
  filter: blur(60px);
  animation: float 20s ease-in-out infinite;
  z-index: 0;
}

/*@keyframes float {*/
/*  0%, 100% { transform: translateY(0px) rotate(0deg); }*/
/*  33% { transform: translateY(-40px) rotate(8deg); }*/
/*  66% { transform: translateY(25px) rotate(-5deg); }*/
/*}*/

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -100px 140px rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.blog-hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(20px);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-hero .pill i {
  color: #4169e1;
  font-size: 16px;
}

.blog-hero .blog-title {
  margin: 1.5rem 0 1rem;
  color: white;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.blog-hero .blog-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2rem;
}

.blog-hero .blog-meta i {
  color: #4169e1;
  margin-right: 6px;
}

.blog-hero .blog-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.blog-hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  text-decoration: none;
}

.blog-hero .btn-primary {
  background: linear-gradient(135deg, #4169e1 0%, #9333ea 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
}

.blog-hero .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(65, 105, 225, 0.5);
}

.blog-hero .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* Article Section */
#article.section {
  background: 
    radial-gradient(1200px 800px at 20% 50%, rgba(65, 105, 225, 0.05), transparent 40%),
    radial-gradient(800px 600px at 80% 80%, rgba(147, 51, 234, 0.05), transparent 40%),
    linear-gradient(180deg, #0d1221 0%, #141929 100%);
  position: relative;
  padding: 4rem 0;
}

.article {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.article-lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.article-body.prose {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.8;
}

.prose h2,
.prose h3,
.prose h4 {
  color: white;
  margin: 2.5rem 0 1rem;
  font-weight: 700;
  position: relative;
}

.prose h2 {
  font-size: 2rem;
  background: linear-gradient(135deg, #4169e1, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose h3 {
  font-size: 1.5rem;
  color: white;
}

.prose h4 {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose img {
  max-width: 100%;
  border-radius: 16px;
  margin: 2.5rem 0;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(65, 105, 225, 0.1);
  transition: transform 0.3s ease;
}

.prose img:hover {
  transform: scale(1.02);
}

.prose blockquote {
  border-left: 4px solid #4169e1;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: rgba(65, 105, 225, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(65, 105, 225, 0.2);
  position: relative;
}

.prose blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: #4169e1;
  opacity: 0.3;
  font-family: serif;
}

.prose ul,
.prose ol {
  margin: 2rem 0;
  padding-left: 2rem;
}

.prose li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.prose table th,
.prose table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  text-align: left;
}

.prose table th {
  background: linear-gradient(135deg, rgba(65, 105, 225, 0.15), rgba(147, 51, 234, 0.15));
  color: white;
  font-weight: 600;
}

.prose pre {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.prose a {
  color: #4169e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: #9333ea;
  text-decoration: underline;
}

/* Article Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-share span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  margin-right: 0.5rem;
}

.article-share .share-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.article-share .share-btn:hover {
  background: linear-gradient(135deg, #4169e1, #9333ea);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4);
}

.article-share .share-btn i {
  font-size: 20px;
}

/* Article Navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  color: rgba(255, 255, 255, 0.8);
  flex: 1;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 500;
}

.article-nav .nav-link:hover {
  background: linear-gradient(135deg, #4169e1, #9333ea);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4);
}

.article-nav .nav-link i {
  color: #4169e1;
  font-size: 20px;
  transition: color 0.3s ease;
}

.article-nav .nav-link:hover i {
  color: white;
}

.article-nav .nav-link.prev i {
  order: -1;
}

.article-nav .nav-link.next {
  justify-content: flex-end;
}

/* Related Posts Section */
.section-header {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-header .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-header .pill i {
  color: #4169e1;
}

.section-header h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4169e1 0%, #9333ea 50%, #dc267f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header .lead {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.post-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(65, 105, 225, 0.3), rgba(147, 51, 234, 0.3), rgba(220, 38, 127, 0.3));
  mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
  mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card:hover {
  transform: translateY(-12px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 8px 32px rgba(65, 105, 225, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.post-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #4169e1, #9333ea);
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-media img {
  transform: scale(1.08);
}

.post-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.2) 60%, 
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.post-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #4169e1, #9333ea);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.post-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
}

.post-meta i {
  color: #4169e1;
  margin-right: 4px;
}

.post-title {
  margin: 0;
  color: white;
  font-size: 1.25rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
}

.post-title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-title a:hover {
  background: linear-gradient(135deg, #4169e1, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-excerpt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-actions {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}

.post-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.post-actions .btn-ghost:hover {
  background: linear-gradient(135deg, #4169e1, #9333ea);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-hero {
    padding: clamp(4rem, 10vw, 6rem) 0 clamp(3rem, 8vw, 4rem);
  }
  
  .blog-hero .blog-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
  
  .blog-hero .blog-meta {
    gap: 1rem;
  }
  
  .blog-hero .blog-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .article-nav {
    flex-direction: column;
    align-items: stretch;
  }
  
  .article-nav .nav-link {
    justify-content: center;
  }
  
  .article-nav .nav-link.next {
    justify-content: center;
  }
  
  .prose table {
    font-size: 12px;
  }
  
  .article-lead {
    font-size: 1.125rem;
    padding: 1.5rem;
  }
  
  .post-content {
    padding: 1.5rem;
  }
  
  .blog-hero::after {
    display: none;
  }
}

@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/*.reveal.revealed {*/
/*  opacity: 1;*/
/*  transform: translateY(0);*/
/*}*/

/* Stagger animation delays */
/*.post-card:nth-child(1) { animation-delay: 0.1s; }*/
/*.post-card:nth-child(2) { animation-delay: 0.2s; }*/
/*.post-card:nth-child(3) { animation-delay: 0.3s; }*/

/*@media (prefers-reduced-motion: reduce) {*/
/*  .reveal,*/
/*  .post-card,*/
/*  .blog-hero::after {*/
/*    animation: none !important;*/
/*    transition: none !important;*/
/*  }*/
}