/**
 * People Profilers Geo Redirect Popup Styles
 * Modern, accessible, responsive design
 */

@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:wght@400;600&display=swap');

/* Popup Container */
.pp-geo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pp-geo-popup.pp-geo-show {
    opacity: 1;
    visibility: visible;
}

/* Overlay */
.pp-geo-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* Popup Content */
.pp-geo-popup-content {
    position: relative;
    background: #ffffff; /* Keeps the box white */
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

.pp-geo-popup.pp-geo-show .pp-geo-popup-content {
    transform: scale(1) translateY(0);
}

/* Close Button */
.pp-geo-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.2s ease, transform 0.2s ease;
    font-family: Arial, sans-serif;
}

.pp-geo-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.pp-geo-close:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Icon */
.pp-geo-icon {
    display: none !important; /* Hides the globe emoji completely */
}

/* Typography */
.pp-geo-popup-content h3 {
    margin: 0 0 15px 0;
    font-family: 'Rethink Sans', sans-serif;
    font-size: 28px;
    font-weight: 600; /* Semi Bold */
    color: #1a1a1a;
    line-height: 1.3;
}

.pp-geo-popup-content p {
    margin: 0 0 12px 0;
    font-family: 'Rethink Sans', sans-serif;
    color: #555;
    font-size: 16px;
    font-weight: 400; /* Regular */
    line-height: 1.6;
}

.pp-geo-popup-content p:last-of-type {
    margin-bottom: 0;
}

.pp-geo-popup-content strong {
    color: #f97316;
    font-weight: 600;
}

/* Buttons Container */
.pp-geo-buttons {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.pp-geo-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Rethink Sans', sans-serif;
    line-height: 1.5;
    min-height: 52px;
    -webkit-appearance: none;
    appearance: none;
}

button.pp-geo-btn {
    margin: 0;
}

/* Primary Button */
.pp-geo-btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    border-radius: 8px;
}

a.pp-geo-btn-primary {
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 600;
}

.pp-geo-btn-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.pp-geo-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.pp-geo-btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

/* Secondary Button */
.pp-geo-btn-secondary {
    background: #ebebeb;
    color: #000000;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
}

.pp-geo-btn-secondary:hover {
    background: #ebebeb;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.pp-geo-btn-secondary:active {
    background: #ebebeb;
    color: #000000;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.pp-geo-btn-secondary:focus {
    background: #ebebeb;
    color: #000000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

/* Tablet */
@media (max-width: 768px) {
    .pp-geo-popup-content {
        padding: 32px 24px;
        max-width: 90%;
    }
    
    .pp-geo-popup-content h3 {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .pp-geo-popup-content {
        padding: 28px 20px;
        width: 95%;
        border-radius: 12px;
    }
    
    .pp-geo-popup-content h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .pp-geo-popup-content p {
        font-size: 15px;
    }
    
    .pp-geo-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 24px;
    }
    
    .pp-geo-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .pp-geo-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pp-geo-popup,
    .pp-geo-popup-content,
    .pp-geo-btn,
    .pp-geo-close {
        transition: none;
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .pp-geo-popup-content {
        border: 3px solid #000;
    }
    
    .pp-geo-btn-primary {
        border: 2px solid #fff;
    }
    
    .pp-geo-btn-secondary {
        border: 2px solid #000;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .pp-geo-popup-content {
        background: #ffffff; /* Kept white per your request */
        color: #1a1a1a;
    }
    
    .pp-geo-popup-content h3 {
        color: #1a1a1a;
    }
    
    .pp-geo-popup-content p {
        color: #555;
    }
    
    .pp-geo-close {
        color: #999;
    }
    
    .pp-geo-close:hover {
        color: #333;
    }
    
    .pp-geo-btn-secondary {
        background: #ebebeb;
        color: #000000;
        border: none;
    }
    
    .pp-geo-btn-secondary:hover {
        background: #ebebeb;
        color: #000000;
    }
}