/**
 * JSComment - Styles
 * Bootstrap 3.3.7 Compatible
 * Mobile Responsive
 */

.jscomment-widget {
    font-family: inherit;
    margin-bottom: 20px;
    max-width: 100%;
}

.jscomment-title {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.jscomment-form {
    margin-bottom: 20px;
}

.jscomment-input,
.jscomment-reply-input,
.jscomment-edit-input {
    resize: vertical;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
}

.jscomment-list {
    margin-top: 15px;
}

.jscomment-item {
    padding: 12px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.jscomment-item.jscomment-reply {
    margin-left: 40px;
    background-color: #fff;
    border-color: #e8e8e8;
}

.jscomment-replies {
    margin-top: 5px;
}

.jscomment-header {
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
}

.jscomment-username {
    color: #337ab7;
    word-break: break-word;
}

.jscomment-time {
    color: #999;
    font-size: 12px;
}

.jscomment-edited {
    color: #999;
    font-size: 11px;
    font-style: italic;
}

.jscomment-content {
    margin-bottom: 10px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.jscomment-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.jscomment-actions .btn {
    margin-right: 0;
}

.jscomment-actions .btn-link {
    padding: 0 5px;
}

.jscomment-like,
.jscomment-dislike {
    min-width: 50px;
}

.jscomment-like .glyphicon,
.jscomment-dislike .glyphicon {
    margin-right: 3px;
}

.jscomment-reply-form {
    margin: 10px 0 10px 40px;
    padding: 10px;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.jscomment-reply-btn,
.jscomment-edit-btn,
.jscomment-delete-btn {
    font-size: 12px;
}

.jscomment-delete-btn {
    color: #d9534f;
}

.jscomment-delete-btn:hover {
    color: #c9302c;
}

/* Loading state */
.jscomment-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* Error state */
.jscomment-error {
    padding: 10px;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Tablet */
@media (max-width: 768px) {
    .jscomment-item.jscomment-reply {
        margin-left: 25px;
    }

    .jscomment-reply-form {
        margin-left: 25px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .jscomment-item {
        padding: 10px;
    }

    .jscomment-item.jscomment-reply {
        margin-left: 15px;
    }

    .jscomment-reply-form {
        margin-left: 15px;
        padding: 8px;
    }

    .jscomment-header {
        font-size: 12px;
    }

    .jscomment-time {
        font-size: 11px;
    }

    .jscomment-actions {
        gap: 3px;
    }

    .jscomment-like,
    .jscomment-dislike {
        min-width: 45px;
        padding: 4px 8px;
        font-size: 12px;
    }

    .jscomment-actions .btn-link {
        padding: 2px 4px;
        font-size: 11px;
    }
}
