/* =====================
   POST DETAIL PAGE
   ===================== */
.post-detail-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.post-detail-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.post-detail-main {
  flex: 1;
  max-width: 680px;
}

.post-detail-sidebar {
  width: 340px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Get App Banner */
.get-app-banner {
  background: white;
  border: 1px solid #dbe0e8;
  border-radius: 24px;
  padding: 15px;
}

.get-app-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.get-app-title {
  font-family: inherit;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  color: #0f1b31;
  line-height: 30px;
}

.get-app-fire {
  font-size: 20px;
}

.get-app-subtitle {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 12px 0;
  color: #4b5563;
  line-height: 1.4;
}

.get-app-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.get-app-qr {
  width: 118px;
  height: 118px;
  flex-shrink: 0;
}

.get-app-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.get-app-divider {
  width: 1px;
  height: 56px;
  background: #dbe0e8;
  flex-shrink: 0;
}

.get-app-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.store-badge {
  display: block;
  height: 40px;
}

.store-badge img {
  height: 40px;
  width: auto;
}

.store-badge-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000;
  border-radius: 6px;
  padding: 6px 12px;
  height: 40px;
  box-sizing: border-box;
}

.store-badge-fallback svg {
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  color: white;
}

.store-badge-label {
  font-size: 8px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.2;
}

.store-badge-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

/* Sidebar Footer */
.sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.sidebar-footer-links {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.sidebar-footer-links a {
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-footer-links a:hover {
  color: rgba(0, 0, 0, 0.85);
}

.footer-dot {
  color: rgba(0, 0, 0, 0.6);
}

.sidebar-footer-language {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.6);
}

.sidebar-footer-language:hover {
  color: rgba(0, 0, 0, 0.85);
}

.sidebar-footer-language svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.language-selector-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sidebar-footer-language-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.6);
}

.sidebar-footer-language-inline:hover {
  color: rgba(0, 0, 0, 0.85);
}

.language-selector-wrapper {
  position: relative;
  display: inline-block;
}

.language-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: 420px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  z-index: 100;
  margin-bottom: 8px;
}

.language-dropdown-fixed {
  max-height: min(420px, calc(100vh - 100px));
  overflow: hidden;
}

.language-dropdown-search {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
}

.language-search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 10px center no-repeat;
  color: #333;
  box-sizing: border-box;
}

.language-search-input:focus {
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.language-search-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.language-dropdown-list {
  overflow-y: auto;
  max-height: 340px;
  padding: 6px;
}

.language-dropdown-list::-webkit-scrollbar {
  width: 5px;
}

.language-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.language-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}

.language-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

.language-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
  gap: 12px;
  box-sizing: border-box;
}

.language-dropdown-item:hover {
  background: rgba(20, 184, 166, 0.08);
}

.language-dropdown-item:active {
  background: rgba(20, 184, 166, 0.14);
}

.language-dropdown-item .lang-name {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  flex: 1;
}

.language-dropdown-item .lang-native {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  text-align: right;
}

.language-dropdown-item .lang-code {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  min-width: 22px;
  flex-shrink: 0;
}

.language-dropdown-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.4);
}

.sidebar-footer-copyright {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: rgba(0, 0, 0, 0.6);
  margin: 8px 0 0 0;
}


.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 16px;
}

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

.breadcrumb-sep {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-black);
}

/* Unified Post Block - Contains both post and comments */
.unified-post-block {
  background: var(--bg-white);
  border: 1px solid var(--border-main);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0px 10px 5px 0px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Post Detail Card */
.post-detail-card {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
}

.post-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.post-detail-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.post-detail-avatar .avatar-emoji {
  font-size: 20px;
}

.post-detail-avatar .avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.post-detail-info {
  flex: 1;
  min-width: 0;
}

.post-detail-author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.post-author-name {
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  color: #0f1b31;
}

.author-flag {
  font-size: 16px;
}

.post-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-date-text {
  font-family: inherit;
  font-size: 14px;
  color: #3d4654;
}

.meta-separator {
  color: #3d4654;
  font-size: 12px;
}

.post-feeling-text {
  font-family: inherit;
  font-size: 14px;
  color: #3d4654;
}

.feeling-emoji {
  font-size: 14px;
  margin-left: 2px;
}

.post-options-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
}

