/* custom comment styles */
.comments-area {
    margin-top: 3rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #111827; /* gray-900 */
}

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

.comment-list .comment {
    margin-bottom: 2rem;
}

.comment-body {
    background: #ffffff;
    border: 1px solid #f3f4f6; /* gray-100 */
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    transition: all 0.2s ease;
}

.comment-body:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #e5e7eb; /* gray-200 */
}

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

.comment-author .avatar {
    border-radius: 9999px;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.comment-author .fn {
    font-weight: 600;
    color: #111827;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #6b7280; /* gray-500 */
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comment-content {
    color: #4b5563; /* gray-600 */
    font-size: 1rem;
    line-height: 1.625;
}

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

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

.reply {
    margin-top: 1rem;
    text-align: right;
}

.comment-reply-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #eff6ff; /* blue-50 */
    color: #2563eb; /* blue-600 */
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.comment-reply-link:hover {
    background-color: #dbeafe; /* blue-100 */
    color: #1d4ed8; /* blue-700 */
}

/* Threaded comments */
.children {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 1.5rem;
    padding-left: 2rem;
    border-left: 2px solid #f3f4f6;
}

@media (max-width: 640px) {
    .children {
        padding-left: 1rem;
    }
}

/* Comment Form */
.comment-respond {
    background: #f9fafb; /* gray-50 */
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 3rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    display: block;
}

.comment-form {
    display: grid;
    gap: 1rem;
}

.comment-notes {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.comment-form-comment label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-submit {
    margin-top: 1rem;
}

.submit {
    background: linear-gradient(to right, #136a8a, #267871);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
