/* Plugin Specific Styling for AI Engine */

/* Loading Skeleton */
.ai-loader-skeleton {
    margin-top: 1.2rem;
    padding: 1.1rem 1.1rem 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
}

.ai-skeleton-topline,
.ai-skeleton-line {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.ai-skeleton-topline::after,
.ai-skeleton-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -140%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 48%, transparent 100%);
    animation: aiShimmer 1.35s ease-in-out infinite;
}

.ai-skeleton-topline {
    width: 36%;
    max-width: 220px;
    height: 12px;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.ai-skeleton-line {
    height: 14px;
    border-radius: 10px;
    margin-bottom: 0.62rem;
}

.ai-skeleton-line.w-96 { width: 96%; }
.ai-skeleton-line.w-92 { width: 92%; }
.ai-skeleton-line.w-86 { width: 86%; }
.ai-skeleton-line.w-74 { width: 74%; }
.ai-skeleton-line.w-68 { width: 68%; }

.ai-loader-note {
    margin: 0.4rem 0 0;
    color: #b9c6d8;
    font-size: 0.94rem;
}

@keyframes aiShimmer {
    0% { left: -140%; }
    100% { left: 130%; }
}

/* AI Response Card */
.ai-response-card {
    padding: 2.5rem;
    margin-top: 2rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.response-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-left-radius: 16px;
}

.badge-ai {
    background-color: var(--secondary-accent);
    color: white;
}

.badge-db {
    background-color: #10b981; /* Emerald green */
    color: white;
}

.response-content h2 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

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

.response-content ul, .response-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.response-content li {
    margin-bottom: 0.5rem;
}

.response-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
}

.full-post-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.full-post-link:hover {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
