/* blog-comments-reply.css - Add this to your blog's CSS */

/* Comments Section */
.comments-section {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
}

.comments-section h3 {
    color: #2c5f7c;
    margin-bottom: 25px;
    font-size: 1.6rem;
}

/* Comment Container */
.comment {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.comment:hover {
    background: #f0f4f8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Admin Comments */
.comment.admin-comment {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.admin-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Comment Header */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

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

.comment-author strong {
    color: #2c5f7c;
    font-size: 1rem;
}

.reply-indicator {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

.comment-date {
    color: #888;
    font-size: 0.85rem;
}

/* Comment Content */
.comment-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}

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

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

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 10px;
}

.reply-btn {
    background: transparent;
    color: #3498db;
    border: 1px solid #3498db;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.reply-btn:hover {
    background: #3498db;
    color: white;
}

/* Reply Threads */
.comment-reply {
    margin-left: 40px;
    border-left-color: #95a5a6;
}

.comment-replies {
    margin-top: 15px;
}

/* Reply Form Container */
.reply-form-container {
    background: white;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.reply-form-header strong {
    color: #3498db;
    font-size: 0.95rem;
}

.cancel-reply {
    background: transparent;
    color: #999;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-reply:hover {
    background: #f0f0f0;
    color: #666;
}

/* Inline Reply Form */
.inline-reply-form .form-group {
    margin-bottom: 15px;
}

.inline-reply-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.inline-reply-form input,
.inline-reply-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.inline-reply-form input:focus,
.inline-reply-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.inline-reply-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.btn-submit-reply {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit-reply:hover {
    background: #2980b9;
}

.btn-submit-reply:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.btn-cancel {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #f8f9fa;
    border-color: #999;
}

/* Main Comment Form */
#comment-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

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

#comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

#comment-form input,
#comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

#comment-form input:focus,
#comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

#comment-form button[type="submit"] {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#comment-form button[type="submit"]:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

#comment-form button[type="submit"]:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Message Notifications */
.comment-message {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.comment-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.comment-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* No Comments Message */
.no-comments {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Comments List */
#comments-list {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comment-reply {
        margin-left: 20px;
    }

    .comment {
        padding: 15px;
    }

    .reply-form-container {
        padding: 15px;
    }

    #comment-form {
        padding: 20px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .comment-reply {
        margin-left: 10px;
    }

    .comment {
        padding: 12px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit-reply,
    .btn-cancel {
        width: 100%;
    }

    .admin-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
}
