/* Dynamic Popup System Styles */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.popup-overlay.hidden {
    display: none;
}

.popup-content {
    position: relative;
    max-width: 550px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.popup-content.show {
    transform: scale(1);
    opacity: 1;
}

.popup-inner {
    padding: 0;
    text-align: center;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    color: white;
    font-weight: bold;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.popup-image {
    width: 100%;
    height: auto;
    min-height: 350px;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 24px 24px 0 0;
}

.popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.popup-main-text {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.popup-sub-text {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.popup-description {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.popup-bonus-code {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.popup-buttons {
    position: relative;
    padding: 25px 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 0 0 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-button {
    padding: 18px 56px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.popup-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.popup-button:hover::before {
    left: 100%;
}

.popup-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.2) inset;
}

.popup-button:active {
    transform: translateY(-2px) scale(1.02);
}

.popup-button-secondary {
    padding: 16px 48px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    border: 3px solid;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.popup-button-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.popup-button-secondary:hover::before {
    left: 100%;
}

.popup-button-secondary:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.popup-button-secondary:active {
    transform: translateY(-2px) scale(1.02);
}

.popup-footer {
    font-size: 12px;
    margin-top: 20px;
    opacity: 0.7;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .popup-content {
        max-width: 90%;
    }

    .popup-inner {
        padding: 20px;
    }

    .popup-main-text {
        font-size: 22px;
    }

    .popup-sub-text {
        font-size: 14px;
    }

    .popup-buttons {
        flex-direction: column;
    }

    .popup-button,
    .popup-button-secondary {
        width: 100%;
    }
}
