/**
 * TWJ Golf Event - Sleek Modern Popup Styles
 * Brand Colors: #5F5F5B, #484847, #B6A973, #AA414D
 * Fonts: Bebas Neue, Lato
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato:wght@300;400;700&display=swap');

/* Popup Overlay */
.twj-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.twj-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container - Two Column Layout */
.twj-popup-container {
    position: relative;
    background: #1a1a1a;
    max-width: 800px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.twj-popup-overlay.active .twj-popup-container {
    transform: translateY(0) scale(1);
}

/* Close Button */
.twj-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.twj-popup-close:hover {
    background: #B6A973;
    transform: rotate(90deg);
}

.twj-popup-close svg {
    width: 20px;
    height: 20px;
}

/* Image Side */
.twj-popup-image {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.twj-popup-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.3) 0%,
        rgba(26, 26, 26, 0.6) 100%
    );
}

/* Content Side */
.twj-popup-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.twj-popup-logo {
    margin-bottom: 20px;
}

.twj-popup-logo img {
    max-height: 70px;
    width: auto;
}

.twj-popup-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #ffffff;
    text-transform: uppercase;
}

.twj-popup-details {
    margin-bottom: 20px;
}

.twj-popup-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.twj-popup-detail-item svg {
    color: #B6A973;
    stroke: #B6A973;
    flex-shrink: 0;
}

.twj-popup-tagline {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-style: italic;
    color: #B6A973;
    margin-bottom: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Popup Buttons */
.twj-popup-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.twj-btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.twj-btn-primary {
    background: #B6A973;
    color: #1a1a1a;
}

.twj-btn-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(182, 169, 115, 0.3);
}

.twj-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.twj-btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive - Stack on mobile */
@media (max-width: 700px) {
    .twj-popup-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .twj-popup-image {
        min-height: 200px;
    }

    .twj-popup-content {
        padding: 35px 30px;
    }

    .twj-popup-title {
        font-size: 28px;
    }

    .twj-popup-cta {
        flex-direction: column;
    }

    .twj-btn {
        width: 100%;
        text-align: center;
    }

    .twj-popup-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.7);
    }
}

/* Animation keyframes */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
