/* Comments and Replies Styling */
.comments-section {
    margin-top: 1rem;
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    display: none;
}

.comment-item {
    margin-bottom: 1rem;
}

.comment-content {
    width: 100%;
}

.comment-text {
    margin-bottom: 0.25rem;
}

.comment-actions {
    font-size: 0.875rem;
}

.comment-actions a {
    color: var(--bs-gray-600);
    text-decoration: none;
}

/* Base comment section */
.comment-section {
    margin-bottom: 1rem;
}

/* Replies section */
.replies-section {
    margin-top: 0.5rem;
    padding-left: 2.5rem;
}

/* Comment form */
.comment-form {
    margin-top: 1rem;
}

.comment-form-container {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.comment-form-container textarea {
    resize: none;
    min-height: 38px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.comment-form-container textarea:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Reply form */
.reply-form {
    margin: 0.5rem 0;
    padding-left: 2.5rem;
}

.reply-form-container {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.reply-form-container textarea {
    resize: none;
    min-height: 38px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.reply-form-container textarea:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Reply items */
.reply-item {
    margin-bottom: 1rem;
    padding-right: 1rem;
}

.nested-reply {
    margin-left: 2.5rem;
    padding-left: 1rem;
    border-left: 2px solid #dee2e6;
}

/* Load more button */
.load-more-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    color: #6c757d;
    text-decoration: none;
    border-top: 1px solid #dee2e6;
    margin-top: 0.5rem;
}

.load-more-btn:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

/* Reply actions */
.reply-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

.reply-item:hover .reply-actions {
    opacity: 1;
}

/* Reaction menu */
.reaction-menu {
    position: relative;
    display: inline-block;
}

.reaction-menu .main-reaction {
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

.reaction-options {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.reaction-menu:hover .reaction-options {
    display: flex;
}

.reaction-option {
    padding: 0.5rem;
    margin: 0 0.25rem;
    border: none;
    background: none;
    transition: transform 0.2s;
    font-size: 1.25rem;
}

.reaction-option:hover {
    transform: scale(1.2);
}

.reaction-count {
    font-size: 0.875rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

/* Reaction colors */
.reaction-option[data-type="like"] { color: #1976d2; }
.reaction-option[data-type="love"] { color: #e91e63; }
.reaction-option[data-type="haha"] { color: #ffc107; }
.reaction-option[data-type="wow"] { color: #ff9800; }
.reaction-option[data-type="sad"] { color: #9e9e9e; }

.main-reaction.active[data-type="like"] { color: #1976d2; border-color: #1976d2; }
.main-reaction.active[data-type="love"] { color: #e91e63; border-color: #e91e63; }
.main-reaction.active[data-type="haha"] { color: #ffc107; border-color: #ffc107; }
.main-reaction.active[data-type="wow"] { color: #ff9800; border-color: #ff9800; }
.main-reaction.active[data-type="sad"] { color: #9e9e9e; border-color: #9e9e9e; }

/* Avatar sizes */
.avatar-sm {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.avatar-md {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

/* Reaction Styles */
.reactions-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.reaction-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reaction-group:hover {
    background: #eee;
    transform: scale(1.05);
}

.reaction-icon {
    font-size: 14px;
    line-height: 1;
}

.reaction-count {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.reaction-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 1rem;
    margin-right: 0.5rem;
}

.reaction-btn.active {
    background-color: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
}

.reaction-btn .reaction-count {
    margin-left: 0.25rem;
    font-weight: 500;
}

.load-more-replies {
    font-size: 0.875rem;
    color: var(--bs-primary);
    text-decoration: none;
    cursor: pointer;
}

.load-more-replies:hover {
    text-decoration: underline;
}

.reply-form .form-control {
    font-size: 0.875rem;
}

.reply-form textarea,
.comment-form textarea {
    resize: none;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    min-height: 38px;
}

.reply-form textarea:focus,
.comment-form textarea:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.reply-form .btn {
    font-size: 0.875rem;
}

.replies-list {
    margin-bottom: 1rem;
}
