/* Critical Thinking Tools */

/* Perspective Shifter */
.perspective-shifter {
    position: fixed;
    top: 120px;
    right: 32px;
    background: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 9994;
    min-width: 200px;
}

.perspective-shifter-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary, #64748b);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perspective-option {
    padding: 10px 14px;
    background: var(--color-bg-secondary, #f8fafc);
    border: 2px solid transparent;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.perspective-option:hover {
    background: var(--color-accent-light, #eef2ff);
    border-color: var(--color-accent, #6366f1);
}

.perspective-option.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.perspective-icon {
    font-size: 1.25rem;
}

.perspective-label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Devil's Advocate Panel */
.devils-advocate-panel {
    position: fixed;
    bottom: 420px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
    z-index: 9996;
}

.devils-advocate-panel:hover {
    transform: scale(1.1) rotate(15deg);
}

.devils-advocate-panel svg {
    width: 28px;
    height: 28px;
    color: white;
}

.devils-advocate-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.devils-advocate-modal.active {
    display: flex;
}

.devils-advocate-content {
    background: var(--color-surface, #ffffff);
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    padding: 36px;
    position: relative;
}

.devils-advocate-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-border, #e2e8f0);
}

.devils-advocate-icon-lg {
    font-size: 2.5rem;
}

.devils-advocate-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
}

.counterargument-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.counterargument-item {
    padding: 16px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #dc2626;
    border-radius: 10px;
}

.counterargument-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #991b1b;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.counterargument-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #7f1d1d;
}

/* Socratic Questions */
.socratic-questions-button {
    position: fixed;
    bottom: 490px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    z-index: 9996;
}

.socratic-questions-button:hover {
    transform: scale(1.1);
}

.socratic-questions-button svg {
    width: 28px;
    height: 28px;
    color: white;
}

.socratic-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.socratic-modal.active {
    display: flex;
}

.socratic-content {
    background: var(--color-surface, #ffffff);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    padding: 36px;
}

.socratic-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: #d97706;
}

.question-card {
    padding: 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #f59e0b;
}

.question-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #92400e;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.question-text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #78350f;
    line-height: 1.5;
}

/* What-If Scenarios */
.whatif-button {
    position: fixed;
    bottom: 560px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 9996;
}

.whatif-button:hover {
    transform: scale(1.1);
}

.whatif-button svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Mobile */
@media (max-width: 768px) {
    .perspective-shifter {
        top: 80px;
        right: 16px;
        min-width: 160px;
        padding: 12px;
    }
    
    .devils-advocate-panel,
    .socratic-questions-button,
    .whatif-button {
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .devils-advocate-content,
    .socratic-content {
        padding: 24px;
    }
}

[data-theme="dark"] .perspective-shifter,
[data-theme="dark"] .devils-advocate-content,
[data-theme="dark"] .socratic-content {
    background: var(--color-surface, #14141f);
}
