/* App Download Popup Styles */
.app-download-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-download-overlay.show {
    opacity: 1;
    visibility: visible;
}

.app-download-popup {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(30px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.app-download-overlay.show .app-download-popup {
    transform: scale(1) translateY(0);
}

.app-popup-header {
    background: linear-gradient(135deg, #8B0000, #FF8A50);
    color: white;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.app-popup-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    backdrop-filter: blur(10px);
}

.app-popup-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
}

.app-popup-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.app-popup-content {
    padding: 30px 25px;
    text-align: center;
}

.app-popup-message {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px;
}

.app-popup-features {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    padding: 20px 0;
    background: #f8f9fa;
    border-radius: 12px;
}

.app-popup-feature {
    text-align: center;
    flex: 1;
}

.app-popup-feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #E65100, #FF8A50);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px;
}

.app-popup-feature-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.app-popup-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.app-popup-btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.app-popup-btn-primary {
    background: linear-gradient(135deg, #E65100, #FF8A50);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3);
}

.app-popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.4);
}

.app-popup-btn-secondary {
    background: #8B0000;
    color: #666;
    border: 1px solid #e0e0e0;
}

.app-popup-btn-secondary:hover {
    background: #e8eaed;
    transform: translateY(-1px);
}

.app-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.app-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .app-download-popup {
        width: 95%;
        margin: 20px;
    }
    
    .app-popup-header {
        padding: 25px 20px;
    }
    
    .app-popup-content {
        padding: 25px 20px;
    }
    
    .app-popup-title {
        font-size: 20px;
    }
    
    .app-popup-message {
        font-size: 14px;
    }
    
    .app-popup-actions {
        flex-direction: column;
    }
    
    .app-popup-features {
        flex-direction: column;
        gap: 15px;
    }
}

/* Animation classes for entrance */
.popup-bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.9) translateY(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0px);
    }
}