/* Article Detail Styles */

.blog-post {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.blog-post header {
  margin-bottom: 40px;
}

.blog-post h1 {
  margin-bottom: 20px;
}

.meta {
  color: #666;
  margin: 20px 0;
  font-size: 14px;
}

.categories, .tags {
  margin-top: 10px;
}

.content {
  line-height: 1.8;
  margin: 40px 0;
}

.content img {
  max-width: 100%;
  height: auto;
}

.location {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
}

.comments-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #eee;
}

.comments-list {
  margin: 30px 0;
}

.comment {
  background: #f9f9f9;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  border-left: 4px solid #007acc;
}

.comment-like-of {
  border-left-color: #e91e63;
}

.comment-repost-of {
  border-left-color: #10b981;
}

.comment-in-reply-to {
  border-left-color: #f59e0b;
}

.comment-meta {
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.comment-type {
  margin: 0 10px;
  padding: 2px 8px;
  background: #e0e0e0;
  border-radius: 4px;
  font-size: 12px;
}

.comment-content {
  margin: 15px 0;
  line-height: 1.6;
}

.comment-author-url {
  font-size: 14px;
  margin-top: 10px;
}

.comment-author-url a {
  color: #007acc;
  text-decoration: none;
}

.comment-author-url a:hover {
  text-decoration: underline;
}

/* === Kommentar-Styles === */

/* Initialen-Avatar Basis-Styles */
.komment-avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Webmentions Gruppen */
.webmentions-group {
  margin: 20px 0;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.webmentions-group h3 {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Facepile für Likes/Reposts */
.komments-likes-list,
.list-reposts,
.list-mentions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.webmention-facepile {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.webmention-avatar {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.webmention-avatar:hover {
  transform: scale(1.1);
}

.webmention-avatar img {
  width: 36px !important;
  height: 36px !important;
  object-fit: cover;
  border-radius: 50%;
}

.webmention-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1391a4;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

/* Reposts als Facepile */
.list-reposts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list-reposts > li {
  margin: 0;
}

.list-reposts .h-card {
  display: flex;
  align-items: center;
}

.list-reposts .u-photo,
.list-reposts .komment-avatar-initials,
.list-reposts img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  object-fit: cover;
}

.list-reposts .u-author,
.list-reposts .p-author {
  display: none;
}

.list-reposts .p-content,
.list-reposts footer {
  display: none;
}

.list-mentions .u-photo,
.list-mentions img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  object-fit: cover;
}

/* Reguläre Kommentare */
.list-comments {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.list-comments > li {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.list-comments > li:last-child {
  border-bottom: none;
}

.list-comments .h-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.list-comments .u-photo,
.list-comments .komment-avatar-initials,
.list-comments img.u-photo {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Override global img width for all comment avatars */
.comments-section img.u-photo,
.h-card img.u-photo {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  object-fit: cover;
}

.list-comments .u-author,
.list-comments .p-author {
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.list-comments .u-author:hover {
  text-decoration: underline;
}

.list-comments .p-content {
  margin: 8px 0;
  line-height: 1.6;
  color: #444;
}

.list-comments footer {
  font-size: 13px;
  color: #888;
  display: flex;
  gap: 16px;
}

.list-comments footer a {
  color: #888;
  text-decoration: none;
}

.list-comments footer a:hover {
  color: #333;
}

/* Nested Replies */
.list-comments ul {
  margin-left: 52px;
  padding-left: 0;
  border-left: 2px solid #eee;
}

.list-comments ul li {
  padding-left: 16px;
}

/* Mentions/Replies Liste */
.list-mentions > li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.list-mentions > li:last-child {
  border-bottom: none;
}

.list-mentions .h-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.list-mentions .komment-avatar-initials {
  width: 32px !important;
  height: 32px !important;
  font-size: 12px;
}

.list-mentions .u-author,
.list-mentions .p-author {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.list-mentions .p-content {
  margin: 6px 0;
  line-height: 1.5;
  color: #555;
  font-size: 14px;
}

.list-mentions footer {
  font-size: 12px;
  color: #999;
}

.list-mentions footer a {
  color: #999;
}

/* Kommentar-Formular */
#kommentform {
  margin-top: 30px;
}

#kommentform input,
#kommentform textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}

#kommentform textarea {
  min-height: 120px;
  resize: vertical;
}

#kommentform button {
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

#kommentform button:hover {
  background: #555;
}

.komment-privacy {
  font-size: 12px;
  color: #888;
  display: block;
  margin-top: 8px;
}