/* PWA Installation Styles */
.pwa-banner {
    position: fixed;
    bottom: 85px; /* Above bottom nav */
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pwa-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

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

.pwa-banner-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.pwa-banner-text {
    display: flex;
    flex-direction: column;
}

.pwa-banner-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-color);
}

.pwa-banner-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.pwa-btn-install {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.pwa-btn-install:hover {
    background: var(--primary-dark);
}

.pwa-btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
}

/* iOS Instruction Modal */
.pwa-ios-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.pwa-ios-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.pwa-ios-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 320px;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.pwa-ios-modal.show .pwa-ios-content {
    transform: translateY(0);
}

.pwa-ios-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.pwa-ios-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.pwa-ios-share-icon {
    display: inline-flex;
    background: var(--bg-light);
    padding: 5px 10px;
    border-radius: 8px;
    margin: 0 5px;
    color: #007aff; /* Safari blue */
}

.pwa-ios-close {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