.post-options-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.post-detail-content {
  margin-bottom: 16px;
}

.post-detail-content p {
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--text-black);
  margin: 0;
}

.post-audio-player {
  background: #F5F5F5;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.audio-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
}

.waveform-bar {
  width: 3px;
  background: #7C8696;
  border-radius: 2px;
}

.post-detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
}

.post-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.post-action-btn:hover {
  opacity: 0.7;
}

.share-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
}

.share-popup {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.share-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.share-popup-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0F1B31;
  margin: 0;
}

.share-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #7C8696;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-popup-close:hover {
  background: #f0f2f5;
  color: #0F1B31;
}

.share-popup-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.share-popup-link-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #E0E4EA;
  border-radius: 10px;
  font-size: 14px;
  color: #4b5563;
  background: #F8F9FA;
  outline: none;
  font-family: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-popup-link-input:focus {
  border-color: #7C5CFC;
}

.share-popup-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #00B87A;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.share-popup-copy-btn:hover {
  background: #009E68;
}

.action-count {
  font-family: inherit;
  font-size: 14px;
  color: #4b5563;
}

/* Comment Section - Inside unified block */
.comment-section {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

/* Private Advice Notice */
.private-advice-notice {
  background-color: #f4f6f8;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.private-advice-notice svg {
  flex-shrink: 0;
}

.private-advice-notice p {
  font-family: inherit;
  font-size: 14px;
  line-height: 21px;
  color: #4b5563;
  margin: 0;
}

.comment-list {
  flex: 1;
}

.no-comments-spacer {
  min-height: 100px;
}

.no-advice-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}

.no-advice-title {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-black);
  margin: 0 0 4px 0;
}

.no-advice-subtitle {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-gray);
  margin: 0;
}

.comment-header {
  margin-bottom: 20px;
}

.comment-title {
  font-family: inherit;
  font-weight: 600;
  font-size: 18px;
  color: #0f1b31;
  margin: 0;
}

.comment-list {
  display: flex;
  flex-direction: column;
}

.no-comments {
  text-align: center;
  padding: 32px 0;
  color: #4b5563;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 0 0 20px 0;
}

.comment-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
  flex-shrink: 0;
}

.comment-avatar-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-avatar-emoji {
  font-size: 18px;
}

.comment-line {
  width: 2px;
  flex: 1;
  background: #E5E7EB;
  margin-top: 8px;
  border-radius: 1px;
}

.comment-content-wrapper {
  flex: 1;
  min-width: 0;
}

.comment-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.comment-author-name {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  color: #0f1b31;
}

.comment-flag {
  font-size: 14px;
}

.comment-dot {
  color: #4b5563;
  font-size: 10px;
}

.comment-time {
  font-family: inherit;
  font-size: 13px;
  color: #4b5563;
}

.comment-text {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
  margin: 0 0 12px 0;
}

.comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vote-buttons {
  display: flex;
  align-items: center;
  background: #F5F6F8;
  border-radius: 20px;
  padding: 4px 8px;
  gap: 8px;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.vote-btn:hover {
  opacity: 0.7;
}

.vote-count {
  font-family: inherit;
  font-size: 13px;
  color: #006ECC;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.comment-action-text {
  font-family: inherit;
  font-size: 13px;
  color: #4b5563;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.vote-btn.vote-up {
  color: #4b5563;
}

.vote-btn.vote-up.has-votes,
.vote-btn.vote-up:hover {
  color: #006ECC;
}

.vote-btn.vote-down {
  color: #4b5563;
}

.vote-btn.vote-down.has-votes,
.vote-btn.vote-down:hover {
  color: #E53935;
}

.advice-section {
  padding: 0;
}

.advice-card {
  display: flex;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  position: relative;
}

.advice-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.advice-card.advice-reply {
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.advice-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.advice-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.advice-content-wrapper {
  flex: 1;
  min-width: 0;
}

.advice-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.advice-author {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #0F1B31;
}

.advice-flag {
  font-size: 14px;
  margin-left: 2px;
}

.advice-rank-badge {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
}

.advice-time {
  font-family: inherit;
  font-size: 13px;
  color: #545460;
  margin-left: 4px;
}

.advice-text {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #0F1B31;
  margin: 0 0 12px 0;
}

.advice-connector-straight {
  width: 1.5px;
  flex: 1;
  background: #E2E6ED;
  margin-top: 4px;
  border-radius: 1px;
}

.post-avatar-col.has-advice-line {
  margin-bottom: -26px;
  z-index: 1;
}

.post-advice-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.advice-separator {
  height: 1px;
  background: #E2E6ED;
  margin-left: 36px;
}

.advice-preview-content {
  padding: 8px 0 4px 48px;
  position: relative;
}

.advice-preview-content::before {
  content: '';
  position: absolute;
  left: 17.25px;
  top: -2px;
  width: 18px;
  height: 18px;
  border-bottom: 1.5px solid #E2E6ED;
  border-left: 1.5px solid #E2E6ED;
  border-top: none;
  border-right: none;
  border-bottom-left-radius: 14px;
}

.advice-preview-content p {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #0F1B31;
  line-height: 18.2px;
  letter-spacing: -0.28px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.advice-preview-content .advice-author {
  font-weight: 500;
  color: #0F1B31;
  letter-spacing: -0.28px;
}

.advice-preview-content .advice-flag {
  font-size: 14px;
  margin-left: 2px;
}

.view-all-advice {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  color: #666670;
  text-decoration: none;
  display: block;
  margin-top: 4px;
}

.view-all-advice:hover {
  text-decoration: underline;
}

.advice-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.advice-replies {
  margin-top: 16px;
  padding-left: 8px;
  border-left: 2px solid #E2E6ED;
}

[dir="rtl"] .advice-replies {
  padding-left: 0;
  padding-right: 8px;
  border-left: none;
  border-right: 2px solid #E2E6ED;
}

.best-advice-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 167, 120, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #00A778;
  margin-left: 4px;
}

.best-advice-badge span {
  font-size: 11px;
}

.rank-badge {
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.comment-item.best-advice {
  background: linear-gradient(135deg, #FFFDE7 0%, #FFF8E1 100%);
  border-radius: 12px;
  padding: 12px;
  margin: -12px;
  margin-bottom: 16px;
}

.comment-avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.replies-list {
  margin-top: 16px;
  padding-left: 20px;
  border-left: 2px solid #E5E7EB;
}

.reply-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.reply-item:last-child {
  margin-bottom: 0;
}

.reply-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reply-avatar-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reply-avatar-emoji {
  font-size: 14px;
}

.reply-avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.reply-line {
  width: 2px;
  flex: 1;
  background: #E5E7EB;
  margin-top: 8px;
}

.reply-content-wrapper {
  flex: 1;
}

.reply-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.reply-author-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-black);
}

.reply-flag {
  font-size: 12px;
}

.reply-dot {
  color: #7C8696;
  font-size: 10px;
}

.reply-time {
  font-size: 12px;
  color: #7C8696;
}

.reply-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-black);
  margin: 0;
}

.thoughts-placeholder {
  padding: 60px 24px;
  text-align: center;
}

.thoughts-placeholder h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 12px;
}

.thoughts-placeholder p {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.thoughts-placeholder .coming-soon {
  font-size: 14px;
  color: var(--primary);
  font-style: italic;
}

.comment-action-text:hover {
  color: #0f1b31;
}

/* Comment Input */
.comment-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  margin: 0 -24px -24px -24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-white);
}

.comment-input-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f1f3f6;
  border-radius: 50px;
  padding: 12px 16px;
  gap: 6px;
  height: 48px;
}

.comment-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.comment-input::placeholder {
  color: #4b5563;
}

.emoji-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.emoji-btn:hover {
  opacity: 0.7;
}

.post-btn {
  background: #2D7A8C;
  color: white;
  border: none;
  border-radius: 34px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-btn:hover {
  background: #256A7A;
}

/* Related Posts Sidebar */
.related-posts-section {
  background: var(--bg-white);
  border: 1px solid var(--border-main);
  border-radius: 24px;
  overflow: hidden;
  min-height: 500px;
  contain: style;
}

.related-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid var(--border-main);
}

