/* Mobile PWA Notification Styles */

.mobile-pwa-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 12px 15px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    display: none;
}

.mobile-pwa-banner.show {
    transform: translateY(0);
    display: block;
}

.mobile-pwa-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.mobile-pwa-banner .banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.mobile-pwa-banner .banner-text strong {
    font-weight: 600;
}

.mobile-pwa-banner .banner-actions {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.mobile-pwa-banner .btn-install {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.mobile-pwa-banner .btn-install:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.mobile-pwa-banner .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mobile-pwa-banner .btn-close:hover {
    opacity: 1;
}


/* Install Button Floating */

.pwa-install-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

.pwa-install-float.show {
    display: flex;
}

.pwa-install-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.pwa-install-float i {
    font-size: 16px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    }
}


/* iOS Safari Instructions */

.ios-install-guide {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    border-left: 4px solid #2563eb;
}

.ios-install-guide.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

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

.ios-install-guide .guide-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.ios-install-guide .guide-icon {
    width: 40px;
    height: 40px;
    background: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.ios-install-guide .guide-icon i {
    color: white;
    font-size: 20px;
}

.ios-install-guide .guide-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.ios-install-guide .guide-steps {
    margin-bottom: 15px;
}

.ios-install-guide .guide-step {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b5563;
}

.ios-install-guide .guide-step i {
    margin-right: 8px;
    color: #2563eb;
    width: 16px;
}

.ios-install-guide .guide-actions {
    display: flex;
    gap: 10px;
}

.ios-install-guide .btn-understand {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.ios-install-guide .btn-close-guide {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
}


/* Mobile responsive adjustments */

@media (max-width: 768px) {
    .mobile-pwa-banner {
        padding: 10px 12px;
    }
    .mobile-pwa-banner .banner-text {
        font-size: 13px;
    }
    .mobile-pwa-banner .btn-install {
        padding: 5px 10px;
        font-size: 11px;
    }
    .pwa-install-float {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
    .ios-install-guide {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 16px;
    }
}


/* Hide when in standalone mode (already installed) */

@media (display-mode: standalone) {
    .mobile-pwa-banner,
    .pwa-install-float,
    .ios-install-guide {
        display: none !important;
    }
}


/* Android specific styles */

.android-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    border-top: 3px solid #10b981;
}

.android-install-prompt.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

.android-install-prompt .prompt-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.android-install-prompt .prompt-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.android-install-prompt .prompt-icon i {
    color: white;
    font-size: 24px;
}

.android-install-prompt .prompt-text {
    flex: 1;
}

.android-install-prompt .prompt-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.android-install-prompt .prompt-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.android-install-prompt .prompt-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.android-install-prompt .btn-install-now {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.android-install-prompt .btn-maybe-later {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
}