/* ===================================
   Comments Template Styles
   =================================== */

.comments-area {
    margin-top: 60px;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #3b82f6;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    margin-bottom: 30px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateX(4px);
}

.comment-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-meta {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-author .fn {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
}

.comment-date {
    color: #6b7280;
    font-size: 13px;
}

.comment-content {
    color: #374151;
    line-height: 1.7;
    font-size: 15px;
}

.comment-awaiting-moderation {
    background: #fef3c7;
    color: #92400e;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    display: inline-block;
}

.comment-actions {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.reply-link a,
.edit-link a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.reply-link a:hover,
.edit-link a:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* Comment Form */
.comment-form {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-form .required {
    color: #ef4444;
    margin-left: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.comment-form .submit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.comment-form .submit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.comment-form .submit:active {
    transform: translateY(0);
}

/* Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

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

.comment-navigation .nav-next {
    text-align: right;
}

.comment-navigation a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.comment-navigation a:hover {
    background: #3b82f6;
    color: #ffffff;
}

.no-comments {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    padding: 40px;
    background: #f9fafb;
    border-radius: 12px;
}

/* Children comments */
.children {
    list-style: none;
    margin-left: 40px;
    margin-top: 20px;
}

.children .comment-item {
    border-left-color: #8b5cf6;
    background: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .comments-area {
        padding: 24px;
    }

    .comment-item {
        padding: 20px;
    }

    .children {
        margin-left: 20px;
    }

    .comment-form {
        padding: 20px;
    }
}
