/* PWA Install UI Styles */
:root {
    --pwa-overlay-bg: rgba(0, 0, 0, 0.7);
    --pwa-modal-bg: rgba(255, 255, 255, 0.95);
    --pwa-accent: var(--primary);
}

/* Header Install Button */
.pwa-install-btn {
    display: none; /* Hidden by default, shown by JS */
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: pulse-pwa 2s infinite;
}

@keyframes pulse-pwa {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Overlay */
.pwa-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pwa-overlay-bg);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pwa-overlay.active {
    display: block;
    opacity: 1;
}

/* Modal Tray (Appears from bottom) */
.pwa-modal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--pwa-modal-bg);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 30px 20px 40px;
    box-sizing: border-box;
    z-index: 100000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

.pwa-overlay.active + .pwa-modal,
.pwa-modal.active {
    bottom: 0;
}

.pwa-modal-handle {
    width: 40px;
    height: 5px;
    background: #ccc;
    border-radius: 10px;
    margin: -15px auto 20px;
}

.pwa-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    background: #fff;
}

.pwa-modal h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
}

.pwa-modal p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* iOS Specific Guide */
.ios-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #444;
}

.step-icon {
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.share-action-icon {
    width: 20px;
}

/* Install Button for Android */
.btn-install-pwa {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(128, 0, 32, 0.2);
}

.btn-close-pwa {
    margin-top: 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
}
