/**
 * Layer 89: AI Editorial Assistant Styles
 */

/* Floating Button */
.ai-assistant-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-assistant-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

/* Panel */
.ai-assistant-panel {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-assistant-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.ai-panel-header {
    background: #f8fafc;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.ai-panel-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #1e293b;
}

.ai-panel-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.ai-panel-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

/* Sections */
.ai-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.ai-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ai-section h4 {
    margin: 0 0 15px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Readability Metrics */
.ai-metric-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.ai-score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #64748b;
}

.ai-score-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
}

.ai-stat-row {
    font-size: 0.9rem;
    color: #64748b;
}

/* Headline Audit */
.current-headline {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #6366f1;
}

.issue-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.issue-tag {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: #fff1f2;
    color: #e11d48;
    border-radius: 4px;
    border: 1px solid #ffe4e6;
}

.issue-tag.success {
    background: #ecfdf5;
    color: #059669;
    border-color: #d1fae5;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.headline-suggestion {
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
}

.headline-suggestion:hover {
    background: #eff6ff;
    color: #2563eb;
}

.headline-suggestion .score {
    font-weight: 700;
    color: #10b981;
}

/* Action Button */
.ai-action-btn {
    width: 100%;
    padding: 10px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-action-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}