/* Reddit Embed Component Styles */

.reddit-embed {
  background: #ffffff;
  border: 1px solid #edeff1;
  border-radius: 8px;
  margin: 1.5rem 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.reddit-embed.dark {
  background: #1a1a1b;
  border-color: #343536;
}

/* Post Header (for full_post variant) */
.reddit-post-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #edeff1;
}

.reddit-embed.dark .reddit-post-header {
  border-color: #343536;
}

.reddit-post-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #787c7e;
  margin-bottom: 0.5rem;
}

.reddit-embed.dark .reddit-post-meta {
  color: #818384;
}

.reddit-subreddit {
  color: #1c1c1c;
  font-weight: 600;
  text-decoration: none;
}

.reddit-subreddit:hover {
  text-decoration: underline;
}

.reddit-embed.dark .reddit-subreddit {
  color: #d7dadc;
}

.reddit-dot {
  color: #787c7e;
}

.reddit-poster,
.reddit-poster a {
  color: #787c7e;
  text-decoration: none;
}

.reddit-poster a:hover {
  text-decoration: underline;
}

.reddit-embed.dark .reddit-poster,
.reddit-embed.dark .reddit-poster a {
  color: #818384;
}

.reddit-post-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1c1c1c;
  margin: 0;
  line-height: 1.4;
}

.reddit-embed.dark .reddit-post-title {
  color: #d7dadc;
}

/* Comment Section */
.reddit-comment {
  display: flex;
  padding: 0.75rem 1rem;
}

/* Vote Column */
.reddit-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.75rem;
  padding-top: 0.25rem;
}

.reddit-upvote-icon {
  width: 20px;
  height: 20px;
  fill: #ff4500;
}

.reddit-upvote-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff4500;
}

.reddit-vote-placeholder {
  width: 20px;
  height: 20px;
}

/* Comment Content */
.reddit-comment-content {
  flex: 1;
  min-width: 0;
}

.reddit-comment-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #787c7e;
  margin-bottom: 0.5rem;
}

.reddit-embed.dark .reddit-comment-meta {
  color: #818384;
}

.reddit-commenter {
  color: #1c1c1c;
  font-weight: 500;
  text-decoration: none;
}

.reddit-commenter:hover {
  text-decoration: underline;
}

.reddit-embed.dark .reddit-commenter {
  color: #d7dadc;
}

.reddit-comment-date {
  color: #787c7e;
}

.reddit-embed.dark .reddit-comment-date {
  color: #818384;
}

.reddit-comment-text {
  font-size: 0.938rem;
  line-height: 1.5;
  color: #1c1c1c;
  margin: 0 0 0.75rem 0;
  word-wrap: break-word;
}

.reddit-embed.dark .reddit-comment-text {
  color: #d7dadc;
}

.reddit-comment-text strong {
  font-weight: 600;
}

.reddit-comment-text em {
  font-style: italic;
}

/* CTA Button */
.reddit-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.813rem;
  font-weight: 500;
  color: #0079d3;
  text-decoration: none;
  transition: color 0.15s ease;
}

.reddit-cta:hover {
  color: #ff4500;
}

.reddit-cta svg {
  width: 14px;
  height: 14px;
}

.reddit-embed.dark .reddit-cta {
  color: #4fbcff;
}

.reddit-embed.dark .reddit-cta:hover {
  color: #ff4500;
}

/* Reddit Badge */
.reddit-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: #f6f7f8;
  border-top: 1px solid #edeff1;
  font-size: 0.75rem;
  color: #787c7e;
}

.reddit-embed.dark .reddit-badge {
  background: #272729;
  border-color: #343536;
  color: #818384;
}

/* Comment-only variant adjustments */
.reddit-embed.comment-only .reddit-comment {
  padding-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .reddit-embed {
    margin: 1rem 0;
  }
  
  .reddit-post-title {
    font-size: 1rem;
  }
  
  .reddit-comment-text {
    font-size: 0.875rem;
  }
}
