/* Reading Progress Bar */
#readingProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Post Container (Clean inside .container) */
.post-layout-container {
  max-width: 1600px;
  margin: 0.5rem auto 4rem;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Breadcrumbs */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .post-breadcrumb {
    margin-bottom: 2rem;
  }
}

.post-breadcrumb a {
  color: var(--muted-foreground);
  transition: color 0.15s;
}

.post-breadcrumb a:hover {
  color: var(--foreground);
}

.post-breadcrumb-current {
  color: var(--foreground);
  font-weight: 500;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .post-breadcrumb-current {
    max-width: 450px;
  }
}

/* 2-Column Grid Layout */
.post-2col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .post-2col-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
    justify-content: center;
  }
}

@media (min-width: 1280px) {
  .post-2col-layout {
    grid-template-columns: minmax(0, 1080px) minmax(320px, 360px);
    gap: clamp(2rem, 3vw, 3rem);
  }
}

/* Left Main Content Column */
.post-main-column {
  min-width: 0; /* Prevent flex/grid overflow */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Post Header */
.post-header {
  margin-bottom: 1.75rem;
}

.post-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-cat-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--foreground);
  color: var(--background);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.15s;
}

.post-cat-badge:hover {
  opacity: 0.9;
}

.post-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  font-size: 0.725rem;
  font-weight: 600;
  color: #fff;
}

.post-main-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
  color: var(--foreground);
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .post-main-title {
    font-size: 2.25rem;
    line-height: 1.25;
  }
}

@media (min-width: 1024px) {
  .post-main-title {
    font-size: 2.65rem;
  }
}

@media (max-width: 480px) {
  .post-main-title {
    font-size: 1.35rem;
  }
}

/* Author & Share Bar */
.post-author-share-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .post-author-share-bar {
    flex-direction: row;
    align-items: center;
    padding: 1.25rem 0;
    margin-bottom: 2.25rem;
  }
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .post-author-avatar {
    width: 44px;
    height: 44px;
  }
}

.post-author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.post-author-role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.post-share-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}

.share-action-btn:hover {
  background-color: var(--foreground);
  color: var(--background);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-action-btn svg {
  width: 15px;
  height: 15px;
}
