/* ==========================================================================
   Article Assistant Widget (Premium Light Theme Compatible)
   All classes prefixed with 'article-assistant-' to prevent conflicts
   ========================================================================== */

.article-assistant-wrapper {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #212529;
}

.article-assistant-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #000;
}

.article-assistant-header p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 20px;
}

.article-assistant-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 10px;
}

/* --- AI Buttons --- */
.article-assistant-ai-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.article-assistant-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #212529;
}

.article-assistant-ai-btn:hover {
    background: #f1f3f5;
    border-color: #adb5bd;
}

.article-assistant-ai-chatgpt:hover { border-color: #10a37f; color: #10a37f; }
.article-assistant-ai-claude:hover { border-color: #d97706; color: #d97706; }
.article-assistant-ai-gemini:hover { border-color: #4285f4; color: #4285f4; }
.article-assistant-ai-grok:hover { border-color: #000; color: #000; }
.article-assistant-ai-perplexity:hover { border-color: #20b2aa; color: #20b2aa; }
.article-assistant-ai-deepseek:hover { border-color: #4f46e5; color: #4f46e5; }

/* --- Audio Player --- */
.article-assistant-player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.article-assistant-main-controls {
    display: flex;
    gap: 8px;
}

.article-assistant-btn {
    padding: 8px 18px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #212529;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.article-assistant-btn:hover:not(:disabled) { background: #f1f3f5; }
.article-assistant-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.article-assistant-btn-play {
    background: #0d6efd; /* Standard Bootstrap Primary */
    color: #fff;
    border-color: #0d6efd;
    font-weight: 600;
}
.article-assistant-btn-play:hover:not(:disabled) { background: #0b5ed7; }

.article-assistant-btn-stop { color: #dc3545; border-color: #f5c2c7; }
.article-assistant-btn-stop:hover:not(:disabled) { background: #f8d7da; color: #842029; }

.article-assistant-status {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 4px 0 0;
}

/* --- Settings Panel --- */
.article-assistant-settings-panel {
    margin-top: 16px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.article-assistant-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #212529;
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.95rem;
}

.article-assistant-settings-close {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1.1rem;
    cursor: pointer;
}
.article-assistant-settings-close:hover { color: #fff; }

.article-assistant-settings-body { padding: 16px; }

.article-assistant-setting-row { margin-bottom: 14px; }
.article-assistant-setting-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #495057;
}

.article-assistant-setting-row select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    color: #212529;
}

.article-assistant-setting-row input[type="range"] {
    width: 100%;
    accent-color: #0d6efd;
}

.article-assistant-voice-info {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 8px 0 12px;
}

.article-assistant-settings-actions {
    display: flex;
    gap: 10px;
}

.article-assistant-btn-preview {
    background: #198754;
    color: #fff;
    border-color: #198754;
    font-weight: 600;
}
.article-assistant-btn-preview:hover { background: #157347; }

@media (max-width: 640px) {
    .article-assistant-wrapper { padding: 16px; }
    .article-assistant-ai-btn { padding: 6px 12px; font-size: 0.85rem; }
    .article-assistant-player-controls { flex-direction: column; align-items: stretch; }
    .article-assistant-main-controls { justify-content: center; }
}