/* ============================================================================
   PWA (Progressive Web App)
   - PWA install button
   - Update notification banner
   ============================================================================ */

/* PWA Install Button */
.install-button {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    align-items: center;
    gap: 8px;
}

.install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.install-button.show {
    display: inline-flex;
}

.install-icon {
    font-size: 1.1em;
}

/* Mobile install button - compact */
@media (max-width: 768px) {
    .install-button {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    .install-button .install-text {
        display: none;
    }
}

/* Update notification banner */
.update-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.update-banner.show {
    display: flex;
}

.update-banner button {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.update-banner button:hover {
    transform: scale(1.05);
}
