/* Modern Comments System - Clean & Beautiful Design */

/* ===== COMMENTS AREA ===== */
.comments-area {
    margin-top: 3rem;
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
    margin-top: 0;
    padding: 0;
    background: transparent;
}

.comments-section .comments-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.comments-section .comments-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comments-section .comments-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 400;
}

/* ===== COMMENTS HEADER ===== */
.comments-header {
    margin-bottom: 2rem;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin: 2rem;
}

.comments-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2rem 3rem;
    position: relative;
    display: inline-block;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* ===== COMMENT LIST ===== */
.comment-list {
    list-style: none;
    padding: 0 2rem 2rem;
    margin: 0;
}

.comment-list .comment {
    margin-bottom: 1.5rem;
    padding: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-list .comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Comment Depths */
.comment-list .comment.depth-1 {
    margin-left: 0;
}

.comment-list .comment.depth-2 {
    margin-left: 2rem;
    background: #f8fafc;
    border-left: 4px solid #667eea;
    border-radius: 10px;
}

.comment-list .comment.depth-3 {
    margin-left: 4rem;
    background: #f1f5f9;
    border-left: 4px solid #764ba2;
    border-radius: 10px;
}

/* ===== COMMENT BODY ===== */
.comment-body {
    position: relative;
    padding: 1.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.comment-avatar:hover {
    transform: scale(1.05);
}

.comment-meta {
    flex: 1;
}

.comment-meta .fn {
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.comment-meta .fn:hover {
    color: #667eea;
}

.comment-date {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.comment-date time {
    font-weight: 500;
}

/* ===== COMMENT CONTENT ===== */
.comment-content {
    margin: 1rem 0;
    line-height: 1.6;
    color: #4a5568;
    font-size: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* ===== COMMENT REPLY ===== */
.comment-reply {
    margin-top: 1rem;
    text-align: left;
}

.comment-reply a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.comment-reply a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ===== AWAITING MODERATION ===== */
.comment-awaiting-moderation {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* ===== COMMENT FORM ===== */
.comment-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin: 2rem;
}

.comment-form h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.comment-form h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.comment-form .required {
    color: #e53e3e;
    font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: none;
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.comment-notes {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1565c0;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* ===== COMMENT NAVIGATION ===== */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem;
    gap: 1rem;
}

.comment-navigation .nav-previous,
.comment-navigation .nav-next {
    flex: 1;
}

.comment-navigation a {
    display: block;
    padding: 0.8rem 1.5rem;
    background: white;
    color: #2d3748;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-navigation a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

/* ===== NO COMMENTS ===== */
.no-comments {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    margin: 2rem;
    font-size: 1rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .comments-area {
        margin-top: 2rem;
        border-radius: 10px;
    }
    
    .comments-section .comments-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .comments-section .comments-header h3 {
        font-size: 1.8rem;
    }
    
    .comment-list {
        padding: 0 1rem 1rem;
    }
    
    .comment-list .comment.depth-2 {
        margin-left: 1rem;
    }
    
    .comment-list .comment.depth-3 {
        margin-left: 2rem;
    }
    
    .comment-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .comment-navigation {
        flex-direction: column;
        margin: 1rem;
    }
    
    .comment-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .comment-avatar {
        width: 45px;
        height: 45px;
    }
    
    .comment-body {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .comments-section .comments-header h3 {
        font-size: 1.6rem;
    }
    
    .comment-list .comment.depth-2,
    .comment-list .comment.depth-3 {
        margin-left: 0.5rem;
    }
    
    .comment-form {
        padding: 1.2rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-list .comment {
    animation: fadeInUp 0.5s ease-out;
}

/* ===== LOADING STATES ===== */
.comment-form.loading .submit {
    opacity: 0.7;
    cursor: not-allowed;
}

.comment-form.loading .submit::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== FOCUS STATES ===== */
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .comment-list .comment,
    .comment-form,
    .comment-reply a,
    .comment-form .submit {
        animation: none;
        transition: none;
    }
}