/**
 * Marketing Popup Styles - Floating Left Design
 * Modern, minimizable popup card with professional animations
 */

/* Popup Container */
.popup-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 10000;
    pointer-events: none;
}

.popup-float > * {
    pointer-events: auto;
}

/* Toggle Button (Minimized State) */
.popup-toggle {
    display: none;
    position: absolute;
    left: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 12px 24px;
    cursor: pointer;
    box-shadow: 0 -4px 16px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.popup-toggle:hover {
    transform: translateY(-4px);
    box-shadow: 0 -6px 24px rgba(59, 130, 246, 0.5);
}

.popup-toggle-icon {
    display: inline-block;
    font-size: 1.25rem;
    margin-right: 8px;
    animation: pulseGlow 2s ease-in-out infinite;
}

.popup-toggle-text {
    display: inline-block;
}

/* Popup Card (Expanded State) */
.popup-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    width: 380px;
    max-width: calc(100vw - 40px);
    margin-bottom: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.3s ease;
}

.popup-card:hover {
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
    transform: translateY(-4px);
}

/* Glow Effect */
.popup-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    opacity: 0;
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

/* Minimize Button */
.popup-minimize {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    color: var(--text-light);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.popup-minimize:hover {
    background: var(--border-light);
    color: var(--text);
    transform: rotate(90deg);
}

/* Popup Header */
.popup-header {
    padding: 32px 24px 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--light-bg) 0%, transparent 100%);
}

.popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.popup-tagline {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* Popup Body */
.popup-body {
    padding: 0 24px 28px;
}

/* Feature Tags */
.popup-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--light-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s ease;
}

.feature-tag:hover {
    background: var(--border-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Popup Description */
.popup-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0 0 20px 0;
}

/* Call to Action */
.popup-cta {
    display: flex;
    justify-content: center;
}

.popup-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* State Management */
.popup-float.minimized .popup-card {
    display: none;
}

.popup-float.minimized .popup-toggle {
    display: flex;
    align-items: center;
    animation: slideInUp 0.3s ease;
}

.popup-float:not(.minimized) .popup-toggle {
    display: none;
}

.popup-float.hidden {
    display: none;
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
    }
    50% {
        opacity: 0.7;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-float {
        left: 10px;
        bottom: 10px;
    }

    .popup-card {
        width: calc(100vw - 40px);
        max-width: 360px;
    }

    .popup-header {
        padding: 28px 20px 16px;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .popup-tagline {
        font-size: 0.8125rem;
    }

    .popup-body {
        padding: 0 20px 24px;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .popup-description {
        font-size: 0.8125rem;
    }

    .popup-btn-primary {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .popup-float {
        left: 10px;
        bottom: 10px;
    }

    .popup-card {
        width: calc(100vw - 30px);
        max-width: 100%;
    }

    .popup-toggle {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .popup-header {
        padding: 24px 16px 12px;
    }

    .popup-body {
        padding: 0 16px 20px;
    }
}

/* Print - Hide popup */
@media print {
    .popup-float {
        display: none !important;
    }
}
