/* ==========================================================================
   SINGLE POST STYLES
   ========================================================================== */

.single-post-main {
  padding: 40px 0 80px;
}

/* Back Link & Category Badge */
.single-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.back-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted, #666);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--text-main, #111);
}

.single-cat-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--accent-light, #f0f4f8);
  color: var(--accent-color, #ff5722);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  text-decoration: none;
}

/* Header */
.single-header {
  margin-bottom: 32px;
  max-width: 840px;
}

.single-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main, #111);
  margin: 0;
}

/* Featured Image */
.single-featured-img {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.single-featured-img img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.img-caption {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  background: #fafafa;
}

/* Content Area */
.single-content {
  max-width: 800px;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2c2c2c;
  margin-bottom: 48px;
}

.single-content p {
  margin-bottom: 24px;
}

.single-content h2, 
.single-content h3, 
.single-content h4 {
  color: #111;
  font-weight: 700;
  margin: 40px 0 16px;
  line-height: 1.3;
}

.single-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent-color, #ff5722);
  background-color: #f9f9f9;
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.single-content ul, 
.single-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.single-content li {
  margin-bottom: 8px;
}

/* Tags */
.single-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  margin-bottom: 60px;
  max-width: 800px;
}

.tags-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #666;
}

.tag-pill {
  padding: 4px 12px;
  background: #f1f1f1;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #444;
  text-decoration: none;
  transition: background 0.2s;
}

.tag-pill:hover {
  background: #e2e2e2;
}

/* Related Posts */
.related-posts-section {
  margin-bottom: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.related-posts-section h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.related-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-img img {
  transform: scale(1.04);
}

.related-card h4 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
}

/* SOS Box */
.single-sos-box {
  background-color: #0f172a;
  color: #fff;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  margin-top: 40px;
}

.single-sos-box h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #00e676;
  margin: 0 0 8px;
  letter-spacing: 2px;
}

.sos-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.sos-desc {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}