/* PWA Update Prompt Styles */

.pwa-update-prompt {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 999999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.pwa-update-prompt.show {
    opacity: 1;
    transform: translateX(0);
}

.pwa-update-prompt-content {
    background: linear-gradient(135deg, #DC2626, #991B1B);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pwa-update-icon {
    font-size: 48px;
    text-align: center;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.pwa-update-text {
    text-align: center;
}

.pwa-update-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
}

.pwa-update-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.pwa-update-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pwa-update-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.pwa-update-btn-primary {
    background: white;
    color: #DC2626;
}

.pwa-update-btn-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pwa-update-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pwa-update-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .pwa-update-prompt {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .pwa-update-prompt-content {
        padding: 15px;
    }
    
    .pwa-update-icon {
        font-size: 36px;
    }
    
    .pwa-update-text strong {
        font-size: 16px;
    }
    
    .pwa-update-text p {
        font-size: 13px;
    }
    
    .pwa-update-actions {
        flex-direction: column;
    }
    
    .pwa-update-btn {
        width: 100%;
    }
}

/* Position variations */
.pwa-update-prompt.bottom {
    top: auto;
    bottom: 20px;
}

.pwa-update-prompt.left {
    right: auto;
    left: 20px;
}

.pwa-update-prompt.center {
    left: 50%;
    right: auto;
    transform: translate(-50%, 100%);
}

.pwa-update-prompt.center.show {
    transform: translate(-50%, 0);
}
