/* PWA Install Modal Styles */

.pwa-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pwa-modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: pwaModalSlide 0.3s ease-out;
}

@keyframes pwaModalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pwa-close:hover {
    background: #F5F5F5;
    color: #000;
}

.pwa-modal-header {
    text-align: center;
    padding: 30px 20px 20px;
    border-bottom: 1px solid #E0E0E0;
}

.pwa-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pwa-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2C3E50;
    font-weight: 600;
}

.pwa-modal-body {
    padding: 30px;
}

.pwa-instructions {
    text-align: left;
}

.pwa-instructions h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #2C3E50;
}

.pwa-instructions h4 {
    margin: 20px 0 15px 0;
    font-size: 16px;
    color: #2C3E50;
}

.pwa-instructions ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: install-steps;
}

.pwa-instructions li {
    margin-bottom: 20px;
    padding-left: 50px;
    position: relative;
    line-height: 1.6;
    color: #333;
    font-size: 15px;
    counter-increment: install-steps;
}

.pwa-instructions li::before {
    content: counter(install-steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: #3498DB;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: #F0F7FF;
    border: 2px solid #3498DB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.pwa-instructions li {
    padding-left: 50px;
}

.pwa-instructions li::before {
    display: none;
}

.ios-share-icon {
    color: #007AFF;
    font-weight: bold;
}

.pwa-button {
    background: #3498DB;
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    margin: 10px 0;
}

.pwa-button:hover {
    background: #2980B9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.pwa-install-button {
    background: #27AE60;
    font-size: 18px;
    padding: 18px 30px;
}

.pwa-install-button:hover {
    background: #219A52;
}

.pwa-warning {
    background: #FFF3CD;
    color: #856404;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #FFEEBA;
}

.pwa-tip {
    background: #D1ECF1;
    color: #0C5460;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    border: 1px solid #BEE5EB;
}

.pwa-or {
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-weight: 600;
    position: relative;
}

.pwa-or::before,
.pwa-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #E0E0E0;
}

.pwa-or::before {
    left: 0;
}

.pwa-or::after {
    right: 0;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .pwa-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .pwa-modal-header {
        padding: 20px 15px 15px;
    }
    
    .pwa-modal-body {
        padding: 20px;
    }
    
    .pwa-icon {
        width: 60px;
        height: 60px;
    }
    
    .pwa-modal-header h2 {
        font-size: 20px;
    }
    
    .pwa-instructions h3 {
        font-size: 16px;
    }
    
    .pwa-instructions li {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .step-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}