/**
 * Comments - Modern 2026 Design
 * Clean, accessible, animated
 */

/* Comments Section */
.comments-area {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 28px;
    padding: 32px;
    margin-top: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.8);
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 28px 0;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}

.comments-title i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    color: #15803d;
    font-size: 20px;
}

/* Comment List */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 20px;
}

.comment-list .children {
    list-style: none;
    margin-left: 40px;
    padding-left: 20px;
    border-left: 3px solid #f7fef9;
    margin-top: 20px;
}

/* Comment Body */
.comment-body {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.comment-body:hover {
    border-color: #f7fef9;
    box-shadow: 0 8px 24px rgba(22,163,74,0.08);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.comment-author-info {
    flex: 1;
}

.comment-author-name {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

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

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

.comment-content p {
    margin: 0 0 12px 0;
}

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

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,163,74,0.3);
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #f0f0f0;
}

.comment-reply-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px 0;
    font-size: 20px;
    font-weight: 800;
    color: #222;
}

.comment-reply-title small {
    margin-left: auto;
}

.comment-reply-title small a {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.comment-reply-title small a:hover {
    background: #ffebee;
    color: #f44336;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.comment-form .required {
    color: #f44336;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #16a34a;
    background: white;
    box-shadow: 0 0 0 4px rgba(22,163,74,0.1);
}

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

.comment-form .submit {
    align-self: flex-start;
    padding: 16px 36px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(22,163,74,0.3);
}

.comment-form .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(22,163,74,0.4);
}

/* Logged In */
.logged-in-as {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 12px;
}

.logged-in-as a {
    color: #16a34a;
    font-weight: 600;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .comments-area {
        padding: 24px;
        border-radius: 24px;
        margin-top: 24px;
    }
    
    .comments-title {
        font-size: 18px;
    }
    
    .comments-title i {
        width: 42px;
        height: 42px;
    }
    
    .comment-list .children {
        margin-left: 20px;
        padding-left: 16px;
    }
    
    .comment-body {
        padding: 18px;
        border-radius: 16px;
    }
    
    .comment-avatar img {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    
    .comment-author-name {
        font-size: 15px;
    }
    
    .comment-form input,
    .comment-form textarea {
        padding: 14px 16px;
    }
}
