*/**
 * AR Shopi AI SEO Assistant - Admin + Basic Frontend Styles
 *
 * File: assets/admin.css
 * Version: 1.1.0
 */

/* ==========================================================================
   Admin Result Boxes
   ========================================================================== */

.arshopi-ai-result-box,
#arshopi-seo-result,
#arshopi-content-result,
#arshopi-bulk-result {
    margin-top: 14px;
}

.arshopi-ai-result-box {
    background: #f6f7f7;
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.arshopi-ai-result-box p {
    margin: 8px 0;
}

.arshopi-ai-success {
    color: #008a20;
    font-weight: 600;
}

.arshopi-ai-error {
    color: #b32d2e;
    font-weight: 600;
}

.arshopi-ai-warning {
    color: #996800;
    font-weight: 600;
}

.arshopi-ai-muted {
    color: #646970;
}

/* ==========================================================================
   Admin Cards
   ========================================================================== */

.arshopi-ai-card {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 18px;
    margin: 18px 0;
    max-width: 980px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.arshopi-ai-card h2,
.arshopi-ai-card h3 {
    margin-top: 0;
}

.arshopi-ai-card .description {
    color: #646970;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.arshopi-ai-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.arshopi-ai-badge-success {
    background: #edfaef;
    color: #007017;
}

.arshopi-ai-badge-error {
    background: #fcf0f1;
    color: #b32d2e;
}

.arshopi-ai-badge-info {
    background: #eef6fc;
    color: #0a4b78;
}

/* ==========================================================================
   Buttons / Loading
   ========================================================================== */

.button.arshopi-ai-loading,
button.arshopi-ai-loading {
    opacity: 0.75;
    cursor: wait;
}

.arshopi-ai-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #c3c4c7;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: arshopiAiSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes arshopiAiSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Bulk Progress
   ========================================================================== */

#arshopi-bulk-progress {
    margin-top: 20px;
}

#arshopi-bulk-progress-bar {
    background: #2271b1;
    height: 18px;
    width: 0%;
    transition: width 0.3s ease;
}

/* ==========================================================================
   FAQ Frontend Basic Style
   ========================================================================== */

.arshopi-ai-faq-section {
    margin: 32px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.arshopi-ai-faq-section h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.arshopi-ai-faq-item {
    padding: 16px 0;
    border-top: 1px solid #edf0f2;
}

.arshopi-ai-faq-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.arshopi-ai-faq-item:last-child {
    padding-bottom: 0;
}

.arshopi-ai-faq-item h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
}

.arshopi-ai-faq-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

/* Backward compatibility for old FAQ class */
.arshopi-faq-section {
    margin: 32px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.arshopi-faq-item {
    padding: 16px 0;
    border-top: 1px solid #edf0f2;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 782px) {
    .arshopi-ai-card {
        padding: 14px;
    }

    .arshopi-ai-faq-section,
    .arshopi-faq-section {
        padding: 18px;
        border-radius: 12px;
    }

    .arshopi-ai-faq-section h2 {
        font-size: 21px;
    }

    .arshopi-ai-faq-item h3 {
        font-size: 16px;
    }
}