/* StarklyAI Spotlight Section Styles */

/* CSS Variables for StarklyAI Theme */
:root {
    --spotlight-bg-primary: #0f0f23;
    --spotlight-bg-secondary: #1a1b3a;
    --spotlight-text-primary: #ffffff;
    --spotlight-text-secondary: #b8c2f0;
    --spotlight-text-muted: #8892c7;
    --spotlight-accent-primary: #6366f1;
    --spotlight-accent-secondary: #8b5cf6;
    --spotlight-orange: #ff8201;
    --spotlight-gradient-1: linear-gradient(135deg, #ff8201, #ea580c); 
    --spotlight-gradient-2: linear-gradient(135deg, #ff8201, #fb923c);
    --spotlight-glass-bg: rgba(255, 255, 255, 0.05);
    --spotlight-glass-border: rgba(255, 255, 255, 0.1);
    --spotlight-shadow: rgba(0, 0, 0, 0.25);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --spotlight-bg-primary: #0a0a1f;
    --spotlight-bg-secondary: #151533;
    --spotlight-text-primary: #ffffff;
    --spotlight-text-secondary: #b8c2f0;
    --spotlight-text-muted: #8892c7;
    --spotlight-glass-bg: rgba(255, 255, 255, 0.08);
    --spotlight-glass-border: rgba(255, 255, 255, 0.15);
}

/* Light Theme Variables */
[data-theme="light"] {
    --spotlight-bg-primary: #6366f1;
    --spotlight-bg-secondary: #5855eb;
    --spotlight-text-primary: #ffffff;
    --spotlight-text-secondary: #e0e7ff;
    --spotlight-text-muted: #c7d2fe;
    --spotlight-glass-bg: rgba(255, 255, 255, 0.15);
    --spotlight-glass-border: rgba(255, 255, 255, 0.25);
    --spotlight-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Main Spotlight Section */
.starkly-ai-spotlight {
    position: relative;
    padding: 120px 0;
    
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Animated Background */
.spotlight-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.gradient-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--spotlight-gradient-1);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.gradient-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--spotlight-gradient-2);
    bottom: -150px;
    left: -150px;
    animation-delay: 4s;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Content Container */
.starkly-ai-spotlight .container {
    position: relative;
    z-index: 2;
}

/* Chat Mockup Styles */
.chat-mockup-container {
    position: relative;
    padding: 40px 20px;
    margin-top: -8rem;
}

.chat-interface {
    background: var(--spotlight-glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--spotlight-glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.chat-interface:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.chat-header-display {
    padding: 24px 28px; 
    background: linear-gradient(135deg, var(--st-primary-500) 0%, var(--st-primary-600) 50%, var(--st-primary-700) 100%);
    backdrop-filter: var(--st-backdrop-blur);
    -webkit-backdrop-filter: var(--st-backdrop-blur);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--st-glass-border-strong);
    position: relative;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);

}

.chat-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--spotlight-text-primary);
    font-weight: 600;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.chat-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.minimize { background: #fbbf24; }
.control-dot.maximize { background: #10b981; }
.control-dot.close { background: #ffffff; }

.chat-messages-dsiplay {
    padding: 20px; 
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

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

.chat-messages-dsiplay::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-dsiplay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.chat-messages-dsiplay::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.user-message {
    justify-content: flex-end;
}

.ai-message {
    justify-content: flex-start;
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background:rgb(255 255 255);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 25px;
    height: 25px;
    opacity: 0.7;
}

/* AI Avatar */
.ai-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-container {
    position: relative;
    width: 36px;
    height: 36px;
}

.avatar-image {
    width: 36px;
    height: 36px;
    background: var(--spotlight-gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.avatar-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid var(--spotlight-bg-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.message-bubble {
    max-width: 320px;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    font-family: var(--spotlight-font-family, 'Inter', sans-serif);
    letter-spacing: 0.2px;
}

.user-message .message-bubble {
    background: var(--spotlight-gradient-2);
    color: white;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 130, 1, 0.2);
}

.ai-message .message-bubble {
    background: var(--spotlight-glass-bg);
    border: 1px solid var(--spotlight-glass-border);
    color: var(--spotlight-text-primary);
    border-bottom-left-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced content styles */
.product-card {
    background: rgba(255, 130, 1, 0.1);
    border: 1px solid rgba(255, 130, 1, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    font-family: var(--spotlight-font-family, 'Inter', sans-serif);
}

.return-steps {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0;
    font-size: 13px;
    line-height: 1.6;
    font-family: 'Courier New', monospace;
}

.typing-indicator {
    display: flex;
    gap: 3px;
    margin-top: 8px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--spotlight-accent-primary);
    border-radius: 50%;
    animation: typing 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 {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-10px); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Chat Input Styles */
.chat-input-container {
    padding: 15px 20px;
    border-top: 1px solid var(--spotlight-glass-border);
    background: rgba(255, 255, 255, 0.03);
    margin-top: auto;
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--spotlight-glass-border);
    border-radius: 25px;
    padding: 8px 15px;
    backdrop-filter: blur(10px);
}

.chat-input input {
    flex: 1;
    background: #00000000 !important;
    border: none !important;
    outline: none;
    color: var(--spotlight-text-secondary) !important;
    font-size: 14px;
    padding: 10px;

}

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

.send-btn {
    width: 36px;
    height: 36px;
    background: var(--spotlight-gradient-1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--spotlight-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--spotlight-glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: floatIcon 6s ease-in-out infinite;
}

.floating-icon.icon-1 {
    top: 10%;
    right: 0%;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    bottom: 20%;
    right: 5%;
    animation-delay: 2s;
}

.floating-icon.icon-3 {
    top: 50%;
    left: -4%;
    animation-delay: 4s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

/* Content Styles */
.spotlight-content {
    padding-right: 40px;
}

.starkly-badge {
    background: var(--spotlight-gradient-1);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(255, 130, 1, 0.15);
    position: relative;
    overflow: hidden;
}

.starkly-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.spotlight-title {
    font-size: 3.2rem;
    font-weight: 800; 
    line-height: 1.2;
    margin-bottom: 25px;
}

.highlight-gradient {
    background: var(--spotlight-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.spotlight-description {
    font-size: 1.15rem;
    line-height: 1.7; 
    margin-bottom: 40px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover::before {
    opacity: 0.5;
}
.feature-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 150%;
    height: 170%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 80%);
    transform: rotate(0deg);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 130, 1, 0.15), transparent);
    transition: left 0.7s ease;
    z-index: 0;
    pointer-events: none;
}
.feature-item:hover::after {
    left: 100%;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--spotlight-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--spotlight-glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 130, 1, 0.3); 
    border: 1px solid rgba(255, 107, 53, 0.3);
    cursor: pointer;
}

.feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;  
    position: relative; 
    background: var(--spotlight-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--spotlight-glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.icon-emoji {
    font-size: 1.5rem;
    
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700; 
    margin-bottom: 6px;
    line-height: 1.3;
}

.feature-description {
    font-size: 0.95rem; 
    line-height: 1.5;
    margin: 0;
}

/* CTA Section */
.spotlight-cta {
    margin-bottom: 30px;
}

.spotlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--spotlight-gradient-2);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(255, 130, 1, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.spotlight-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spotlight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(255, 130, 1, 0.4),
        0 6px 18px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.spotlight-btn:hover::before {
    opacity: 1;
}

.cta-subtext {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--spotlight-text-muted);
    font-style: italic;
}

/* Tech Tagline */
.tech-tagline {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-tagline span {
    font-size: 0.85rem;
    color: var(--spotlight-text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: var(--spotlight-font-family, 'Inter', sans-serif);
}

/* Enhanced scrolling animation */
.chat-messages-dsiplay {
    animation: fadeIn 0.6s ease-in-out;
}

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

/* Message animation */
.message {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.user-message {
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .spotlight-content {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .spotlight-title {
        font-size: 2.5rem;
    }
    
    .chat-interface {
        transform: none;
    }
    
    .chat-mockup-container {
        padding: 20px 10px;
    }
    
    .chat-messages-dsiplay {
        min-height: 400px;
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .starkly-ai-spotlight {
        padding: 80px 0;
    }
    
    .spotlight-title {
        font-size: 2.2rem;
    }
    
    .spotlight-description {
        font-size: 1rem;
    }
    
    .feature-item {
        padding: 16px;
    }
    
    .floating-icon {
        display: none;
    }
    
    .gradient-orb.orb-1 {
        width: 250px;
        height: 250px;
        top: -125px;
        right: -125px;
    }
    
    .gradient-orb.orb-2 {
        width: 200px;
        height: 200px;
        bottom: -100px;
        left: -100px;
    }
    
    .chat-messages-dsiplay {
        min-height: 350px;
        max-height: 400px;
    }
    
    .message-bubble {
        max-width: 250px;
        font-size: 13px;
    }
    
    .chat-input input {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .spotlight-title {
        font-size: 1.9rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .spotlight-btn {
        justify-content: center;
    }
}

/* Light theme specific font improvements */
[data-theme="light"] .message-bubble {
    font-weight: 500;
    color: #333333;
}

[data-theme="light"] .feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    position: relative;
    background: rgb(255 130 1 / 0%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 130, 1, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(255, 130, 1, 0.3);
}
[data-theme="light"] .tech-tagline span, .cta-subtext   {
    color: #666666;
    font-weight: 400;
    opacity: 0.9;
    visibility: visible;
}

[data-theme="light"] .chat-input input::placeholder {
    color: #777777;
    font-family: var(--spotlight-font-family, 'Inter', sans-serif);
}

/* Additional Animation */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}