/* Microblog Styles for Ubud Theme */

/* Distinctive styling for microblog posts */
.c-post-card--microblog {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem !important;
  position: relative !important;
  display: block !important;
}

/* Add a subtle accent to distinguish microblog posts */
.c-post-card--microblog::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #6c757d;
  border-radius: 12px 0 0 12px;
}

/* Hide title for microblog posts */
.c-post-card--microblog .c-post-card__title {
  display: none !important;
}

/* Hide excerpt for microblog posts */
.c-post-card--microblog .c-post-card__excerpt {
  display: none !important;
}

.c-post-card--microblog .c-post-card__content {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

/* Microblog content styling */
.c-post-content--micro {
  font-size: 1.125rem;
  line-height: 1.7;
}

.c-post-content--micro .c-content--micro {
  margin-bottom: 1rem;
}

.c-post-content--micro .c-content--micro p:last-child {
  margin-bottom: 0;
}

/* Microblog image styling */
.c-post-micro-image {
  margin: 1rem 0;
  max-width: 100%;
}

.c-post-micro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* External link indicator */
.c-external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 0.5rem;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.c-external-link:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Microblog metadata */
.c-post-card__meta--microblog {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6c757d;
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 1rem;
  order: -1;
}

/* Permalink icon */
.c-microblog-permalink {
  display: inline-flex;
  align-items: center;
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.c-microblog-permalink:hover {
  color: #333;
}

.c-microblog-permalink svg {
  width: 16px;
  height: 16px;
}

/* Actions container */
.c-post-card__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

/* Tags in microblog posts */
.c-post-card--microblog .c-tag {
  font-size: 0.75rem;
  color: #6c757d;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  background: rgba(108, 117, 125, 0.1);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.c-post-card--microblog .c-tag:hover {
  background: rgba(108, 117, 125, 0.2);
  color: #495057;
}

/* Remove link styling from microblog content area */
.c-post-content--micro a {
  color: inherit;
  text-decoration: underline;
}

/* Ensure proper rendering of all content types in microblog posts */
.c-content--micro img,
.c-content--micro video,
.c-content--micro iframe {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Ghost cards in microblog posts */
.c-content--micro .kg-card {
  margin: 1rem 0;
}

.c-content--micro .kg-image-card img {
  width: 100%;
  height: auto;
}

.c-content--micro .kg-gallery-card,
.c-content--micro .kg-embed-card {
  margin: 1.5rem 0;
}

/* Ensure embeds are responsive */
.c-content--micro .kg-embed-card > iframe {
  width: 100%;
}

/* Dedicated microblog page styles */
.c-post--microblog .c-post-footer--microblog {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  font-size: 0.875rem;
  color: #666;
}

.c-post--microblog .c-post-media--microblog {
  margin: 2rem 0;
}

.c-post--microblog .c-post-media--microblog img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}