/* =====================================================
   GEO-BLOCK OVERLAY STYLES
   Shown when user is from a restricted region
   ===================================================== */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none !important;
}

/* Main Content Hidden State */
.main-content.hidden {
    display: none !important;
}

.loading-container {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-container p {
    color: #a1a1aa;
    font-size: 1rem;
}

/* Geo-Block Overlay */
.geo-block-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.geo-block-overlay.hidden {
    display: none;
}

.geo-block-container {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(239, 68, 68, 0.1);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.geo-block-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.3);
}

.geo-block-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.geo-block-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.geo-block-message {
    font-size: 1.125rem;
    color: #a1a1aa;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.geo-block-info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.geo-block-info p {
    color: #818cf8;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.allowed-countries {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.allowed-countries li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    color: #ffffff;
    font-weight: 500;
}

.allowed-countries .flag {
    font-size: 1.25rem;
}

.geo-block-detected {
    color: #71717a;
    font-size: 0.875rem;
}

.geo-block-detected span {
    color: #ef4444;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
    .geo-block-container {
        padding: 2rem 1.5rem;
    }

    .geo-block-title {
        font-size: 1.5rem;
    }

    .geo-block-message {
        font-size: 1rem;
    }

    .allowed-countries {
        flex-direction: column;
        gap: 0.5rem;
    }
}