/**
 * PWA Styles - QuantisDigitale
 * Notifications, Boutons Installation, UI PWA
 */

/* ==================== NOTIFICATION MISE À JOUR ==================== */

.pwa-update-notification {
    position: fixed;
    bottom: -200px;
    left: 1rem;
    right: 1rem;
    z-index: 1080;
    background: rgba(11, 15, 14, 0.95);
    border: 1px solid rgba(59, 255, 122, 0.3);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: bottom 0.3s ease;
}

.pwa-update-notification.show {
    bottom: 1rem;
}

.pwa-update-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pwa-update-content > i {
    font-size: 1.5rem;
    color: #3BFF7A;
    flex-shrink: 0;
}

.pwa-update-texte {
    flex: 1;
}

.pwa-update-texte strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #F1F5F4;
    margin-bottom: 0.25rem;
}

.pwa-update-texte p {
    font-size: 0.875rem;
    color: rgba(241, 245, 244, 0.72);
    margin: 0;
}

.pwa-update-btn {
    padding: 0.5rem 1rem;
    background: #3BFF7A;
    color: #0B0F0E;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-update-btn:hover {
    background: #32E06A;
    transform: translateY(-2px);
}

.pwa-update-close {
    padding: 0.5rem;
    background: transparent;
    color: rgba(241, 245, 244, 0.72);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pwa-update-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #F1F5F4;
}

/* ==================== RESPONSIVE ==================== */

@media (min-width: 768px) {
    .pwa-update-notification {
        left: auto;
        right: 1rem;
        max-width: 400px;
    }
}

/* ==================== THÈME CLAIR ==================== */

[data-theme="light"] .pwa-update-notification {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 255, 122, 0.3);
}

[data-theme="light"] .pwa-update-texte strong {
    color: #0B0F0E;
}

[data-theme="light"] .pwa-update-texte p {
    color: rgba(11, 15, 14, 0.72);
}

[data-theme="light"] .pwa-update-close {
    color: rgba(11, 15, 14, 0.72);
}

[data-theme="light"] .pwa-update-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0B0F0E;
}

/* ==================== ANIMATIONS ==================== */

@keyframes slideUp {
    from {
        bottom: -200px;
        opacity: 0;
    }
    to {
        bottom: 1rem;
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        bottom: 1rem;
        opacity: 1;
    }
    to {
        bottom: -200px;
        opacity: 0;
    }
}

.pwa-update-notification.show {
    animation: slideUp 0.3s ease forwards;
}

.pwa-update-notification:not(.show) {
    animation: slideDown 0.3s ease forwards;
}