/* Thoughts Feed - Timeline Styles */
.thoughts-container {
  max-width: 100%;
  margin: 0;
  padding: 1.5rem 0;
}

.thoughts-container h1 {
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.thoughts-intro {
  color: var(--code-color-11);
  margin-bottom: 2rem;
}

/* Stats */
.thoughts-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.thoughts-stat-card {
  background: var(--background-color);
  border: 1px dashed var(--code-color-18);
  padding: 1rem;
  text-align: center;
}

.thoughts-stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--link-color);
  line-height: 1.2;
}

.thoughts-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--code-color-11);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Timeline */
.thoughts-timeline {
  position: relative;
  padding-left: 2rem;
}

.thoughts-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed var(--code-color-18);
}

/* Day group */
.thoughts-day {
  position: relative;
  margin-bottom: 1.5rem;
}

.thoughts-day-header {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--code-color-5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0;
}

.thoughts-day-header::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px dashed var(--code-color-18);
  background: var(--background-color);
}

/* Individual thought entry */
.thought-entry {
  position: relative;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--code-color-18);
  background: var(--background-color);
}

.thought-entry::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 1rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--code-color-18);
}

.thought-content {
  color: var(--text-color);
  line-height: 1.5;
  margin: 0;
}

.thought-time {
  display: block;
  font-size: 0.75rem;
  color: var(--code-color-11);
  margin-top: 0.4rem;
}

.thought-time-relative {
  cursor: help;
}

/* Loading */
.thoughts-loading {
  text-align: center;
  padding: 2rem;
  color: var(--code-color-11);
}

/* Homepage preview - mini timeline */
.thoughts-preview {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.thoughts-preview::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed var(--code-color-18);
}

.thoughts-preview-entry {
  position: relative;
  margin-bottom: 0.6rem;
  padding: 0.4rem 0.6rem;
  border: 1px dashed var(--code-color-18);
  font-size: 0.85rem;
}

.thoughts-preview-entry::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 0.7rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--code-color-18);
}

.thoughts-preview-content {
  color: var(--text-color);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thoughts-preview-time {
  font-size: 0.7rem;
  color: var(--code-color-11);
  margin-top: 0.2rem;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .thoughts-timeline {
    padding-left: 1.5rem;
  }

  .thoughts-day-header::before {
    left: -1.5rem;
    width: 7px;
    height: 7px;
  }

  .thought-entry::before {
    left: -1.15rem;
  }
}

@media (max-width: 480px) {
  .thoughts-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .thoughts-stat-value {
    font-size: 1.4rem;
  }
}
