/* Floating Install Button */
.floating-install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    z-index: 1000;
    display: none;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.floating-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* iOS Instructions Banner */
.ios-instructions-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white;
    padding: 12px 15px;
    z-index: 999;
    display: none;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-content button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
}

.close-btn {
    background: none !important;
    border: none !important;
    font-size: 18px;
    padding: 0 8px !important;
}

/* Install Modal */
.install-modal, .ios-install-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-body ul {
    text-align: left;
    margin: 15px 0;
}

.modal-body li {
    margin: 8px 0;
}

.ios-steps {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.ios-steps ol {
    text-align: left;
    margin: 15px 0;
}

.ios-steps li {
    margin: 10px 0;
}

.share-icon {
    font-size: 1.2em;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-primary {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
}

/* iOS Steps in Detailed Guide */
.ios-steps .step {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.step-number {
    background: #007aff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.step-content p {
    margin: 0 0 10px 0;
    color: #666;
}

.step-visual {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-weight: 500;
    display: inline-block;
}

.ios-benefits {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.ios-benefits ul {
    margin: 10px 0;
}

/* Status Badge */
.status-badge {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 998;
}

.status-installed {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.status-available {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ff9800;
}

.status-ios {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #2196f3;
}

.status-browser {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-install-btn {
        bottom: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}