/* Geo-location Redirect Styles */

.geo-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: white;
}

.loader-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.radio-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.loader-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.loader-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Spinner Animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Fallback Options */
.fallback-options {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.fallback-options p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.quick-countries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.country-quick {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.country-quick:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Geo-detection Success/Error Messages */
.geo-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: bold;
    z-index: 10001;
    animation: slideIn 0.5s ease-out;
}

.geo-message.success {
    background: #4CAF50;
    color: white;
}

.geo-message.error {
    background: #f44336;
    color: white;
}

.geo-message.info {
    background: #2196F3;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Country Detection Status */
.detection-status {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.status-icon {
    margin-right: 0.5rem;
}

.status-success {
    color: #4CAF50;
}

.status-loading {
    color: #FFC107;
}

.status-error {
    color: #f44336;
}

/* Loading Animation for Countries */
.countries-loading {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: loadingDots 1.4s infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes loadingDots {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design for Geo Loader */
@media (max-width: 768px) {
    .loader-content {
        padding: 1rem;
    }
    
    .radio-icon {
        font-size: 3rem;
    }
    
    .loader-content h2 {
        font-size: 1.5rem;
    }
    
    .quick-countries {
        flex-direction: column;
        align-items: center;
    }
    
    .country-quick {
        width: 200px;
        text-align: center;
    }
    
    .geo-message {
        top: 10px;
        right: 10px;
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .loader-content {
        padding: 0.5rem;
    }
    
    .fallback-options {
        margin-top: 2rem;
        padding-top: 1rem;
    }
    
    .detection-status {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}