/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE POST CUSTOM STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.post-single-custom {
  width: 100%;
  max-width: 100%;
}

/* Header with Cover */
.post-header-custom {
  position: relative;
  margin-bottom: 3rem;
}

.cover-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.4);
}

.cover-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(transparent, var(--bg-primary));
}

.header-content {
  position: relative;
  max-width: 1200px;
  margin: -100px auto 0;
  padding: 0 2rem;
  z-index: 10;
}

/* Breadcrumbs */
.breadcrumbs-custom {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumbs-custom a {
  color: var(--text-muted) !important;
  transition: color 0.3s ease;
}

.breadcrumbs-custom a:hover {
  color: var(--rci-residential) !important;
}

.breadcrumbs-custom .separator {
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumbs-custom .current {
  color: var(--rci-commercial);
}

/* Title */
.post-title-custom {
  font-family: var(--font-pixel) !important;
  font-size: clamp(0.9rem, 4vw, 1.4rem) !important;
  background: linear-gradient(135deg, var(--rci-residential) 0%, var(--rci-commercial) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Meta */
.post-meta-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-item svg {
  color: var(--rci-commercial);
}

/* Tags */
.post-tags-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  font-family: var(--font-mono) !important;
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary) !important;
  transition: all 0.3s ease;
}

.tag-link:hover {
  background: var(--rci-residential);
  border-color: var(--rci-residential);
  color: var(--bg-primary) !important;
}

/* Post Layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Main Content */
.post-content-custom {
  min-width: 0;
}

/* TOC */
.toc-custom {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc-custom summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.toc-custom summary::-webkit-details-marker {
  display: none;
}

.toc-title {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--rci-commercial);
}

.toc-toggle {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.toc-custom details[open] .toc-toggle {
  transform: rotate(180deg);
}

.toc-inner {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.toc-inner ul {
  padding-left: 1rem;
  margin: 0;
}

.toc-inner li {
  margin-bottom: 0.5rem;
}

.toc-inner a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary) !important;
}

.toc-inner a:hover {
  color: var(--rci-residential) !important;
}

/* Content Body */
.content-body {
  font-size: 1.05rem;
  line-height: 1.9;
}

.content-body h2 {
  margin-top: 3rem;
}

.content-body img {
  border-radius: 12px;
  margin: 2rem 0;
}

/* Share Section */
.share-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.share-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
}

.share-buttons-custom {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary) !important;
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-3px);
}

.share-btn.twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
  color: white !important;
  box-shadow: 0 5px 20px rgba(29, 161, 242, 0.3);
}

.share-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: white !important;
  box-shadow: 0 5px 20px rgba(24, 119, 242, 0.3);
}

.share-btn.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: white !important;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.share-btn.reddit:hover {
  background: #ff4500;
  border-color: #ff4500;
  color: white !important;
  box-shadow: 0 5px 20px rgba(255, 69, 0, 0.3);
}

.share-btn.telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: white !important;
  box-shadow: 0 5px 20px rgba(0, 136, 204, 0.3);
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-title {
  font-family: var(--font-pixel) !important;
  font-size: 0.6rem !important;
  color: var(--rci-commercial) !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color) !important;
}

.sidebar-title::before {
  display: none !important;
}

/* Author Card */
.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 2px solid var(--rci-residential);
}

.author-name {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.author-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Related Posts */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-list li {
  margin-bottom: 0.75rem;
}

.related-list li:last-child {
  margin-bottom: 0;
}

.related-list a {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.related-list a:hover {
  background: var(--bg-card);
  transform: translateX(5px);
}

.related-title {
  font-size: 0.85rem;
  color: var(--text-primary) !important;
  margin-bottom: 0.25rem;
}

.related-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Quick Links */
.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links li {
  margin-bottom: 0.5rem;
}

.quick-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary) !important;
  transition: color 0.3s ease;
}

.quick-links a:hover {
  color: var(--rci-residential) !important;
}

/* Post Navigation */
.post-nav-custom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
}

.nav-prev, .nav-next {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-prev:hover, .nav-next:hover {
  border-color: var(--rci-residential);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-title {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--text-primary) !important;
}

.nav-next {
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .sidebar-card {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .cover-container {
    height: 250px;
    border-radius: 0;
  }

  .header-content {
    margin-top: -60px;
    padding: 0 1rem;
  }

  .post-layout {
    padding: 0 1rem;
  }

  .post-nav-custom {
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .post-sidebar {
    grid-template-columns: 1fr;
  }
}
