/* ============================================
   SMART QUESTIONS & STORYTELLING LAYER
   ============================================ */

/* SMART QUESTIONS CONTAINER */
#smart-questions-container {
    animation: slideDown 0.3s ease-out;
}

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

/* QUESTION CHIPS */
.question-chip {
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: #e0e7ff;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.question-chip:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.question-chip:active {
    transform: translateY(0);
}

.question-chip i {
    font-size: 11px;
    opacity: 0.7;
}

/* Light mode for question chips */
.light-mode .question-chip {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(37, 99, 235, 0.2);
    color: #1e3a8a;
}

.light-mode .question-chip:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    border-color: rgba(37, 99, 235, 0.4);
}

/* STORY BANNER */
#story-banner {
    animation: slideUp 0.35s ease-out;
}

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

#story-headline {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

#story-insight {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 8px;
    line-height: 1.5;
}

#story-action {
    font-size: 13px;
    color: #00e676;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Light mode for story banner */
.light-mode #story-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%) !important;
    border-left-color: #2563eb !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
}

.light-mode #story-headline {
    color: #1e3a8a;
}

.light-mode #story-insight {
    color: #4b5563;
}

.light-mode #story-action {
    color: #059669;
}

/* LOADING STATE */
.story-loading {
    opacity: 0.7;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .question-chip {
        max-width: 200px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    #story-headline {
        font-size: 14px;
    }
    
    #story-insight {
        font-size: 12px;
    }
    
    #story-action {
        font-size: 12px;
    }
}

/* ACCESSIBILITY */
.question-chip:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.question-chip:focus:not(:focus-visible) {
    outline: none;
}
