/* Comments System Styles */

/* Success/Error Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert i {
    margin-right: 8px;
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.comments-section .group-title h2 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

/* Comment Form */
.comment-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comment-form h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-form .theme-btn {
    background: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form .theme-btn:hover {
    background: #0056b3;
}

/* Comments List */
.comments-list {
    margin-top: 20px;
}

.comment {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-content {
    position: relative;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.comment-header .date {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.comment-text {
    line-height: 1.6;
    color: #555;
}

.comment-text p {
    margin: 0;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Recent Comments Widget */
.recent-comments .comment-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.recent-comments .comment-item:last-child {
    border-bottom: none;
}

.recent-comments .comment-text p {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #555;
}

.recent-comments .comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 11px;
}

.recent-comments .author {
    font-weight: 600;
    color: #333;
}

.recent-comments .date {
    color: #999;
}

.recent-comments .post-link a {
    font-size: 11px;
    color: #007bff;
    text-decoration: none;
}

.recent-comments .post-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comment-form {
        padding: 20px;
    }
    
    .comment {
        padding: 15px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-header .date {
        margin-top: 5px;
    }
}
