/* Twitter-like Notes */
.note-box {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.note-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.note-date {
  font-size: 0.875rem;
  color: var(--accent-color);
}

.note-title {
  font-weight: bold;
}

.note-content {
  font-size: 1rem;
  line-height: 1.5;
}

/* Message Bubble Styling */
.message-timeline {
  width: 100%;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 0.5rem 0;
}

.message-bubble {
  --bubble-bg: #40c8c2;
  --bubble-text: #fff;
  --timestamp-color: #b66db6;
  max-width: 80%;
  background-color: var(--bubble-bg);
  color: var(--bubble-text);
  border-radius: 1.15rem;
  padding: 0.5rem 1rem;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments */
body.colorscheme-dark .message-bubble {
  --bubble-bg: #2daca6;
  --bubble-text: #fff;
  --timestamp-color: #ff47ff;
}

.message-bubble::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: -0.5rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--bubble-bg);
  border-bottom-left-radius: 0.9rem;
  z-index: -1;
}

.message-content {
  font-size: 1.5rem;
  line-height: 1.5;
}

.message-content p:first-child {
  margin-top: 0;
}

.message-content p:last-child {
  margin-bottom: 0;
  display: inline;
}

.message-timestamp {
  display: inline-block;
  font-size: 1.1rem;
  margin-left: 0.75rem;
  opacity: 0.9;
  color: var(--timestamp-color);
  vertical-align: baseline;
}

/* Futuristic Timeline Styling */
.futuristic-timeline {
  width: 100%;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.futuristic-post {
  --post-primary: #1e88e5;
  --post-secondary: #0d47a1;
  --post-bg: rgba(10, 25, 41, 0.05);
  --post-border: rgba(30, 136, 229, 0.2);
  --post-glow: rgba(30, 136, 229, 0.15);
  --post-text: #333;
  --post-text-secondary: #666;
  width: 100%;
  transition: all 0.3s ease;
}

/* Dark mode adjustments */
body.colorscheme-dark .futuristic-post {
  --post-primary: #64b5f6;
  --post-secondary: #42a5f5;
  --post-bg: rgba(10, 25, 50, 0.3);
  --post-border: rgba(100, 181, 246, 0.3);
  --post-glow: rgba(100, 181, 246, 0.2);
  --post-text: #e0e0e0;
  --post-text-secondary: #aaaaaa;
}

.futuristic-post-frame {
  background-color: var(--post-bg);
  border: 1px solid var(--post-border);
  border-radius: 12px;
  box-shadow: 0 0 15px var(--post-glow);
  overflow: hidden;
  position: relative;
}

.futuristic-post-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--post-primary),
      var(--post-secondary),
      var(--post-primary),
      transparent);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.futuristic-post:hover .futuristic-post-frame::before {
  opacity: 1;
  animation: scanline 2s linear infinite;
}

@keyframes scanline {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.futuristic-post-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--post-border);
  background-color: rgba(0, 0, 0, 0.02);
}

.futuristic-post-avatar {
  margin-right: 1rem;
}

.avatar-hexagon {
  position: relative;
  width: 45px;
  height: 45px;
  background-color: var(--post-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-content {
  font-weight: bold;
  color: white;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.futuristic-post-author {
  flex-grow: 1;
}

.futuristic-post-name {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--post-text);
}

.futuristic-post-metadata {
  display: flex;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--post-text-secondary);
}

.futuristic-post-timestamp {
  font-weight: 600;
}

.futuristic-post-divider {
  margin: 0 0.5rem;
  opacity: 0.7;
}

.futuristic-post-system {
  opacity: 0.7;
}

.futuristic-post-status-indicator {
  margin-left: auto;
}

.status-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--post-primary);
  box-shadow: 0 0 8px var(--post-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 0.5;
    transform: scale(0.95);
  }
}

.futuristic-post-body {
  padding: 1.5rem;
  color: var(--post-text);
  font-size: 1.15rem;
  line-height: 1.6;
}

.futuristic-post-content {
  position: relative;
}

.futuristic-post-content p:first-child {
  margin-top: 0;
}

.futuristic-post-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--post-border);
  display: flex;
  justify-content: flex-end;
  background-color: rgba(0, 0, 0, 0.02);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--post-text-secondary);
}

.post-stats {
  display: flex;
  gap: 1rem;
}

.post-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-stat i {
  color: var(--post-primary);
  font-size: 0.9rem;
}

/* Twitter-like styling for Thoughts page (keeping for backward compatibility) */
.twitter-timeline {
  max-width: 600px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tweet {
  background-color: var(--bg-color, #fff);
  border: 1px solid var(--border-color, #e1e8ed);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.tweet:hover {
  background-color: var(--hover-color, #f8f9fa);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tweet-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tweet-avatar {
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.tweet-author {
  display: flex;
  flex-direction: column;
}

.tweet-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.125rem;
  color: var(--text-color, #14171a);
}

.tweet-date {
  color: var(--accent-color, #f6059e);
  font-size: 0.9rem;
}

.tweet-body {
  font-size: 1.8rem;
  line-height: 1.4;
  color: var(--text-color, #14171a);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-left: 0.25rem;
}

/* Dark mode adjustments for tweets */
[data-theme="dark"] .tweet {
  border-color: #38444d;
}

[data-theme="dark"] .tweet:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .tweet-name {
  color: #fff;
}

[data-theme="dark"] .tweet-date {
  color: #8899a6;
}

[data-theme="dark"] .tweet-body {
  color: #fff;
}

/* Custom styles for Thoughts page intro */
.intro-paragraph {
  text-align: left;
  text-justify: none;
}