/* PWA Install Banner Styles */
#pwaInstallBanner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: space-between;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    animation: slideDown 0.3s ease-out;
}

#pwaInstallBanner.show {
    display: flex;
}

#pwaInstallBanner.hide {
    animation: slideUp 0.3s ease-out forwards;
}

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

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

.pwa-banner-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.pwa-banner-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

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

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

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-install-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.pwa-install-btn:active {
    transform: translateY(0);
}

.pwa-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

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

/* Adjust announcement bar position when PWA banner is visible */
body.pwa-banner-visible #announcementBar {
    margin-top: 56px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #pwaInstallBanner {
        padding: 10px 15px;
        flex-wrap: wrap;
    }

    .pwa-banner-content {
        width: 100%;
        margin-bottom: 8px;
    }

    .pwa-banner-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .pwa-install-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    body.pwa-banner-visible #announcementBar {
        margin-top: 80px;
    }
}
