/**
 * GeoFotos - Comments Styles
 * Styles for comments in Feed and Map panels
 */

/* Feed Comments Section */
.feed-comments-section {}

.btn-toggle-comments {
    background: none;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    background: #2264ad;
}

.btn-toggle-comments:hover {
    background: #5899e1;
}

.comments-count {
    font-weight: bold;
    color: #ffffff;
}

.comments-container {
    margin-top: 10px;
    padding: 0 10px;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.comment-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

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

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* comment-content removed - using flex-col structure */

.comment-header {
    margin-bottom: 2px;
    gap: 10px;
}

.comment-author {
    font-size: 12px;
    color: #333;
    padding-left: 0;
}

.comment-header .comment-author {
    color: #eee;
    padding-left: 0;
}

.comment-date {
    font-size: 10px;
    color: #999;
}

.comment-text {
    font-size: 12px;
    color: #eee;
    line-height: 1.4;
    word-wrap: break-word;
}

.comment-text p {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.comment-form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    gap: 0.75rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    resize: vertical;
    font-family: inherit;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.submit-comment-btn {
    margin-top: 8px;
    padding: 6px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.submit-comment-btn:hover {
    background: #005a87;
}

/* Map Panel Comments */
#geofotos-detail-panel .comments-list {
    max-height: 200px;
    overflow-y: auto;
}

#geofotos-detail-panel .comment-item {
    padding: 8px 0;
}

#geofotos-detail-panel .comment-avatar {
    width: 28px;
    height: 28px;
}

#geofotos-detail-panel .comment-author {
    font-size: 11px;
    padding-left: 0;
}

#geofotos-detail-panel .comment-date {
    font-size: 9px;
}

#geofotos-detail-panel .comment-text {
    font-size: 11px;
}

#geofotos-detail-panel .comment-form textarea {
    font-size: 11px;
    min-height: 50px;
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
}

#geofotos-detail-panel .comment-form textarea::placeholder {
    color: #64748b;
}

#geofotos-detail-panel .submit-comment-btn {
    font-size: 11px;
    padding: 5px 12px;
}

/* No comments message */
.no-comments {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* Custom scrollbar for comments list */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Loading state */
.comments-loading {
    text-align: center;
    padding: 10px;
    color: #999;
    font-size: 12px;
}