/* Conversion CTA Styles */

/* Promotional Banner Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
    }
}

@keyframes slide-in-top {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.promo-banner {
    animation: slide-in-top 0.5s ease-out;
}

.promo-banner .pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Modal Animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-backdrop {
    animation: fade-in 0.3s ease-out;
}

.modal-content {
    animation: slide-up 0.3s ease-out;
}

/* Widget Animations */
@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.widget-slide-right {
    animation: slide-in-right 0.5s ease-out;
}

.widget-slide-left {
    animation: slide-in-left 0.5s ease-out;
}

/* Social Proof Notification */
@keyframes notification-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.social-proof-notification {
    animation: slide-in-left 0.5s ease-out, notification-bounce 0.6s ease-out 0.5s;
}

/* Hover Effects */
.cta-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Urgency Indicators */
@keyframes urgent-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.urgent-indicator {
    animation: urgent-pulse 1.5s infinite;
}

/* Discount Badge */
@keyframes rotate-badge {
    0% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}

.discount-badge {
    animation: rotate-badge 2s infinite ease-in-out;
}

/* Progress Indicators */
.progress-bar {
    background: linear-gradient(90deg, #10b981, #059669);
    animation: progress-fill 2s ease-out;
}

@keyframes progress-fill {
    from { width: 0%; }
    to { width: var(--progress-width, 70%); }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .promo-banner {
        padding: 0.75rem;
    }
    
    .widget-slide-right {
        bottom: 1rem;
        right: 1rem;
        max-width: calc(100vw - 2rem);
    }
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success States */
@keyframes success-checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-checkmark {
    animation: success-checkmark 0.6s ease-out;
}

/* Gradient Backgrounds */
.gradient-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Beautiful Demo Button Styles */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-12deg);
    }
    100% {
        transform: translateX(200%) skewX(-12deg);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.demo-button-beautiful {
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

.demo-button-beautiful:hover .shimmer-effect {
    animation: shimmer 1.5s ease-in-out;
}

.demo-button-beautiful::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.demo-button-beautiful:hover::before {
    opacity: 1;
}

.demo-button-beautiful .pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* Compact demo button adjustments */
.demo-button-beautiful.compact {
    animation: none; /* Remove float animation for compact version */
}

.demo-button-beautiful.compact:hover {
    animation: float 2s ease-in-out; /* Only animate on hover for compact version */
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .demo-button-beautiful {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .demo-button-beautiful .mr-2 {
        margin-right: 0.25rem;
    }
}

/* Chrome Extension Banner Styles */
#chromeExtensionBanner {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#chromeExtensionBanner .bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

#chromeExtensionBanner .bg-white\/30 {
    background-color: rgba(255, 255, 255, 0.3);
}

#chromeExtensionBanner .border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Chrome Extension Banner Animation */
@keyframes chrome-banner-slide {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#chromeExtensionBanner {
    animation: chrome-banner-slide 0.5s ease-out;
}

/* Chrome icon animation */
@keyframes chrome-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#chromeExtensionBanner .fa-chrome:hover {
    animation: chrome-spin 1s ease-in-out;
}

/* Install button hover effects */
#chromeExtensionBanner a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Close button hover effect */
#closeChromeExtensionBanner:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Responsive adjustments for Chrome banner */
@media (max-width: 768px) {
    #chromeExtensionBanner {
        padding: 12px 16px;
    }
    
    #chromeExtensionBanner .hidden.sm\\:inline {
        display: none !important;
    }
    
    #chromeExtensionBanner .sm\\:hidden {
        display: inline !important;
    }
}

/* Partners Scrolling Banner Styles */
.partners-scroll {
    animation: scroll-left 40s linear infinite;
    width: max-content;
}

.partners-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Individual partner styling */
.partners-scroll > div {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    cursor: pointer;
}

/* Responsive adjustments for partners banner */
@media (max-width: 768px) {
    .partners-scroll {
        animation: scroll-left 30s linear infinite;
    }
    
    .partners-scroll > div {
        min-width: 150px;
    }
    
    .partners-scroll > div > div {
        font-size: 1.5rem !important;
    }
}