/* ========================================
   PWA INSTALL PROMPT
   ======================================== */

.pwa-install-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pwa-install-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.pwa-install-prompt {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: linear-gradient(135deg, #151b23 0%, #0d1117 100%);
    border: 1px solid #00ff9d;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 255, 157, 0.2);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
}

.pwa-install-prompt.active {
    bottom: 0;
}

.pwa-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #8b949e;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #e6edf3;
    transform: rotate(90deg);
}

.pwa-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pwa-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.pwa-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #00ff9d;
    margin: 0 0 0.5rem 0;
    letter-spacing: 1px;
}

.pwa-subtitle {
    color: #8b949e;
    font-size: 0.875rem;
    margin: 0;
}

.pwa-steps {
    margin: 1.5rem 0;
}

.pwa-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: rgba(0, 255, 157, 0.05);
    border-left: 3px solid #00ff9d;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pwa-step:hover {
    background: rgba(0, 255, 157, 0.1);
    transform: translateX(4px);
}

.pwa-step-number {
    width: 24px;
    height: 24px;
    background: #00ff9d;
    color: #0a0e14;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.pwa-step-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pwa-step-text {
    flex: 1;
    color: #e6edf3;
    font-size: 0.875rem;
    line-height: 1.4;
}

.pwa-benefits {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

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

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

.pwa-benefit span:last-child {
    color: #8b949e;
    font-size: 0.75rem;
}

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

.pwa-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pwa-btn-dismiss {
    background: rgba(255, 255, 255, 0.1);
    color: #8b949e;
    border: 1px solid #30363d;
}

.pwa-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #e6edf3;
}

.pwa-btn-primary {
    background: #00ff9d;
    color: #0a0e14;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.pwa-btn-primary:hover {
    background: #00cc7d;
    box-shadow: 0 6px 20px rgba(0, 255, 157, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .pwa-install-prompt {
        width: 95%;
        padding: 1.25rem;
    }

    .pwa-header h3 {
        font-size: 1.25rem;
    }

    .pwa-benefits {
        flex-direction: column;
    }

    .pwa-actions {
        flex-direction: column;
    }

    .pwa-btn {
        width: 100%;
    }
}
