/* PWA & Advanced Features Styling */

/* ==================== PWA INSTALL BUTTON ==================== */

.pwa-install-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(26, 95, 60, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(26, 95, 60, 1);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(26, 95, 60, 0.3);
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(26, 95, 60, 0.4);
    background: rgba(26, 95, 60, 1);
}

.pwa-install-btn svg {
    width: 20px;
    height: 20px;
}

.pwa-install-btn::before {
    content: 'Work offline & Install for quick access!';
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pwa-install-btn.show-tooltip::before {
    opacity: 1;
}

/* ==================== PWA UPDATE NOTIFICATION ==================== */

.pwa-update-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(26, 95, 60, 0.3);
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.pwa-update-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.pwa-update-notification p {
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: #1A5F3C;
}

.pwa-update-notification .update-btn,
.pwa-update-notification .dismiss-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

.pwa-update-notification .update-btn {
    background: #1A5F3C;
    color: white;
    border: none;
}

.pwa-update-notification .update-btn:hover {
    background: #14492D;
}

.pwa-update-notification .dismiss-btn {
    background: transparent;
    border: 1px solid #ccc;
    color: #666;
}

.pwa-update-notification .dismiss-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ==================== AMBIENT EFFECTS TOGGLE ==================== */

.ambient-effects-toggle {
    opacity: 0.7;
}

.ambient-effects-toggle:hover {
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
}

/* ==================== DARK MODE ADJUSTMENTS ==================== */

body.dark-mode .pwa-update-notification {
    background: rgba(10, 20, 30, 0.95);
    border-color: rgba(26, 95, 60, 0.5);
}

body.dark-mode .pwa-update-notification p {
    color: #4CAF50;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .pwa-install-btn {
        bottom: 1.5rem;
        left: 1.5rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .pwa-install-btn span {
        display: none;
    }

    .pwa-install-btn::before {
        display: none;
    }

    .pwa-update-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .ambient-effects-toggle {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}