/**
 * PWA Styles - Install button and update notification
 */

/* Install Button */
.pwa-install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    
    display: none;
    
    transition: all 0.3s ease;
}

.pwa-install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.pwa-install-button:active {
    transform: translateY(0);
}

/* Update Button */
.pwa-update-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    
    padding: 12px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    
    display: none;
    
    transition: all 0.3s ease;
    
    animation: pulse 2s infinite;
}

.pwa-update-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.pwa-update-button:active {
    transform: translateY(0);
}

/* Pulse animation for update button */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(245, 87, 108, 0.8);
    }
}

/* Installed mode adjustments */
.pwa-installed {
    /* Add any styles specific to installed mode */
}

/* Browser mode adjustments */
.pwa-browser {
    /* Add any styles specific to browser mode */
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .pwa-install-button {
        bottom: 10px;
        right: 10px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .pwa-update-button {
        top: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .pwa-install-button {
        bottom: 10px;
        right: 10px;
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .pwa-install-button {
        bottom: 15px;
        right: 15px;
        padding: 13px 22px;
        font-size: 15px;
    }
}

/* Hide install button when in standalone mode */
@media (display-mode: standalone) {
    .pwa-install-button {
        display: none !important;
    }
}

/* iOS standalone mode */
@media (display-mode: standalone) {
    /* Add safe area padding for iOS notch */
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

