/* ============================================
   WEB CHAT SPOTLIGHT SECTION
   ============================================ */

.web-chat-spotlight {
    padding: 4rem 0;
    background: linear-gradient(135deg, 
        var(--bg-color) 0%, 
        rgba(67, 97, 238, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.web-chat-spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(67, 97, 238, 0.1) 0%, 
        transparent 70%);
    animation: pulse-glow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Spotlight Content Layout */
.spotlight-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.spotlight-text {
    padding-right: 2rem;
}

/* Badge Container */
.badge-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--accent-color));
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    animation: badge-float 3s ease-in-out infinite;
}

.badge:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Headline Styling */
.spotlight-text h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.spotlight-text .lead-text {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Feature Badges Grid */
.feature-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid rgba(67, 97, 238, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.feature-badge strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.feature-badge p {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.7;
    margin: 0;
    line-height: 1.4;
}

/* CTA Buttons */
.spotlight-text .cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Spotlight Visual - Chat Preview */
.spotlight-visual {
    position: relative;
    perspective: 1000px;
}

.featured-card {
    background: linear-gradient(135deg, 
        rgba(67, 97, 238, 0.1), 
        rgba(76, 201, 240, 0.1));
    border: 2px solid var(--primary-color);
    box-shadow: 
        0 8px 32px rgba(67, 97, 238, 0.3),
        inset 0 0 60px rgba(67, 97, 238, 0.1);
    animation: card-float 6s ease-in-out infinite;
}

@keyframes card-float {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(2deg); }
}

.chat-preview {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-color);
}

/* Preview Header */
.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--accent-color));
    color: white;
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    display: block;
}

.preview-title {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Preview Content */
.preview-content {
    padding: 1.5rem;
    min-height: 250px;
    background: var(--bg-color);
}

.preview-message {
    margin-bottom: 1rem;
    display: flex;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
    animation: message-appear 0.3s ease-out;
}

@keyframes message-appear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message .message-bubble {
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--accent-color));
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message .message-bubble {
    background: rgba(67, 97, 238, 0.1);
    color: var(--text-color);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(67, 97, 238, 0.2);
}

/* Preview Footer */
.preview-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border-top: 1px solid rgba(67, 97, 238, 0.1);
}

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    display: block;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .web-chat-spotlight {
    background: linear-gradient(135deg, 
        var(--bg-color) 0%, 
        rgba(67, 97, 238, 0.08) 100%);
}

[data-theme="dark"] .feature-badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(67, 97, 238, 0.3);
}

[data-theme="dark"] .chat-preview {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .preview-content {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .bot-message .message-bubble {
    background: rgba(67, 97, 238, 0.15);
    border-color: rgba(67, 97, 238, 0.3);
}

/* Responsive Design */
@media (max-width: 968px) {
    .spotlight-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .spotlight-text {
        padding-right: 0;
        text-align: center;
    }
    
    .spotlight-text h2 {
        font-size: 2rem;
    }
    
    .badge-container {
        justify-content: center;
    }
    
    .feature-badges {
        grid-template-columns: 1fr;
    }
    
    .spotlight-text .cta-buttons {
        justify-content: center;
    }
    
    .spotlight-visual {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .web-chat-spotlight {
        padding: 3rem 0;
    }
    
    .spotlight-text h2 {
        font-size: 1.75rem;
    }
    
    .spotlight-text .lead-text {
        font-size: 1rem;
    }
    
    .feature-badges {
        gap: 0.75rem;
    }
    
    .feature-badge {
        padding: 0.75rem;
    }
    
    .badge-icon {
        font-size: 1.25rem;
    }
    
    .spotlight-text .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .spotlight-text .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
}
