/**
 * BANC Geo Redirect - Popup Styles
 * Matches jtape2025 theme modal styling
 */

/* CSS Variables matching theme constants */
:root {
    --banc-geo-bg: #333333;
    --banc-geo-primary: #f40000;
    --banc-geo-text: #BDBDBD;
    --banc-geo-text-light: #828282;
    --banc-geo-white: #ffffff;
    --banc-geo-black: #010101;
    --banc-geo-overlay: rgba(0, 0, 0, 0.7);
}

/* Modal Outer - Full screen overlay */
.banc-geo-modal-outer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: flex-end; /* Bottom on mobile */
    justify-content: center;
    background: var(--banc-geo-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 0;
}

.banc-geo-modal-outer.open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Modal Inner - Content box */
.banc-geo-modal-inner {
    background: var(--banc-geo-bg);
    padding: 4rem 2.4rem;
    position: relative;
    max-width: 100%;
    width: 100%;
    text-align: center;
    animation: banc-geo-slide-up 0.3s ease;
}

@keyframes banc-geo-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button */
.banc-geo-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.banc-geo-close:hover {
    opacity: 0.7;
}

.banc-geo-close svg {
    width: 1.7rem;
    height: 1.7rem;
}

/* Title - uses BigNoodleTitling style */
.banc-geo-title {
    font-family: "bignoodletitling", "Impact", sans-serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--banc-geo-white);
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* Subtitle */
.banc-geo-subtitle {
    font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--banc-geo-text);
    margin: 0 0 2.4rem 0;
    line-height: 1.5;
}

/* Buttons container */
.banc-geo-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Button base styles */
.banc-geo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    max-width: 280px;
    padding: 1.2rem 2rem;
    font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 2px solid;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

/* Primary button - Red (no border) */
.banc-geo-btn-primary {
    background: var(--banc-geo-primary);
    border: none;
    color: var(--banc-geo-white);
}

.banc-geo-btn-primary:hover {
    background: #d10000;
    color: var(--banc-geo-white);
}

.banc-geo-btn-primary:hover .banc-geo-flag svg path {
    /* Flag doesn't change on hover */
}

/* Secondary button - Outline */
.banc-geo-btn-secondary {
    background: transparent;
    border-color: var(--banc-geo-text);
    color: var(--banc-geo-text);
}

.banc-geo-btn-secondary:hover {
    background: var(--banc-geo-text);
    color: var(--banc-geo-bg);
}

/* Flag icon */
.banc-geo-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 16px;
    flex-shrink: 0;
}

.banc-geo-flag img,
.banc-geo-flag svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Button text */
.banc-geo-btn-text {
    text-align: center;
}

/* Responsive styles - Desktop: centered modal, 696px max */
@media (min-width: 768px) {
    .banc-geo-modal-outer {
        align-items: center; /* Center on desktop */
        padding: 2rem;
    }

    .banc-geo-modal-inner {
        padding: 5.6rem 4.8rem;
        max-width: 696px;
    }

    .banc-geo-title {
        font-size: 2.8rem;
    }

    .banc-geo-close svg {
        width: 2rem;
        height: 2rem;
    }

    .banc-geo-btn {
        max-width: 300px;
        padding: 1.4rem 2.4rem;
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) {
    .banc-geo-modal-inner {
        padding: 5.6rem 6.4rem;
    }

    .banc-geo-title {
        font-size: 3.2rem;
    }
}

@media (min-width: 1200px) {
    .banc-geo-modal-inner {
        padding: 5.6rem 7.2rem;
    }
}

/* Focus styles for accessibility */
.banc-geo-btn:focus,
.banc-geo-close:focus {
    outline: 2px solid var(--banc-geo-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .banc-geo-modal-outer {
        transition: none;
    }

    .banc-geo-modal-inner {
        animation: none;
    }

    .banc-geo-btn,
    .banc-geo-close {
        transition: none;
    }
}
