/* ===========================================
   THOUGHTS SECTION
   =========================================== */

/* Thought Category Filter */
.thought-category-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 16px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.thought-category-filter::-webkit-scrollbar {
  display: none;
}

.thought-category-pill {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  padding: 8px;
  border-radius: 12px;
  border: none;
  background: #F1F3F6;
  color: #0F1B31;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: -0.28px;
  line-height: 1.3;
}

.thought-category-pill:hover {
  background: #E5E8EC;
}

.thought-category-pill.active {
  background: #006ECC;
  color: #ffffff;
}

/* Thought Cards Container */
.thoughts-list {
  display: flex;
  flex-direction: column;
}

/* Thought Card */
.thought-card {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f2f5;
  background: #ffffff;
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}

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

.thought-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thought-avatar .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.thought-body {
  flex: 1;
  min-width: 0;
}

.thought-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

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

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

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

.thought-date {
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: #4b5563;
}

.thought-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.thought-menu:hover {
  opacity: 1;
}

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

.thought-content {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 12px 0;
  word-wrap: break-word;
}

.thought-footer {
  display: flex;
  gap: 16px;
  align-items: center;
}

.thought-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.5;
}

.thought-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #DBE0E8;
  border-radius: 12px;
  padding: 6px;
}

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

.thoughts-placeholder h2 {
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  color: #0f1b31;
  margin: 0 0 8px 0;
}

.thoughts-placeholder p {
  font-family: inherit;
  font-size: 14px;
  color: #4b5563;
  margin: 0;
}

.thoughts-empty {
  padding: 60px 24px;
  text-align: center;
  color: #4b5563;
  font-family: inherit;
  font-size: 14px;
}

