/* Single Post Page Styles */
.sp-main {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Hero Section - Title Only */
.sp-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(33, 176, 243, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(27, 74, 128, 0.3) 0%, transparent 55%);
  pointer-events: none;
}

.sp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.sp-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 2px;
  line-height: 1.1;
  margin: 0;
  color: #fff;
}

/* Content Section with Sidebar */
.sp-content-section {
  padding: 60px 0 80px;
}

.sp-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}

.sp-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

.sp-main-content {
  min-width: 0;
}

.sp-featured-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sp-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-article {
  background: var(--white);
  border-radius: 16px;
  padding: 50px;
  box-shadow: var(--sh);
  margin-bottom: 30px;
}

.sp-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.sp-content h1,
.sp-content h2,
.sp-content h3,
.sp-content h4,
.sp-content h5,
.sp-content h6 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--dark);
  margin-top: 32px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.sp-content h1 { font-size: 36px; }
.sp-content h2 { font-size: 30px; }
.sp-content h3 { font-size: 26px; }
.sp-content h4 { font-size: 22px; }

.sp-content p {
  margin-bottom: 20px;
}

.sp-content a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.sp-content a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.sp-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
  box-shadow: var(--sh);
}

.sp-content ul,
.sp-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.sp-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.sp-content blockquote {
  border-left: 4px solid var(--sky);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--muted);
  font-size: 18px;
}

.sp-content code {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--navy);
}

.sp-content pre {
  background: var(--dark);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

.sp-content pre code {
  background: none;
  padding: 0;
  color: #fff;
}

/* Tags */
.sp-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.sp-tags-label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.sp-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--sky-lt);
  color: var(--navy);
  text-decoration: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sp-tag:hover {
  background: var(--sky);
  color: #fff;
  transform: translateY(-2px);
}

/* Share Section */
.sp-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.sp-share-label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.sp-share-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-share-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sp-share-link:hover {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(33, 176, 243, 0.3);
}

/* Author Bio */
.sp-author-bio {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--sh);
  margin-bottom: 30px;
  align-items: flex-start;
}

.sp-author-avatar {
  flex-shrink: 0;
}

.sp-author-avatar img {
  border-radius: 50%;
  border: 3px solid var(--sky);
}

.sp-author-info {
  flex: 1;
}

.sp-author-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--dark);
  margin: 0 0 8px;
}

.sp-author-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Navigation */
.sp-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.sp-nav-previous,
.sp-nav-next {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--sh);
  transition: all 0.3s ease;
}

.sp-nav-previous:hover,
.sp-nav-next:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-h);
}

.sp-nav-previous a,
.sp-nav-next a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sp-nav-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}

.sp-nav-title {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--dark);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.sp-nav-next {
  text-align: right;
}

/* Sidebar */
.sp-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sp-sidebar-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--sh);
  margin-bottom: 24px;
}

.sp-sidebar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--dark);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sky);
}

.sp-share-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.sp-share-link {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sp-share-link:hover {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(33, 176, 243, 0.3);
}

/* Related Posts List in Sidebar */
.sp-related-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-related-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sp-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sp-related-image {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
}

.sp-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sp-related-item:hover .sp-related-img {
  transform: scale(1.1);
}

.sp-related-content {
  flex: 1;
  min-width: 0;
}

.sp-related-post-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin: 0 0 6px;
  line-height: 1.3;
}

.sp-related-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sp-related-post-title a:hover {
  color: var(--sky);
}

.sp-related-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 968px) {
  .sp-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sp-sidebar {
    position: static;
  }

  .sp-related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .sp-related-item {
    flex-direction: column;
    border-bottom: none;
  }

  .sp-related-image {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .sp-hero {
    padding: 60px 0 40px;
  }

  .sp-article {
    padding: 30px 24px;
  }

  .sp-content {
    font-size: 16px;
  }

  .sp-navigation {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sp-nav-next {
    text-align: left;
  }

  .sp-author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sp-related-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .sp-hero {
    padding: 40px 0 30px;
  }

  .sp-article {
    padding: 24px 20px;
  }

  .sp-content {
    font-size: 15px;
  }

  .sp-title {
    font-size: 28px;
  }
}