/* @멘션 자동완성 드롭다운 스타일 */
.mention-autocomplete-container {
    position: relative;
}

.mention-autocomplete-list {
    position: absolute;
    z-index: 1050; /* Bootstrap의 드롭다운 z-index와 유사하게 설정 */
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin-top: 2px;
    padding: 0;
    list-style: none;
    display: none; /* 기본적으로 숨김 */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.mention-autocomplete-list li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.mention-autocomplete-list li:last-child {
    border-bottom: none;
}

.mention-autocomplete-list li:hover,
.mention-autocomplete-list li.active {
    background-color: #e9ecef;
}

.mention-autocomplete-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
}

.mention-autocomplete-nickname {
    font-weight: 500;
}

/* Mention Dropdown Header */
.mention-autocomplete-list .mention-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    cursor: default;
}

.mention-autocomplete-list .mention-header:hover {
    background-color: transparent;
}

/* Highlighted search term in dropdown */
.mention-autocomplete-list li strong {
    font-weight: 700;
    color: #0d6efd;
}

/* Rendered mention chip in comment body */
.mention-chip {
    display: inline-block;
    padding: 1px 6px;
    background-color: #e9ecef;
    border-radius: 10px;
    font-weight: 500;
    color: #0d6efd;
    text-decoration: none;
    cursor: pointer;
}

.mention-chip:hover {
    background-color: #dee2e6;
    color: #0056b3;
}

/* Highlight for new comments using a heartbeat bounce effect */
@keyframes heartbeat-bounce {
  0%, 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  5%, 15%, 25%, 35%, 45%, 55%, 65%, 75% {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
  }
}

.comment.new-comment-highlight .comment-wrapper {
  animation: heartbeat-bounce 6s ease-in-out;
}

/* Highlight for new posts */
.highlight-new-post.post-creation-highlight {
    animation: heartbeat-bounce 6s ease-in-out;
}

/* Fix for long text overflow in post view */
.post-title,
.post-content {
    overflow-wrap: break-word;
    word-wrap: break-word; /* Legacy fallback */
    word-break: break-word; /* For very long unbreakable strings */
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.post-content::after {
    content: '';
    display: block;
    clear: both;
}

.quill-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: 0.5rem;
}

.quill-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