.related-posts-title {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-black);
  margin: 0;
}

.related-posts-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-main);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-black);
  transition: all 0.2s ease;
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--bg-main);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-indicator {
  font-family: inherit;
  font-size: 12px;
  color: var(--text-gray);
}

.related-posts-list {
  padding: 0;
}

.related-post-card {
  padding: 16px 15px;
  border-bottom: 1px solid var(--border-main);
  display: block;
  transition: background 0.2s ease;
}

.related-post-card:last-child {
  border-bottom: none;
}

.related-post-card:hover {
  background: var(--bg-main);
}

.related-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.related-avatar {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E9F8EB;
}

.related-avatar .avatar-img-small {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.related-author {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-black);
}

.related-content {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-black);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-content.expanded {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  max-height: none;
}

.see-more-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 8px;
  cursor: pointer;
  display: inline-block;
}

.see-more-btn:hover {
  text-decoration: underline;
}

.related-content-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-content-link:hover .related-content {
  color: var(--primary);
}

.top-thought-title {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #0f1b31;
  margin: 0 0 8px 0;
}

.related-content-link:hover .top-thought-title {
  color: var(--primary);
}

.hidden-post {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
  pointer-events: none;
}

.seo-hidden-post {
  height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.related-stats {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.related-stat {
  color: var(--text-gray);
}

.stat-dot {
  color: var(--text-gray);
  margin: 0 4px;
}

/* Problem Summary */
.problem-summary {
  background: var(--bg-white);
  border: 1px solid var(--border-main);
  border-radius: 24px;
  padding: 15px;
}

.problem-summary-title {
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  color: #0f1b31;
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.problem-summary-content {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 1.25;
  margin-bottom: 16px;
}

.problem-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.problem-tag-heading {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  display: contents;
}

.problem-tag {
  background: #f4f6f8;
  border: 1px solid #f1f3f6;
  padding: 8px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  color: #0f1b31;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.problem-tag:hover {
  background: #e9ecef;
  border-color: #dbe0e8;
}

/* Tags Page */
.tags-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 16px;
}

.tags-page-title {
  font-size: 20px;
  font-weight: 600;
  color: #0f1b31;
  margin: 0;
}

.tags-page-count {
  font-size: 13px;
  color: #5C6370;
  font-weight: 400;
  margin-left: auto;
}

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  contain: style;
}

.tags-page-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4f6f8;
  border: 1px solid #f1f3f6;
  padding: 8px 14px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: #0f1b31;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tags-page-pill:hover {
  background: #e9ecef;
  border-color: #dbe0e8;
}

.tags-pill-name {
  color: #0f1b31;
}

.tags-pill-count {
  font-size: 11px;
  color: rgba(15, 27, 49, 0.4);
  background: rgba(15, 27, 49, 0.06);
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 500;
}

.tags-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 8px;
}

.tags-pagination-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #0f1b31;
  text-decoration: none;
  background: #f4f6f8;
  border: 1px solid #f1f3f6;
  transition: background 0.15s ease;
}

.tags-pagination-btn:hover {
  background: #e9ecef;
}

.tags-pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #0f1b31;
  text-decoration: none;
  transition: background 0.15s ease;
}

.tags-pagination-num:hover {
  background: #f4f6f8;
}

.tags-pagination-num.active {
  background: #0f1b31;
  color: #fff;
}

.tags-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 13px;
  color: rgba(15, 27, 49, 0.4);
}

/* Sidebar Tabs */
.sidebar-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-tab {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-gray);
  position: relative;
}

.sidebar-tab.active {
  color: var(--text-black);
  font-weight: 500;
}

.sidebar-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2B88FB;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-gray);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-black);
}

.empty-state p {
  font-size: 14px;
}

/* Loading State */
.loading-skeleton {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .post-detail-page {
    padding: 12px;
  }

  .post-detail-container {
    flex-direction: column;
  }

  .post-detail-main {
    max-width: 100%;
  }

  .post-detail-sidebar {
    display: none;
  }

  .thought-detail-container {
    flex-direction: column;
  }

  .thought-detail-sidebar {
    display: none;
  }
}

