/**
 * AI Review Summary – Admin Styles
 * Scoped to #wtofe-rs-metabox to avoid conflicts with other meta boxes.
 */

/* ── Meta bar ──────────────────────────────────────────────────────────────── */
.wtofe-rs-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    padding: 8px 10px;
    background: #f6f7f7;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #50575e;
}

.wtofe-rs-meta-item {
    line-height: 1.6;
}

/* ── Summary block ─────────────────────────────────────────────────────────── */
.wtofe-rs-summary-block {
    margin-bottom: 8px;
}

.wtofe-rs-sentiment-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.wtofe-rs-sentiment-positive  { background: #d1fae5; color: #065f46; }
.wtofe-rs-sentiment-negative  { background: #fee2e2; color: #991b1b; }
.wtofe-rs-sentiment-mixed     { background: #fef3c7; color: #92400e; }
.wtofe-rs-sentiment-neutral   { background: #e5e7eb; color: #374151; }

.wtofe-rs-summary-text {
    margin: 0 0 10px;
    line-height: 1.6;
    color: #1d2327;
    font-size: 13px;
}

/* ── Pros / Cons lists ─────────────────────────────────────────────────────── */
.wtofe-rs-list-group {
    margin-bottom: 8px;
}

.wtofe-rs-list-group strong {
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
    color: #50575e;
}

.wtofe-rs-pros-list,
.wtofe-rs-cons-list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.wtofe-rs-pros-list li { color: #065f46; font-size: 13px; line-height: 1.7; }
.wtofe-rs-cons-list li { color: #991b1b; font-size: 13px; line-height: 1.7; }

/* ── Loading state ─────────────────────────────────────────────────────────── */
.wtofe-rs-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: #50575e;
    font-size: 13px;
}

.wtofe-rs-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #dcdcdc;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: wtofe-rs-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes wtofe-rs-spin {
    to { transform: rotate(360deg); }
}

/* ── Error ─────────────────────────────────────────────────────────────────── */
.wtofe-rs-error {
    color: #c0392b;
    font-size: 12px;
    margin: 4px 0 8px;
    padding: 6px 10px;
    background: #fff5f5;
    border-left: 3px solid #e74c3c;
}

/* ── Notices ───────────────────────────────────────────────────────────────── */
.wtofe-rs-notice {
    margin: 4px 0;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 3px;
}

.wtofe-rs-notice--waiting {
    background: #f0f6fc;
    border-left: 3px solid #2271b1;
    color: #1d2327;
}

.wtofe-rs-notice--disabled {
    background: #f6f7f7;
    border-left: 3px solid #8c8f94;
    color: #50575e;
}

/* ── Actions ───────────────────────────────────────────────────────────────── */
.wtofe-rs-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wtofe-rs-actions .description {
    font-size: 12px;
}

.wtofe-rs-generate-btn.is-loading {
    opacity: .7;
    pointer-events: none;
}
