/* ==========================================================================
   iOS Install Banner
   Version: 2.2.0 - Flexbox layout with share and plus icons
   ========================================================================== */

:root {
    color-scheme: light only;
}

.ios-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #e5e7eb;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 9000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

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

.ios-install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.ios-install-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.ios-install-icon img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.ios-install-text {
    flex: 1;
    min-width: 0;
}

.ios-install-title {
    font-size: 15px;
    font-weight: 700;
    color: #1c1c1e;
    margin-bottom: 4px;
    line-height: 1.3;
}

.ios-install-instructions {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
}

/* Common styles for both icons */
.ios-install-instructions .ios-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    vertical-align: middle;
}

.ios-install-instructions .ios-icon svg {
    width: 18px;
    height: 18px;
}

/* Share icon (arrow up) - blue */
.ios-install-instructions .share-icon svg {
    stroke: #007aff;
}

/* Plus icon - gray/black like iOS */
.ios-install-instructions .plus-icon svg {
    stroke: #1c1c1e;
}

.ios-install-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ios-install-close:active {
    background: #e5e7eb;
}

.ios-install-close svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

/* Animation for share icon only */
@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.ios-install-instructions .share-icon svg {
    animation: bounce-arrow 1.5s ease-in-out infinite;
}

/* Tablet adjustments */
@media (min-width: 600px) {
    .ios-install-banner {
        padding: 20px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
    
    .ios-install-icon {
        width: 60px;
        height: 60px;
    }
    
    .ios-install-icon img {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .ios-install-title {
        font-size: 16px;
    }
    
    .ios-install-instructions {
        font-size: 14px;
    }
    
    .ios-install-instructions .ios-icon {
        width: 24px;
        height: 24px;
    }
    
    .ios-install-instructions .ios-icon svg {
        width: 20px;
        height: 20px;
    }
}
