/* Creative Enhancement Features */

/* Thinking Frameworks Wheel */
.frameworks-wheel-button {
    position: fixed;
    bottom: 630px;
    right: 32px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
    transition: all 0.3s ease;
    z-index: 9997;
    animation: gentle-pulse 4s infinite;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.frameworks-wheel-button:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.7);
}

.frameworks-wheel-button svg {
    width: 32px;
    height: 32px;
    color: white;
}

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

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

.frameworks-wheel {
    background: var(--color-surface, #ffffff);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    padding: 40px;
}

.frameworks-header {
    text-align: center;
    margin-bottom: 32px;
}

.frameworks-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.frameworks-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-secondary, #64748b);
}

.frameworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.framework-card {
    padding: 20px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 2px solid #14b8a6;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.framework-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
    border-color: #0d9488;
}

.framework-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.framework-emoji {
    font-size: 1.5rem;
}

.framework-description {
    font-size: 0.875rem;
    color: #14532d;
    line-height: 1.5;
}

.framework-example {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-style: italic;
    color: #166534;
}

/* Mind Map Canvas */
.mindmap-button {
    position: fixed;
    bottom: 710px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
    z-index: 9996;
}

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

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

.mindmap-canvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg, #ffffff);
    display: none;
    z-index: 10003;
}

.mindmap-canvas.active {
    display: block;
}

.mindmap-toolbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-surface, #ffffff);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 10004;
}

.mindmap-tool-btn {
    padding: 8px 16px;
    border: 2px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
    background: var(--color-bg-secondary, #f8fafc);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

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

.mindmap-workspace {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Insight Capture Widget */
.insight-capture {
    position: fixed;
    left: 32px;
    bottom: 32px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
    transition: all 0.3s ease;
    z-index: 9997;
}

.insight-capture:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.7);
}

.insight-capture svg {
    width: 32px;
    height: 32px;
    color: white;
}

.insight-popup {
    position: fixed;
    left: 32px;
    bottom: 108px;
    width: 360px;
    background: var(--color-surface, #ffffff);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 24px;
    display: none;
    z-index: 9998;
}

.insight-popup.active {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.insight-popup-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 12px;
}

.insight-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    margin-bottom: 12px;
}

.insight-input:focus {
    outline: none;
    border-color: #f59e0b;
}

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

.insight-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.insight-btn.save {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.insight-btn.save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.insight-btn.cancel {
    background: var(--color-bg-secondary, #f8fafc);
    color: var(--color-text, #0f172a);
}

/* Remix Mode */
.remix-mode-button {
    position: fixed;
    bottom: 780px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    z-index: 9996;
}

.remix-mode-button:hover {
    transform: scale(1.1) rotate(90deg);
}

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

/* Creative Constraints */
.constraints-button {
    position: fixed;
    bottom: 850px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.4);
    transition: all 0.3s ease;
    z-index: 9996;
}

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

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

/* Mobile */
@media (max-width: 768px) {
    .frameworks-wheel-button,
    .mindmap-button,
    .remix-mode-button,
    .constraints-button {
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .insight-capture {
        left: 20px;
        bottom: 20px;
        width: 56px;
        height: 56px;
    }
    
    .insight-popup {
        left: 20px;
        right: 20px;
        width: auto;
    }
    
    .frameworks-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .frameworks-wheel,
[data-theme="dark"] .insight-popup,
[data-theme="dark"] .mindmap-canvas {
    background: var(--color-surface, #14141f);
}
