/* Mobile Warning Popup Styles */

/* Popup overlay - covers entire screen */
.mobile-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show overlay */
.mobile-warning-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Popup container */
.mobile-warning-popup {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.4),
        0 10px 10px -5px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Popup animation when shown */
.mobile-warning-overlay.show .mobile-warning-popup {
    transform: scale(1) translateY(0);
}

/* Popup header */
.mobile-warning-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #334155;
    position: relative;
}

/* Warning icon */
.mobile-warning-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.mobile-warning-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Warning icon pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

/* Popup title */
.mobile-warning-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* Popup content */
.mobile-warning-content {
    padding: 1rem 1.5rem 1.5rem;
}

/* Warning message */
.mobile-warning-message {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* Popup footer */
.mobile-warning-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
}

/* Close button */
.mobile-warning-close {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.mobile-warning-close:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mobile-warning-close:active {
    transform: translateY(0);
}

/* Additional mobile-specific styles */
@media (max-width: 480px) {
    .mobile-warning-popup {
        margin: 1rem;
        max-width: calc(100% - 2rem);
        border-radius: 8px;
    }
    
    .mobile-warning-header,
    .mobile-warning-content,
    .mobile-warning-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .mobile-warning-title {
        font-size: 1.1rem;
    }
    
    .mobile-warning-message {
        font-size: 0.9rem;
    }
    
    .mobile-warning-close {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-warning-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .mobile-warning-popup {
        border: 2px solid #64748b;
    }
    
    .mobile-warning-close {
        border: 2px solid currentColor;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .mobile-warning-overlay,
    .mobile-warning-popup,
    .mobile-warning-close,
    .mobile-warning-icon {
        transition: none;
        animation: none;
    }
    
    .mobile-warning-overlay.show .mobile-warning-popup {
        transform: none;
    }
}

/* Dark mode enhancement for better visibility */
@media (prefers-color-scheme: dark) {
    .mobile-warning-overlay {
        background: rgba(0, 0, 0, 0.97);
    }
}
