/**
 * Location Detection Popup Styles
 */

.idch-lang-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.idch-lang-popup.idch-lang-popup-show {
    opacity: 1;
    visibility: visible;
}

.idch-lang-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.idch-lang-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: transform 0.3s ease;
}

.idch-lang-popup.idch-lang-popup-show .idch-lang-popup-content {
    transform: translate(-50%, -50%) scale(1);
}

.idch-lang-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.idch-lang-popup-close:hover {
    color: #4b5563;
}

.idch-lang-popup-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.idch-lang-popup-icon svg {
    width: 64px;
    height: 64px;
}

.idch-lang-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.idch-lang-popup-description {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 28px 0;
    line-height: 1.6;
}

.idch-lang-popup-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.idch-lang-popup-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.idch-lang-popup-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.idch-lang-popup-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.idch-lang-popup-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.idch-lang-popup-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (min-width: 640px) {
    .idch-lang-popup-actions {
        flex-direction: row;
    }
    
    .idch-lang-popup-btn {
        flex: 1;
    }
}

/* Animation for entrance */
@keyframes idch-popup-slide-in {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .idch-lang-popup-content {
        background: #1f2937;
    }
    
    .idch-lang-popup-title {
        color: #f9fafb;
    }
    
    .idch-lang-popup-description {
        color: #d1d5db;
    }
    
    .idch-lang-popup-btn-secondary {
        background: #374151;
        color: #f9fafb;
    }
    
    .idch-lang-popup-btn-secondary:hover {
        background: #4b5563;
    }
}

/* Print styles */
@media print {
    .idch-lang-popup {
        display: none !important;
    }
}

