/**
 * VotingComments CSS
 */

.votingcomments-container {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.votingcomments-container h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* Voting Section */
.votingcomments-voting-section {
    margin-bottom: 30px;
}

.votingcomments-voting-section h4 {
    color: #555;
    margin-top: 20px;
}

/* Star Rating */
.votingcomments-star-voting {
    margin-bottom: 20px;
}

.star-rating-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.stars .star {
    font-size: 12px;
    color: #ddd;
    cursor: default;
}

.stars .star.filled {
    color: #ffc107;
}

.rating-info {
    font-size: 14px;
    color: #666;
}

.star-rating-input {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 5px;
}

.stars-input {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.star-input {
    font-size: 16px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-input:hover,
.star-input.hover {
    color: #ffc107;
}

/* Up/Down Voting */
.votingcomments-updown-voting {
    margin-bottom: 20px;
}

.updown-display {
    margin: 10px 0;
}

.updown-display .score {
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
    margin-right: 10px;
}

.votes-info {
    font-size: 14px;
    color: #666;
}

.updown-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.upvote-btn,
.downvote-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upvote-btn {
    background: #28a745;
    color: white;
}

.upvote-btn:hover {
    background: #218838;
}

.downvote-btn {
    background: #dc3545;
    color: white;
}

.downvote-btn:hover {
    background: #c82333;
}

.upvote-btn .arrow,
.downvote-btn .arrow {
    font-size: 20px;
}

/* Comments Section */
.votingcomments-comments-section {
    margin-top: 30px;
}

.comment-form-container {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 5px;
}

.comment-form-container h4 {
    margin-top: 0;
    color: #555;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.comment-form input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.comment-form textarea {
    resize: vertical;
}

.captcha-container {
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
}

#captcha-challenge label {
    font-size: 16px;
    margin-right: 10px;
}

#captcha-answer {
    width: 80px;
    padding: 8px;
}

.submit-comment-btn {
    padding: 12px 30px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-comment-btn:hover {
    background: #0056b3;
}

/* Comments List */
.comments-list {
    margin-top: 20px;
}

.no-comments {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

.comments-thread {
    margin: 10px 0;
}

.comment {
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 5px;
    border-left: 3px solid #007bff;
}

.comments-thread.level-1 .comment {
    margin-left: 30px;
    border-left-color: #28a745;
}

.comments-thread.level-2 .comment {
    margin-left: 60px;
    border-left-color: #ffc107;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: bold;
    color: #333;
    font-size: 10px;
}

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

.comment-body p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 9px;
}

.comment-actions {
    margin-top: 10px;
}

.reply-btn {
    padding: 5px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.reply-btn:hover {
    background: #0056b3;
}

.reply-indicator {
    padding: 10px;
    margin-bottom: 15px;
    background: #e7f3ff;
    border-left: 3px solid #007bff;
    border-radius: 3px;
    font-size: 10px;
}

.reply-indicator .cancel-reply {
    padding: 3px 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 9px;
    cursor: pointer;
    margin-left: 10px;
}

.reply-indicator .cancel-reply:hover {
    background: #c82333;
}

/* Login Required Message */
.login-required {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

/* Messages */
.votingcomments-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

.votingcomments-message.success {
    background: #28a745;
}

.votingcomments-message.error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