.thought-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.thought-card-link:hover .thought-card {
  border-color: #dbe0e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Thought Card Mobile - content below avatar row */
@media (max-width: 768px) {
  .thought-card {
    flex-wrap: wrap;
  }
  
  .thought-card .thought-avatar {
    flex-shrink: 0;
  }
  
  .thought-card .thought-body .thought-header {
    margin-bottom: 0;
  }
  
  .thought-card .thought-body .thought-content,
  .thought-card .thought-body .thought-footer {
    flex-basis: 100%;
  }
  
  .thought-card .thought-body {
    display: contents;
  }
  
  .thought-card .thought-body .thought-header {
    flex: 1;
    min-width: 0;
  }
  
  .thought-card .thought-body .thought-content {
    width: 100%;
    margin-top: 8px;
  }
  
  .thought-card .thought-body .thought-footer {
    width: 100%;
  }
}

/* Thought Detail Page Styles */
.thought-detail-page {
  background: #fbfcfd;
  min-height: 100vh;
  padding-top: 24px;
}

.thought-detail-header {
  width: 100%;
  height: 48px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.thought-back-button {
  width: 32px;
  height: 32px;
  border: 1px solid #dbe0e8;
  border-radius: 12px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0f1b31;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.thought-share-button {
  width: 32px;
  height: 32px;
  border: 1px solid #dbe0e8;
  border-radius: 12px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0f1b31;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.thought-back-button:hover,
.thought-share-button:hover {
  background: #f4f6f8;
}

.thought-header-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  color: #0f1b31;
  text-align: center;
}

.thought-detail-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0 24px;
}

.thought-detail-main {
  width: 620px;
  flex-shrink: 0;
}

.thought-detail-card {
  background: white;
  border: 1px solid #dbe0e8;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 23px;
  box-shadow: 0px 10px 5px 0px rgba(0,0,0,0.05);
}

.thought-detail-title {
  font-family: inherit;
  font-size: 28px;
  font-weight: 500;
  color: #0f1b31;
  line-height: 1.5;
  margin: 0 0 20px 0;
  max-width: 572px;
}

.thought-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.thought-detail-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.thought-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.thought-detail-author-info {
  display: flex;
  align-items: center;
  gap: 5px;
}

.thought-detail-author-name {
  font-family: inherit;
  font-size: 16px;
  font-weight: 590;
  color: #000000;
  line-height: 20px;
}

.thought-detail-flag {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.thought-detail-time {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #4b5563;
  line-height: 20px;
}

.thought-detail-content {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  line-height: 20px;
  margin-bottom: 40px;
  max-width: 572px;
}

.thought-detail-content p {
  margin: 0 0 16px 0;
}

.thought-detail-content p:last-child {
  margin-bottom: 0;
}

/* Quill editor classes for rich text content */
.thought-detail-content .ql-align-center {
  text-align: center;
}

.thought-detail-content .ql-align-right {
  text-align: right;
}

.thought-detail-content .ql-align-justify {
  text-align: justify;
}

.thought-detail-content .ql-direction-rtl {
  direction: rtl;
  text-align: right;
}

.thought-detail-content strong,
.thought-detail-content b {
  font-weight: 600;
}

.thought-detail-content em,
.thought-detail-content i {
  font-style: italic;
}

.thought-detail-content u {
  text-decoration: underline;
}

.thought-detail-content s {
  text-decoration: line-through;
}

.thought-detail-content blockquote {
  border-left: 4px solid #ccc;
  margin: 16px 0;
  padding-left: 16px;
  color: #666;
}

.thought-detail-content ul,
.thought-detail-content ol {
  margin: 8px 0;
  padding-left: 24px;
}

.thought-detail-content li {
  margin-bottom: 4px;
}

.thought-detail-content a {
  color: #2B88FB;
  text-decoration: underline;
}

.thought-detail-disclaimer {
  background: #f4f6f8;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.thought-detail-disclaimer p {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #0f1b31;
  line-height: 1.5;
  margin: 0;
}

.thought-detail-feedback {
  background: #f4f6f8;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thought-feedback-text {
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  color: #0f1b31;
}

.thought-feedback-buttons {
  display: flex;
  gap: 16px;
}

.thought-feedback-btn {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thought-feedback-btn:hover {
  opacity: 0.8;
}

.thought-feedback-btn svg rect {
  transition: fill 0.2s ease;
}

.thought-feedback-btn:hover svg rect {
  fill: #ced4dc;
}

.thought-detail-sidebar {
  width: 318px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-thoughts-sidebar {
  background: white;
  border: 1px solid #dbe0e8;
  border-radius: 24px;
  overflow: hidden;
}

.related-thoughts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #dbe0e8;
}

.related-thoughts-title {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #0f1b31;
  margin: 0;
}

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

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

.related-thoughts-empty {
  padding: 40px 20px;
  text-align: center;
  color: #4b5563;
  font-size: 14px;
}

.related-thought-item {
  display: block;
  position: relative;
  padding: 16px 20px;
  border-bottom: 1px solid #dbe0e8;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.related-thought-item.seo-hidden-thought {
  display: none;
}

.related-thought-item:last-child {
  border-bottom: none;
}

.related-thought-item:hover {
  background: #f9fafb;
}

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

.related-thought-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.related-thought-author {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  color: #0f1b31;
  line-height: 1.5;
}

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

.related-thought-excerpt {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #0f1b31;
  line-height: 1.6;
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.related-thought-excerpt.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.related-thought-item .see-more-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #3b82f6;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 8px;
}

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

.related-thought-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
  color: #4b5563;
}

.related-thought-stats svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 1024px) {
  .thought-detail-container {
    flex-direction: column;
    align-items: center;
  }
  
  .thought-detail-main {
    width: 100%;
    max-width: 620px;
  }
  
  .thought-detail-sidebar {
    width: 100%;
    max-width: 620px;
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .thought-detail-container {
    padding: 16px;
  }
  
  .thought-detail-main {
    width: 100%;
  }
  
  .thought-detail-sidebar {
    display: none;
  }
  
  .thought-detail-title {
    font-size: 22px;
  }
  
  .thought-detail-content {
    font-size: 15px;
  }
}

/* Popular Thoughts Sidebar Styles */
.popular-thoughts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popular-thought-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #dbe0e8;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.popular-thought-item:last-child {
  border-bottom: none;
}

.popular-thought-item:hover {
  background: #f9fafb;
}

.popular-thought-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.popular-thought-avatar .avatar-emoji {
  font-size: 20px;
}

.popular-thought-info {
  flex: 1;
  min-width: 0;
}

.popular-thought-author {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #0f1b31;
  display: block;
  margin-bottom: 4px;
}

.popular-thought-title {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #0f1b31;
  line-height: 1.4;
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.popular-thought-excerpt {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.4;
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.popular-thought-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 12px;
  color: #4b5563;
}

.popular-thought-stats .dot-separator {
  color: #4b5563;
}

.sidebar-empty {
  font-family: inherit;
  font-size: 14px;
  color: #4b5563;
  padding: 16px 0;
}

/* App Download Block Styles */
.app-download-block {
  background: white;
  border: 1px solid #dbe0e8;
  border-radius: 24px;
  padding: 15px;
  margin-bottom: 16px;
}

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

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

.fire-icon {
  width: 20px;
  height: 20px;
}

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

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

.qr-code-container {
  flex-shrink: 0;
}

.qr-code-image {
  width: 118px;
  height: 118px;
  border-radius: 8px;
}

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

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

.store-badge-link {
  display: block;
  transition: opacity 0.2s ease;
}

.store-badge-link:hover {
  opacity: 0.8;
}

.store-badge-link svg {
  display: block;
}

