/* CWO Esoteric Comment System CSS */

/* Comment Section Styling */
.comment-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
    border-top: 4px solid var(--primary);
}

.comment-section h2 {
    font-family: 'Coolvetica', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: normal;
}

/* Comment Form */
.comment-form-container {
    background: rgba(178, 34, 34, 0.02);
    border: 1px solid rgba(178, 34, 34, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.submit-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 15px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(178, 34, 34, 0.3);
    filter: brightness(1.05);
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    background: rgba(178, 34, 34, 0.05);
    border: 2px dashed rgba(178, 34, 34, 0.2);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.login-prompt a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.login-prompt a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Comments Controls */
.comments-controls {
    margin: 20px 0;
    padding: 20px;
    background-color: var(--light);
    border-radius: 8px;
    border: 1px solid rgba(178, 34, 34, 0.1);
}

.comments-controls .row {
    align-items: end;
}

.comments-controls label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: var(--dark);
}

.comments-controls select {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    background: white;
    color: var(--dark);
}

.comments-controls select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.1);
}

/* Comment Items */
.comment-thread {
    margin-bottom: 25px;
    border-left: 3px solid rgba(178, 34, 34, 0.1);
    padding-left: 15px;
}

.comment-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.comment-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(178, 34, 34, 0.2);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f4;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    margin-right: 12px;
    border: 2px solid rgba(178, 34, 34, 0.1);
}

.user-details .username {
    font-weight: 600;
    color: var(--primary);
    margin-right: 8px;
}

.user-details .full-name {
    color: #6c757d;
    font-size: 0.9rem;
}

.comment-date {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Comment Content */
.comment-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--dark);
}

/* Comment Actions */
.comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}

.vote-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vote-button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
}

.vote-button:hover {
    background-color: rgba(178, 34, 34, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.vote-button.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Comment Reactions */
.comment-reactions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.reaction-buttons {
    display: flex;
    gap: 5px;
}

.reaction-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.reaction-btn:hover {
    background-color: rgba(178, 34, 34, 0.1);
    transform: scale(1.1);
    border-color: var(--primary);
}

.reaction-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.reaction-counts {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.reaction-count {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Comment Controls */
.comment-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-controls button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    color: #6c757d;
}

.comment-controls button:hover {
    background-color: rgba(178, 34, 34, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Reply Form */
.reply-form-container {
    margin-top: 15px;
    padding: 15px;
    background: rgba(178, 34, 34, 0.02);
    border: 1px solid rgba(178, 34, 34, 0.1);
    border-radius: 6px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.form-buttons button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.cancel-reply {
    background: #6c757d;
    color: white;
    border: none;
}

.cancel-reply:hover {
    background: #5a6268;
}

.submit-reply {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.submit-reply:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Replies */
.replies-container {
    margin-left: 30px;
    border-left: 2px solid rgba(178, 34, 34, 0.1);
    padding-left: 20px;
}

.reply-item {
    background: rgba(178, 34, 34, 0.02);
    border: 1px solid rgba(178, 34, 34, 0.1);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
}

/* Star Rating */
.user-rating-section {
    background: white;
    border: 2px solid rgba(178, 34, 34, 0.1);
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}

.star-rating {
    display: inline-flex;
    gap: 5px;
    cursor: pointer;
}

.star-rating .star {
    font-size: 28px;
    color: #ddd;
    transition: color 0.2s;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #FFD700;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .comment-section {
        padding: 20px;
        margin-top: 20px;
    }
    
    .comment-item {
        padding: 15px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .comment-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .vote-actions,
    .comment-reactions,
    .comment-controls {
        justify-content: center;
    }
    
    .replies-container {
        margin-left: 15px;
        padding-left: 15px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .comment-section {
        padding: 15px;
    }
    
    .user-rating-section {
        padding: 20px;
    }
    
    .star-rating .star {
        font-size: 24px;
    }
    
    .replies-container {
        margin-left: 10px;
        padding-left: 10px;
    }
}