/* Publication Detail Page Styles */
.pub-detail-section {
  padding: 2rem 0 4rem;
  animation: fadeIn 0.5s ease-out;
}

/* Sidebar Styling */
.sidebar-sticky {
  position: sticky;
  top: 2rem;
}

.category-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.category-header {
  background: var(--secondary-color) !important;
  color: white;
  padding: 1.25rem;
  font-weight: 700;
  border: none;
}

.category-list .list-group-item {
  border: none;
  padding: 1rem 1.25rem;
  font-weight: 500;
  color: #4a5568;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-list .list-group-item:hover {
  background-color: #f8fafc;
  color: var(--primary-color);
  padding-left: 1.5rem;
}

.category-list .list-group-item.active {
  background-color: #f1f5f9 !important;
  color: var(--primary-color) !important;
  font-weight: 700;
  border-left: 4px solid var(--primary-color);
}

/* Main Content Styling */
.pub-header {
  margin-bottom: 2rem;
}

.breadcrumb-custom {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-custom .breadcrumb-item a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-custom .breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.detail-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background: white;
}

.detail-header {
  padding: 2rem 2.5rem 1.5rem;
  background: white;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
}

.detail-type-badge {
  background: var(--secondary-color);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.detail-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.detail-date {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-body {
  padding: 2.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background-color: #f1f5f9;
  border-radius: 12px;
}

.info-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.info-value {
  display: block;
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 600;
}

/* Action Buttons */
.action-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-premium {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-primary {
  background-color: var(--primary-color);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb, 46, 125, 50), 0.3);
}

.btn-premium-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb, 46, 125, 50), 0.4);
  background-color: var(--primary-hover, #24622b);
  color: white;
}

.btn-premium-outline {
  background-color: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-premium-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Share Card */
.share-card {
  background-color: #f1f5f9;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.share-text {
  font-weight: 700;
  color: #475569;
  margin: 0;
  font-size: 0.95rem;
}

.share-btn-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--primary-color);
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  cursor: pointer;
}

.share-btn-circle:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* Related Publications */
.related-section {
  margin-top: 3rem;
}

.related-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--secondary-color);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-item {
  background: white;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.related-item:hover {
  border-color: var(--primary-color);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.related-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.related-item-meta {
  font-size: 0.85rem;
  color: #64748b;
}

.related-item-icon {
  color: #cbd5e1;
  transition: color 0.2s;
}

.related-item:hover .related-item-icon {
  color: var(--primary-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .detail-header {
    padding: 1.5rem;
  }
  .detail-body {
    padding: 1.5rem;
  }
  .detail-title {
    font-size: 1.4rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .share-card {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
