/**
 * Guided Review Styles
 * 
 * Styling for kAI's guided review experience including:
 * - Guided review banner (sticky at top)
 * - Step indicators and progress
 * - Inline suggestions
 * - Section highlighting and dimming
 * - Placeholder value indicators
 */

/* ===== GUIDED REVIEW BANNER ===== */

.guided-review-banner {
    display: none;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--blue-light) 100%);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 32px;
    animation: slideDown 0.3s ease-out;
}

.guided-review-banner.active {
    display: block;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.guided-review-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.guided-review-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guided-review-step {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-indicator {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.guided-review-message {
    display: flex;
    align-items: start;
    gap: 12px;
}

.guided-review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.guided-review-text {
    flex: 1;
}

.guided-review-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.guided-review-suggestion {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

.guided-review-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.guided-review-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.guided-review-btn.primary {
    background: var(--primary);
    color: white;
}

.guided-review-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.guided-review-btn.secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.guided-review-btn.secondary:hover {
    background: var(--gray-50);
}

.guided-review-btn.ghost {
    background: transparent;
    color: var(--gray-600);
}

.guided-review-btn.ghost:hover {
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.5);
}

/* ===== SECTION HIGHLIGHTING ===== */

.view-section {
    position: relative;
    transition: all 0.3s ease;
}

.view-section.dimmed {
    opacity: 0.25;
    filter: grayscale(60%);
    pointer-events: none;
}

.view-section.highlighted {
    opacity: 1;
    filter: none;
    pointer-events: auto;
    z-index: 1;
}

/* ===== PROGRESS STEPS ===== */

.guided-review-progress {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.progress-step {
    flex: 1;
    height: 4px;
    background: rgba(91, 71, 251, 0.2);
    border-radius: 2px;
    transition: background 0.3s;
}

.progress-step.completed {
    background: var(--success);
}

.progress-step.active {
    background: var(--primary);
}

/* ===== INLINE REVIEW SUGGESTIONS ===== */

.inline-suggestion {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    display: none;
    animation: slideInUp 0.4s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.inline-suggestion.active {
    display: block;
}

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

.inline-suggestion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.inline-suggestion-icon {
    font-size: 20px;
}

.inline-suggestion-title {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
}

.inline-suggestion-text {
    font-size: 14px;
    color: #78350f;
    line-height: 1.5;
    margin-bottom: 12px;
}

.inline-suggestion-actions {
    display: flex;
    gap: 8px;
}

.inline-suggestion-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.inline-suggestion-btn.primary {
    background: var(--warning);
    color: white;
}

.inline-suggestion-btn.primary:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.inline-suggestion-btn.secondary {
    background: transparent;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.inline-suggestion-btn.secondary:hover {
    background: rgba(245, 158, 11, 0.1);
}

/* ===== PLACEHOLDER VALUE INDICATORS (REDESIGNED) ===== */

.needs-review {
    background: #fef3c7 !important;
    position: relative;
    vertical-align: middle;
}

.review-value-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.review-value-display {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.review-value-input {
    flex: 1;
    padding: 4px 8px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 71, 251, 0.1);
}

.review-value-input:focus {
    box-shadow: 0 0 0 4px rgba(91, 71, 251, 0.2);
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.review-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review-action-btn:active {
    transform: translateY(0);
}

.review-action-btn.edit {
    border-color: var(--blue);
    color: var(--blue);
}

.review-action-btn.edit:hover {
    background: var(--blue-light);
}

.review-action-btn.accept {
    border-color: var(--success);
    color: var(--success);
}

.review-action-btn.accept:hover {
    background: var(--success-light);
}

.review-action-btn.reject {
    border-color: var(--danger);
    color: var(--danger);
}

.review-action-btn.reject:hover {
    background: var(--danger-light);
}

.review-label {
    font-size: 11px;
    color: var(--warning);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.review-label::before {
    content: '⚠';
    font-size: 12px;
}

/* Editing state */
.review-value-container.editing .review-value-display {
    display: none;
}

.review-value-container.editing .review-value-input {
    display: block;
}

.review-value-container.editing .review-action-btn.edit {
    display: none;
}

/* Save/Cancel buttons shown during edit */
.review-action-btn.save {
    border-color: var(--primary);
    color: white;
    background: var(--primary);
}

.review-action-btn.save:hover {
    background: var(--primary-dark);
}

.review-action-btn.cancel {
    border-color: var(--gray-400);
    color: var(--gray-700);
}

.review-action-btn.cancel:hover {
    background: var(--gray-100);
}

/* ===== PULSING ATTENTION INDICATOR ===== */

.needs-attention {
    animation: pulseAttention 2s infinite;
}

@keyframes pulseAttention {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3);
    }
}
