/* PWA Installation Banner Styles */

.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    max-height: 90vh;
    overflow-y: auto;
}

.pwa-install-banner.pwa-install-visible {
    transform: translateY(0);
}

.pwa-install-content {
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-install-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

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

.pwa-install-title {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pwa-install-title strong {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.2rem;
}

.pwa-install-subtitle {
    font-size: 0.85rem;
    color: #666;
}

.pwa-install-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.pwa-install-close:hover {
    color: #333;
}

.pwa-install-body {
    margin-bottom: 1rem;
}

.pwa-install-body p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.pwa-install-instructions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
}

.pwa-install-instructions p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.pwa-install-instructions ol {
    margin: 0;
    padding-left: 1.5rem;
}

.pwa-install-instructions li {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.pwa-ios-share-icon {
    font-size: 1.2rem;
    vertical-align: middle;
}

.pwa-install-benefits {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
}

.pwa-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.pwa-benefit-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.pwa-benefit span:last-child {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.pwa-install-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pwa-install-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.pwa-install-later {
    background: #f8f9fa;
    color: #666;
}

.pwa-install-later:hover {
    background: #e9ecef;
    color: #333;
}

.pwa-install-now {
    background: #00d1b2;
    color: white;
}

.pwa-install-now:hover {
    background: #00c4a7;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 209, 178, 0.3);
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .pwa-install-content {
        padding: 1rem 0.75rem;
    }
    
    .pwa-install-title strong {
        font-size: 1rem;
    }
    
    .pwa-install-benefits {
        gap: 0.25rem;
    }
    
    .pwa-benefit-icon {
        font-size: 1.25rem;
    }
    
    .pwa-benefit span:last-child {
        font-size: 0.75rem;
    }
}

/* Tablet and larger screens - show as modal instead of bottom banner */
@media (min-width: 769px) {
    .pwa-install-banner {
        top: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(0);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        max-height: none;
    }
    
    .pwa-install-banner.pwa-install-visible {
        opacity: 1;
    }
    
    .pwa-install-content {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        max-width: 500px;
        width: 90%;
        padding: 1.5rem;
        transform: scale(0.9);
        transition: transform 0.3s ease-in-out;
    }
    
    .pwa-install-banner.pwa-install-visible .pwa-install-content {
        transform: scale(1);
    }
}
