/* ============================================
   ARVANTIS V3 — ENHANCEMENT STYLES
   Styles for: Micro-demos, ROI Calculator, GSAP
   ============================================ */

/* ============================================
   MINI CHAT INPUT (SecureBot Demo)
   ============================================ */
.mini-chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem;
    background: rgba(168, 85, 247, 0.08);
    border-radius: 12px;
    margin-top: 0.75rem;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.mini-chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: var(--font-body);
    outline: none;
    padding: 0.4rem 0.6rem;
}

.mini-chat-input input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.mini-chat-input button {
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.mini-chat-input button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

/* Chat scroll container */
.chat-preview {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
}

.chat-preview::-webkit-scrollbar {
    width: 4px;
}

.chat-preview::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px;
}

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

/* Chat CTA hint */
.chat-cta-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--aurora-2);
    padding: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
    font-weight: 500;
}

/* Messages container inside chat */
.chat-messages-area {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
}

.chat-messages-area::-webkit-scrollbar {
    width: 3px;
}

.chat-messages-area::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 3px;
}

/* Query hint for Insight Engine */
.query-hint {
    animation: pulse 2s ease-in-out infinite;
}

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

/* ============================================
   ROI CALCULATOR
   ============================================ */
#roi-calculator {
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(168, 85, 247, 0.06), transparent);
}

.roi-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

/* Slider Inputs */
.roi-inputs {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.roi-slider-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.roi-value {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--aurora-2);
    font-size: 1.1rem;
}

.roi-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Custom Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    cursor: pointer;
}

/* Result Cards */
.roi-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.roi-result-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.roi-result-card:hover {
    transform: translateX(5px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-card);
}

.roi-result-card.featured {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), var(--bg-card));
}

.roi-result-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.roi-result-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--aurora-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.roi-result-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
[data-theme="light"] .mini-chat-input {
    background: rgba(0, 172, 193, 0.06);
    border-color: rgba(0, 172, 193, 0.15);
}

[data-theme="light"] .mini-chat-input button {
    background: linear-gradient(135deg, #00acc1, #26c6da);
}

[data-theme="light"] input[type="range"] {
    background: linear-gradient(90deg, rgba(0, 172, 193, 0.2), rgba(0, 172, 193, 0.1));
}

[data-theme="light"] input[type="range"]::-webkit-slider-thumb {
    background: linear-gradient(135deg, #00acc1, #26c6da);
    box-shadow: 0 0 15px rgba(0, 172, 193, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] input[type="range"]::-moz-range-thumb {
    background: linear-gradient(135deg, #00acc1, #26c6da);
    box-shadow: 0 0 15px rgba(0, 172, 193, 0.4);
}

[data-theme="light"] .roi-value {
    color: #00acc1;
}

[data-theme="light"] .roi-result-card.featured {
    border-color: rgba(0, 172, 193, 0.3);
    background: linear-gradient(135deg, rgba(0, 172, 193, 0.05), var(--bg-card));
}

[data-theme="light"] .roi-result-icon {
    background: rgba(0, 172, 193, 0.08);
}

[data-theme="light"] .roi-result-number {
    background: linear-gradient(135deg, var(--text-primary), #00acc1);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .roi-calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .roi-results {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .roi-result-card {
        flex: 1;
        min-width: 140px;
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .roi-result-number {
        font-size: 1.5rem;
    }
}
