.single-post {
  background: #fff;
  min-height: 100vh;
}

.single-post__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.single-post__header {
  margin: 0 0 2.4rem;
}

.single-post__title {
  font-size: clamp(2.3rem, 5.2vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 1.1rem;
  background: linear-gradient(90deg, #1f2937 0%, #374151 45%, #111827 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.single-post__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.single-post__badge {
  background: linear-gradient(90deg, #6366f1 0%, #0ea5e9 100%);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
}
.single-post__badge:hover {
  text-decoration: none;
  color: #fff;
}

.single-post__date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.single-post__read-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.single-post__excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4b5563;
  font-style: italic;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 3px solid #e5e7eb;
}

.single-post__featured-image {
  margin: 2rem 0 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

.single-post__featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post__content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
}

.single-post__content p {
  margin-bottom: 1.5rem;
}

.single-post__content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: #111827;
}

.single-post__content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
  color: #111827;
}

.single-post__content ul,
.single-post__content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.single-post__content li {
  margin-bottom: 0.5rem;
}

.single-post__content blockquote {
  background: #f8fafc;
  border-left: 4px solid #6366f1;
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.single-post__content code {
  background: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.9em;
  color: #1e293b;
}

.single-post__content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.single-post__content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.single-post__navigation {
  margin-top: 3.5rem;
  text-align: center;
}

.single-post__back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(115deg, #6366f1 0%, #5b5ff0 22%, #5458ee 44%, #4e53eb 66%, #3759f0 82%, #0ea5e9 100%);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: 56px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.55s cubic-bezier(0.16, 0.8, 0.24, 1);
  box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  background-size: 180% 180%;
  background-position: 40% 50%;
}
.single-post__back-button:hover {
  text-decoration: none;
  color: #fff;
}

.single-post__back-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.15) 100%);
  mix-blend-mode: overlay;
  opacity: 0.4;
  transition: opacity 0.8s, transform 1.2s;
  transform: translateX(-8%);
}

.single-post__back-button:hover::before {
  transform: translateX(40%);
}

.single-post__back-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.65), 0 0 0 6px rgba(99, 102, 241, 0.25);
}

.single-post__back-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .single-post__container {
    padding: 2rem 1.5rem 3rem;
  }
  .single-post__title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .single-post__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .single-post__content {
    font-size: 1rem;
  }
  .single-post__back-button {
    width: 100%;
    justify-content: center;
  }
}
