/* AI Research Card Styles - Modern, unified design system for Gemini Deep Research */

/* Compact AI Research Card */
.ai-research-card-compact {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.08) 0%, 
        rgba(59, 130, 246, 0.12) 50%, 
        rgba(147, 51, 234, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ai-research-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #10b981 0%, 
        #3b82f6 30%, 
        #8b5cf6 60%,
        #9333ea 100%);
    border-radius: 20px 20px 0 0;
    animation: gradientFlow 4s ease-in-out infinite;
}

.ai-research-card-compact:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(16, 185, 129, 0.2),
        0 4px 16px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Compact Header */
.ai-header-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ai-icon-live {
    position: relative;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 
        0 8px 24px rgba(16, 185, 129, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.live-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.ai-title-compact {
    flex: 1;
}

.ai-title-compact h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

.ai-stats-compact {
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(59, 130, 246, 0.1) 100%);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 
        0 4px 16px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.ai-stats-compact .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ai-stats-compact .stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Compact Features */
.ai-features-compact {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.feature-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #10b981;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-compact:hover {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.1) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    transform: translateX(8px) translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(16, 185, 129, 0.1);
}

.feature-compact i {
    color: #10b981;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.feature-compact span {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Quick Actions */
.ai-actions-compact {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.08) 0%, 
        rgba(147, 51, 234, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.action-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e3a8a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Tech Footer */
.ai-tech-compact {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.15) 0%, 
        rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(147, 51, 234, 0.25);
    border-radius: 24px;
    font-size: 0.8rem;
    color: #a855f7;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(147, 51, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tech-badge:hover {
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.2) 0%, 
        rgba(139, 92, 246, 0.15) 100%);
    transform: scale(1.08) translateY(-2px);
    border-color: rgba(147, 51, 234, 0.35);
    box-shadow: 
        0 8px 24px rgba(147, 51, 234, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tech-badge i {
    font-size: 0.7rem;
}

/* Animations */
@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

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

/* Enhanced Interactive Effects */
.ai-icon-live:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 32px rgba(16, 185, 129, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.3);
}

.ai-stats-compact:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.2) 0%, 
        rgba(59, 130, 246, 0.15) 100%);
}

.action-number:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ai-research-card-compact {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .ai-header-compact {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .ai-icon-live {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .ai-title-compact h3 {
        font-size: 1.2rem;
    }

    .ai-stats-compact {
        padding: 0.75rem;
    }

    .ai-features-compact {
        gap: 0.5rem;
    }

    .feature-compact {
        padding: 0.75rem 1rem;
    }

    .ai-actions-compact {
        padding: 1.25rem;
    }

    .action-item {
        font-size: 0.8rem;
    }

    .action-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .tech-badge {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
    }
}