/* Custom Comments & Reactions Styling */
.custom-discussion-wrapper {
    background-color: #1a1a1b; /* Dark theme */
    color: #d1d5db;
    border-radius: 8px;
    padding: 24px;
    margin-top: 30px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reactions */
.reactions-container {
    text-align: center;
    margin-bottom: 40px;
}
.reactions-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}
.reactions-subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 20px;
}
.reaction-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.reaction-btn {
    background-color: #272729;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    cursor: pointer;
    transition: all 0.2s;
    color: #d1d5db;
}
.reaction-btn:hover {
    background-color: #3f3f46;
}
.reaction-btn.active {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}
.reaction-btn .emoji {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.reaction-btn .label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 4px;
    text-transform: capitalize;
}
.reaction-btn .count {
    font-weight: 700;
    font-size: 0.875rem;
    color: #ffffff;
}

/* Comments Section */
.comments-container {
    background-color: #1e1e20;
    border-radius: 8px;
    padding: 20px;
}
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3f3f46;
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.comments-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}

/* Sorting Buttons */
.comments-sorting {
    display: flex;
    background-color: #272729;
    border-radius: 4px;
    overflow: hidden;
}
.sort-btn {
    background: none;
    border: none;
    color: #9ca3af;
    padding: 6px 16px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.sort-btn:hover {
    color: #ffffff;
}
.sort-btn.active {
    background-color: #5865F2; /* Discord-like blue as in screenshot */
    color: #ffffff;
    font-weight: 500;
}

/* Comments List */
.comments-list {
    margin-bottom: 30px;
}
.empty-comments-message {
    text-align: center;
    color: #6b7280;
    padding: 20px 0;
    font-size: 0.875rem;
}
.comment-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-content-wrapper {
    flex: 1;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.comment-author {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}
.comment-date {
    font-size: 0.75rem;
    color: #6b7280;
}
.comment-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #d1d5db;
}
.comment-actions {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #9ca3af;
}
.comment-actions button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.comment-actions button:hover {
    color: #ffffff;
}

/* Input Area */
.comment-input-area {
    display: flex;
    gap: 16px;
    background-color: #272729;
    padding: 20px;
    border-radius: 8px;
}
.comment-user-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.comment-user-avatar .avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.change-avatar-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.75rem;
    cursor: pointer;
}
.change-avatar-btn:hover {
    color: #ffffff;
}
.comment-input-fields {
    flex: 1;
}
.comment-input-fields textarea {
    width: 100%;
    background-color: #1e1e20;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    padding: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 12px;
    font-family: inherit;
}
.comment-input-fields textarea:focus {
    outline: none;
    border-color: #5865F2;
}
.comment-form-actions {
    display: flex;
    justify-content: flex-end;
}
.submit-comment-btn {
    background-color: #5865F2;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}
.submit-comment-btn:hover {
    background-color: #4752c4;
}
