/* Premium Glassmorphism Design for Web Push Banner */

.wwp-optin-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 40px);
    z-index: 999999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0,0,0,0.05);
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}

.wwp-optin-banner.wwp-visible {
    transform: translateY(0);
    opacity: 1;
}

.wwp-optin-banner.wwp-hidden {
    display: none;
}

.wwp-banner-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wwp-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}

.wwp-banner-icon svg {
    width: 24px;
    height: 24px;
    animation: wwp-ring 4s ease infinite;
}

.wwp-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.wwp-banner-text p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.wwp-banner-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.wwp-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.wwp-btn-primary {
    background: #111827;
    color: white;
    box-shadow: 0 4px 6px rgba(17, 24, 39, 0.1);
}

.wwp-btn-primary:hover {
    background: #374151;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(17, 24, 39, 0.15);
}

.wwp-btn-secondary {
    background: rgba(243, 244, 246, 0.8);
    color: #4b5563;
}

.wwp-btn-secondary:hover {
    background: #e5e7eb;
}

@keyframes wwp-ring {
    0%, 100% { transform: rotate(0deg); }
    5% { transform: rotate(15deg); }
    10% { transform: rotate(-10deg); }
    15% { transform: rotate(5deg); }
    20% { transform: rotate(-5deg); }
    25% { transform: rotate(0deg); }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wwp-optin-banner {
        background: rgba(30, 41, 59, 0.85);
        border-color: rgba(255, 255, 255, 0.1);
        color: #f8fafc;
    }
    
    .wwp-banner-text h3 {
        color: #f8fafc;
    }
    
    .wwp-banner-text p {
        color: #cbd5e1;
    }
    
    .wwp-btn-primary {
        background: #6366f1;
        color: white;
    }
    
    .wwp-btn-primary:hover {
        background: #4f46e5;
    }
    
    .wwp-btn-secondary {
        background: rgba(255, 255, 255, 0.1);
        color: #cbd5e1;
    }
    
    .wwp-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .wwp-optin-banner {
        bottom: 20px;
        right: 20px;
        width: calc(100vw - 40px);
    }
    .wwp-banner-actions {
        flex-direction: column;
    }
}
