/**
 * Modern Comments Styles
 * 
 * @package HaberPro
 */

/* Comments Area */
.haberpro-modern-comments {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Comments Header */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.comments-icon {
    display: flex;
    align-items: center;
    color: #FF0000;
}

.comments-count {
    color: #FF0000;
    font-weight: 700;
}

/* Comments Sort */
.comments-sort {
    display: flex;
    gap: 0.5rem;
}

.comments-sort-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    color: #666;
}

.comments-sort-btn:hover {
    border-color: #FF0000;
    color: #FF0000;
}

.comments-sort-btn.active {
    background: #FF0000;
    border-color: #FF0000;
    color: #fff;
}

/* Comment List */
.modern-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-comment-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.2s;
}

.modern-comment-item:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment-wrapper {
    display: flex;
    gap: 1rem;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-author {
    font-weight: 600;
    font-style: normal;
    color: #333;
    font-size: 1rem;
}

.comment-author a {
    color: #333;
    text-decoration: none;
}

.comment-author a:hover {
    color: #FF0000;
}

.comment-author-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.comment-time {
    color: #666;
    text-decoration: none;
}

.comment-separator {
    color: #ccc;
}

.comment-permalink {
    color: #666;
    text-decoration: none;
}

.comment-permalink:hover {
    color: #FF0000;
}

.comment-text {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #444;
}

.comment-text p {
    margin-bottom: 0.75rem;
}

.comment-awaiting-moderation {
    margin-top: 0.5rem;
}

.moderation-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 0.875rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.comment-reply-link:hover {
    background: #FF0000;
    color: #fff;
}

.reply-icon {
    font-size: 1rem;
}

.comment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #666;
    transition: all 0.2s;
}

.comment-like-btn:hover {
    background: #e3f2fd;
    color: #1976d2;
}

.comment-like-btn.liked {
    background: #e3f2fd;
    color: #1976d2;
}

.like-icon {
    font-size: 1rem;
}

.like-count {
    font-weight: 600;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 3rem 2rem;
}

.no-comments-icon {
    margin-bottom: 1rem;
    color: #ccc;
}

.no-comments-text {
    font-size: 1.125rem;
    color: #666;
    margin: 0;
}

.comments-closed {
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 2rem;
}

.comments-closed .no-comments {
    color: #999;
    font-size: 1rem;
}

/* Modern Comment Form */
.haberpro-modern-comment-form {
    margin-top: 2rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-reply-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.reply-icon {
    font-size: 1.5rem;
}

.comment-notes {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.comment-form-privacy {
    font-size: 0.875rem;
    color: #666;
    margin-top: 1rem;
}

.comment-form-privacy a {
    color: #FF0000;
    text-decoration: none;
}

.comment-form-privacy a:hover {
    text-decoration: underline;
}

.haberpro-modern-comment-form .form-group {
    margin-bottom: 1.5rem;
}

.haberpro-modern-comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
}

.haberpro-modern-comment-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fff;
}

.haberpro-modern-comment-form .form-control:focus {
    outline: none;
    border-color: #FF0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.haberpro-modern-comment-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.haberpro-comment-submit {
    padding: 0.75rem 2rem;
    background: #FF0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.haberpro-comment-submit:hover {
    background: #cc0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
}

.haberpro-comment-submit:active {
    transform: translateY(0);
}

.haberpro-comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* JS Challenge */
.haberpro-js-challenge {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
}

.haberpro-js-challenge label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #856404;
}

.haberpro-js-challenge input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .haberpro-modern-comments {
        padding: 1rem;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .comments-sort {
        width: 100%;
        justify-content: flex-start;
    }
    
    .comment-wrapper {
        flex-direction: column;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-actions {
        flex-wrap: wrap;
    }
}

