/* ═══════════════════════════════════════════════════════════════════
   TEACHING MODES - Guide Me & Deep Dive Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   GUIDE ME BUTTON (Socratic Mode)
   ───────────────────────────────────────────────────────────────── */

/* Wrapper for tooltip positioning */
.guide-me-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.guide-me-btn {
    color: #ffc107; /* Inactive color (dimmed gold) or gray? User said 'no light' then 'light' */
    color: rgba(255, 255, 255, 0.4); /* Default OFF state */
    transition: all 0.3s ease;
    position: relative;
}

.guide-me-btn:hover {
    color: #ffc107;
    transform: scale(1.1);
}

/* Active State (Toggle ON) */
.guide-me-btn.active {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    animation: lightbulbPulse 2s infinite;
}

@keyframes lightbulbPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4)); }
}

/* TOOLTIP & EXPLANATION */
.socratic-tooltip {
    position: absolute;
    bottom: 140%; /* Above button */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    width: 200px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 100;
}

/* Show tooltip on hover OR when flashed (show-tooltip class from JS) */
.guide-me-wrapper:hover .socratic-tooltip,
.guide-me-wrapper.show-tooltip .socratic-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip-title {
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tooltip-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    line-height: 1.3;
}

/* ─────────────────────────────────────────────────────────────────
   DEEP DIVE MODE TOGGLE
   ───────────────────────────────────────────────────────────────── */

.deep-dive-item .tool-name {
    color: #4ecdc4;
}

.deep-dive-item .tool-name i {
    color: #4ecdc4;
}

.deep-dive-slider:checked + .tool-slider {
    background: linear-gradient(135deg, #4ecdc4, #2196f3);
}

/* Deep Dive Active Banner */
.deep-dive-banner {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.9), rgba(78, 205, 196, 0.9));
    color: #fff;
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
    animation: bannerSlideIn 0.4s ease-out;
}

@keyframes bannerSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.deep-dive-banner .banner-icon {
    font-size: 1.2rem;
}

.deep-dive-banner .close-banner {
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.deep-dive-banner .close-banner:hover {
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────
   MODE BADGES (In AI Messages)
   ───────────────────────────────────────────────────────────────── */

.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    animation: badgeFadeIn 0.3s ease;
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mode-badge.socratic {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 215, 0, 0.15));
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.mode-badge.deep-dive {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(78, 205, 196, 0.15));
    color: #4ecdc4;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* ─────────────────────────────────────────────────────────────────
   KBAT CHALLENGE BLOCK
   ───────────────────────────────────────────────────────────────── */

.kbat-challenge {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(103, 58, 183, 0.1));
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-left: 4px solid #9c27b0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.kbat-challenge .challenge-header {
    color: #ce93d8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.kbat-challenge .challenge-question {
    color: #fff;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────
   CONCEPT CONNECTIONS BLOCK
   ───────────────────────────────────────────────────────────────── */

.concept-connections {
    background: rgba(78, 205, 196, 0.08);
    border-radius: 10px;
    padding: 14px;
    margin-top: 12px;
}

.concept-connections .connections-header {
    color: #4ecdc4;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.concept-connections ul {
    margin: 0;
    padding-left: 20px;
}

.concept-connections li {
    color: rgba(255, 255, 255, 0.85);
    margin: 6px 0;
    line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────
   SOCRATIC QUESTION HIGHLIGHT
   ───────────────────────────────────────────────────────────────── */

.socratic-question {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 152, 0, 0.08));
    border-left: 4px solid #ffc107;
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0;
}

.socratic-question .question-icon {
    color: #ffd700;
    font-size: 1.3rem;
    margin-right: 8px;
}

.socratic-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: 10px;
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .deep-dive-banner {
        font-size: 0.8rem;
        padding: 6px 16px;
        top: 60px;
    }
    
    .mode-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .guide-me-btn {
        font-size: 0.9rem;
    }
}

/* ─────────────────────────────────────────────────────────────────
   AI GENERATED MEDIA (IMAGEN 3 / VEO)
   ───────────────────────────────────────────────────────────────── */

.ai-generated-media {
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
}

.ai-generated-media img, 
.ai-generated-media video {
    width: 100%;
    height: auto;
    display: block;
}

.media-caption {
    padding: 10px 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    font-style: italic;
    text-align: center;
}
