/* Comments Component */
.comments-header {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    padding: 0.75rem 0 0.5rem;
    border-top: 1px solid #eee;
}

.comment-new-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.comment-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    font-family: inherit;
}

.comment-input:focus {
    outline: none;
    border-color: var(--thingvalla-primary, #0057ff);
}

.btn-comment-submit {
    background: var(--thingvalla-primary, #0057ff);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
}

.btn-comment-submit:disabled {
    opacity: 0.5;
}

.btn-comment-cancel {
    background: none;
    border: none;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.comment {
    padding: 0.625rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-reply {
    padding-left: 1.5rem;
    border-left: 2px solid #e0e0e0;
    margin-left: 0.5rem;
    border-bottom: none;
    padding-bottom: 0.25rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.comment-user {
    font-size: 0.85rem;
    color: #1b2434;
}

.comment-time {
    font-size: 0.75rem;
    color: #999;
}

.comment-text {
    font-size: 0.875rem;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
}

.comment-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.comment-action-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
}

.comment-action-btn:hover {
    color: var(--thingvalla-primary, #0057ff);
}

.comment-delete-btn:hover {
    color: #dc3545;
}

.comment-reply-form {
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.comment-reply-form .comment-input {
    min-height: 36px;
    font-size: 0.8rem;
}

.comment-form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.comment-form-actions .btn-comment-submit {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

.comments-error {
    color: #999;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Dark theme override when comments are inside the hunt feed */
.feed-comments-section .comments-header {
    color: rgba(255,255,255,0.7);
    border-top-color: rgba(255,255,255,0.1);
    font-size: 0.85rem;
    padding: 0.5rem 0 0.25rem;
}

.feed-comments-section .comment-input {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
    min-height: 36px;
    font-size: 0.8rem;
}

.feed-comments-section .comment-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.feed-comments-section .comment-user { color: rgba(255,255,255,0.9); }
.feed-comments-section .comment-text { color: rgba(255,255,255,0.75); font-size: 0.8rem; }
.feed-comments-section .comment-time { color: rgba(255,255,255,0.4); }
.feed-comments-section .comment { border-bottom-color: rgba(255,255,255,0.06); }
.feed-comments-section .comment-reply { border-left-color: rgba(255,255,255,0.15); }
.feed-comments-section .comment-action-btn { color: rgba(255,255,255,0.4); }
.feed-comments-section .comment-action-btn:hover { color: rgba(255,255,255,0.8); }
.feed-comments-section .btn-comment-cancel { color: rgba(255,255,255,0.5); }
.feed-comments-section .comments-list { max-height: 180px; }
.feed-comments-section .comments-error { color: rgba(255,255,255,0.4); }
