/* Floating Install Banner for Browser Mode */
.browser-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
    pointer-events: none !important;
}

.browser-banner .banner-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    pointer-events: auto !important;
}

.browser-banner .banner-content i.fa-exclamation-triangle {
    margin-right: 8px;
    pointer-events: none;
}

.browser-banner a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
    padding: 8px 12px;
    margin: -4px -8px;
    display: inline-block;
    -webkit-tap-highlight-color: rgba(255,255,255,0.3);
    touch-action: manipulation;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

.browser-banner a:active {
    opacity: 0.8;
}

.browser-banner .close-banner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    line-height: 1;
    border-radius: 8px;
    -webkit-tap-highlight-color: rgba(255,255,255,0.3);
    touch-action: manipulation;
    pointer-events: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.browser-banner .close-banner:active {
    opacity: 0.7;
    transform: translateY(-50%) scale(0.95);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Hide banner in standalone mode */
@media (display-mode: standalone), (display-mode: fullscreen) {
    .browser-banner {
        display: none !important;
    }
}

/* Adjust body padding when banner is visible - removed to allow interaction */
/* body.has-browser-banner {
    padding-top: 48px;
} */

@media (max-width: 480px) {
    .browser-banner {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .browser-banner .close-banner {
        right: 5px;
    }
}

/* Install Banner (Green - Bottom) */
#installBanner {
    pointer-events: none !important;
}

#installBanner * {
    pointer-events: auto !important;
}

#installBanner button {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
    min-height: 44px !important;
    cursor: pointer !important;
}
