/**
 * Custom Comments Section Styles
 * Egyptian-themed design for blog comments
 * 
 * @package TwentyTwentyFive_Kemet
 * @since 1.0.0
 */

/* Comments Container */
.kemet-comments-section {
    margin-top: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(58, 69, 50, 0.02) 0%, rgba(200, 144, 107, 0.02) 100%);
    border-radius: 12px;
}

/* Comments Header */
.kemet-comments-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #d4af37;
}

.kemet-comments-header h3 {
    color: #3A4532;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.kemet-comments-header p {
    color: #8b7355;
    font-size: 1rem;
    margin: 0;
}

/* Comment Form */
.kemet-comment-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(58, 69, 50, 0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.kemet-comment-form h4 {
    color: #3A4532;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d4af37;
    display: inline-block;
}

/* Form Fields */
.kemet-comment-form .form-group {
    margin-bottom: 1.5rem;
}

.kemet-comment-form label {
    color: #3A4532;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

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

.kemet-comment-form input[type="text"]:focus,
.kemet-comment-form input[type="email"]:focus,
.kemet-comment-form input[type="url"]:focus,
.kemet-comment-form textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

/* Submit Button */
.kemet-comment-form .submit {
    text-align: center;
}

.kemet-comment-form input[type="submit"] {
    background: linear-gradient(135deg, #3A4532 0%, #5a6547 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kemet-comment-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #5a6547 0%, #3A4532 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(58, 69, 50, 0.3);
}

/* Individual Comments */
.kemet-comment {
    background: white;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(58, 69, 50, 0.08);
    border-left: 4px solid #d4af37;
    transition: all 0.3s ease;
}

.kemet-comment:hover {
    box-shadow: 0 4px 20px rgba(58, 69, 50, 0.12);
    transform: translateY(-2px);
}

/* Comment Header */
.kemet-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.kemet-comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 3px solid #d4af37;
}

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

.kemet-comment-author h5 {
    color: #3A4532;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.kemet-comment-meta {
    color: #8b7355;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kemet-comment-meta i {
    margin-right: 0.25rem;
    color: #d4af37;
}

/* Comment Content */
.kemet-comment-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

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

/* Comment Actions */
.kemet-comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.kemet-comment-reply {
    background: linear-gradient(135deg, #d4af37 0%, #c8906b 100%);
    color: white;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.kemet-comment-reply:hover {
    background: linear-gradient(135deg, #c8906b 0%, #d4af37 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Nested Comments */
.kemet-comment .children {
    margin-left: 2rem;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #f0f0f0;
}

.kemet-comment .children .kemet-comment {
    background: #fafafa;
    border-left-color: #c8906b;
}

/* Comment Navigation */
.kemet-comment-navigation {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
}

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

.kemet-comment-navigation a:hover {
    background: #d4af37;
    color: white;
    text-decoration: none;
}

/* No Comments Message */
.kemet-no-comments {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(58, 69, 50, 0.08);
}

.kemet-no-comments h4 {
    color: #3A4532;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
}

.kemet-no-comments p {
    color: #8b7355;
    margin-bottom: 1.5rem;
}

.kemet-no-comments .btn {
    background: linear-gradient(135deg, #3A4532 0%, #5a6547 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.kemet-no-comments .btn:hover {
    background: linear-gradient(135deg, #5a6547 0%, #3A4532 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .kemet-comment-form {
        padding: 1.5rem;
    }
    
    .kemet-comment {
        padding: 1rem;
    }
    
    .kemet-comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .kemet-comment-avatar {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .kemet-comment .children {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }
    
    .kemet-comment-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Loading States */
.kemet-comment-form.loading input[type="submit"] {
    opacity: 0.7;
    cursor: not-allowed;
}

.kemet-comment-form.loading input[type="submit"]:after {
    content: " ...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: " ..."; }
    40% { content: " .."; }
    60%, 100% { content: " ."; }
}
