/* ═══════════════════════════════════════════════════════════════════════════════
   🔊 ECHO FUTURISTIC UI — 2025-2026 Design Trends Integration
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   🌟 LIQUID GLASS 2.0 — Apple-style frosted glass with real-time refraction
   ═══════════════════════════════════════════════════════════════════════════════ */
.liquid-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.liquid-glass::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0) 50%
    );
    animation: liquidShimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes liquidShimmer {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-30%, -30%) rotate(180deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🎨 NEUMORPHISM 2.0 — Soft shadows with depth and tactile feedback
   ═══════════════════════════════════════════════════════════════════════════════ */
.neumorphic {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    box-shadow: 
        20px 20px 60px #0f1419,
        -20px -20px 60px #1f2533,
        inset 1px 1px 2px rgba(255, 255, 255, 0.1),
        inset -1px -1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neumorphic:hover {
    box-shadow: 
        25px 25px 70px #0f1419,
        -25px -25px 70px #1f2533,
        inset 2px 2px 3px rgba(255, 255, 255, 0.15),
        inset -2px -2px 3px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.neumorphic:active {
    box-shadow: 
        inset 20px 20px 60px #0f1419,
        inset -20px -20px 60px #1f2533,
        inset 1px 1px 2px rgba(255, 255, 255, 0.05),
        inset -1px -1px 2px rgba(0, 0, 0, 0.7);
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🌈 DYNAMIC GRADIENTS — Animated color transitions with depth
   ═══════════════════════════════════════════════════════════════════════════════ */
.gradient-animated {
    background: linear-gradient(
        -45deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #f5576c 75%,
        #4facfe 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: gradientOverlay 8s linear infinite;
}

@keyframes gradientOverlay {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ✨ MICRO-INTERACTIONS — Purposeful animations with brand personality
   ═══════════════════════════════════════════════════════════════════════════════ */
.micro-button {
    position: relative;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.micro-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.micro-button:hover::before {
    width: 300px;
    height: 300px;
}

.micro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.micro-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🎯 HOLOGRAPHIC EFFECTS — 3D depth with parallax and shimmer
   ═══════════════════════════════════════════════════════════════════════════════ */
.holographic {
    position: relative;
    background: linear-gradient(
        45deg,
        #ff006e 0%,
        #8338ec 25%,
        #3a86ff 50%,
        #06b6d4 75%,
        #10b981 100%
    );
    background-size: 200% 200%;
    animation: holographicShift 3s ease-in-out infinite;
    border-radius: 16px;
    overflow: hidden;
}

@keyframes holographicShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.holographic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: holographicShimmer 2s linear infinite;
}

@keyframes holographicShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.holographic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    animation: holographicGlow 4s ease-in-out infinite alternate;
}

@keyframes holographicGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🌊 ASYMMETRIC LAYOUTS — Dynamic grid-breaking with purpose
   ═══════════════════════════════════════════════════════════════════════════════ */
.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 20px;
    padding: 20px;
}

.asymmetric-item-1 {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
}

.asymmetric-item-2 {
    grid-column: 7 / 10;
    grid-row: 1 / 2;
}

.asymmetric-item-3 {
    grid-column: 10 / 13;
    grid-row: 1 / 3;
}

.asymmetric-item-4 {
    grid-column: 7 / 13;
    grid-row: 2 / 4;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🎪 CURSOR REIMAGINED — Dynamic cursor interactions
   ═══════════════════════════════════════════════════════════════════════════════ */
.enhanced-cursor {
    cursor: none;
}

.enhanced-cursor::after {
    content: '';
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 126, 234, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}

.enhanced-cursor:hover::after {
    width: 40px;
    height: 40px;
    border-color: rgba(102, 126, 234, 1);
    background: rgba(102, 126, 234, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🔊 ECHO-SPECIFIC COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Chat messages with futuristic styling */
.echo-message {
    position: relative;
    padding: 16px 20px;
    margin: 12px 0;
    border-radius: 20px;
    max-width: 75%;
    word-wrap: break-word;
    animation: messageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.echo-message.sent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.echo-message.received {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f5;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Conversation list with hover effects */
.echo-conversation {
    padding: 16px;
    margin: 8px 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.echo-conversation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(102, 126, 234, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.echo-conversation:hover::before {
    left: 100%;
}

.echo-conversation:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.echo-conversation.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Search input with liquid glass effect */
.echo-search {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f5;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.echo-search::placeholder {
    color: rgba(240, 240, 245, 0.6);
}

.echo-search:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Send button with holographic effect */
.echo-send-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(
        45deg,
        #ff006e 0%,
        #8338ec 25%,
        #3a86ff 50%,
        #06b6d4 75%,
        #10b981 100%
    );
    background-size: 200% 200%;
    animation: holographicShift 3s ease-in-out infinite;
    color: white;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.echo-send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    animation: holographicShimmer 2s linear infinite;
}

.echo-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.echo-send-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🎪 RESPONSIVE ADAPTATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .asymmetric-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .asymmetric-item-1,
    .asymmetric-item-2,
    .asymmetric-item-3,
    .asymmetric-item-4 {
        grid-column: 1;
        grid-row: auto;
    }
    
    .echo-message {
        max-width: 85%;
        padding: 12px 16px;
    }
    
    .echo-conversation {
        padding: 12px;
    }
    
    .echo-search {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🎯 PERFORMANCE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .gradient-animated,
    .holographic,
    .liquid-glass::after,
    .micro-button::before,
    .echo-send-btn::before {
        animation: none;
    }
    
    .micro-button:hover,
    .echo-send-btn:hover,
    .echo-conversation:hover {
        transform: none;
    }
}

/* GPU acceleration for smooth animations */
.liquid-glass,
.neumorphic,
.gradient-animated,
.holographic,
.echo-message,
.echo-conversation,
.echo-search,
.echo-send-btn {
    transform: translateZ(0);
    will-change: transform, opacity;
}
