/**
 * AS Pokemon Welcome Campaign - Popup Modal Styles
 * Mobile-first, responsive, and styled to match Pokémonportalen theme colors.
 * Theme Color Palette:
 * - Theme Navy / Background: #0a1a3c (.as-pm-footer-bottom, .search-box, .as-pm-footer-title)
 * - Theme Royal Blue: #3271bb (.as-pm-topbar)
 * - Theme Cyan Accent: #41c9ff (.search-box button, hover states)
 * - Theme Light Ice: #f3faff (.as-pm-custom-footer, .as-pm-logo-row)
 * - Pokémon Yellow: #ffcb05 / #e5a700
 */

/* Backdrop Overlay */
.as-pwc-overlay {
    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.35s ease, visibility 0.35s ease;
}

.as-pwc-overlay.as-pwc-active {
    opacity: 1;
    visibility: visible;
}

/* Backdrop: Uses theme navy #0a1a3c with smooth blur */
.as-pwc-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Modal Container Dialog: Styled with Pokémonportalen #0a1a3c and #3271bb border */
.as-pwc-modal-container {
    position: relative;
    z-index: 10;
    width: 92%;
    max-width: 520px;
    background: linear-gradient(150deg, #0a1a3c 0%, #122850 100%);
    border: 2px solid #3271bb;
    box-shadow: 0 20px 50px rgba(10, 26, 60, 0.7), 0 0 30px rgba(65, 201, 255, 0.22);
    border-radius: 18px;
    padding: 38px 30px 28px;
    color: #ffffff;
    text-align: center;
    transform: scale(0.92) translateY(15px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

.as-pwc-overlay.as-pwc-active .as-pwc-modal-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.as-pwc-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.as-pwc-close-btn:hover {
    background: rgba(65, 201, 255, 0.2);
    border-color: #41c9ff;
    color: #41c9ff;
    transform: rotate(90deg);
}

/* Badge Icon: Pokémon Yellow Accent */
.as-pwc-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ffcb05 0%, #e5a700 100%);
    border-radius: 50%;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(255, 203, 5, 0.4);
    position: relative;
}

.as-pwc-discount-tag {
    color: #0a1a3c;
    font-weight: 900;
    font-size: 19px;
    letter-spacing: -0.5px;
}

/* Headline */
.as-pwc-headline {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px 0;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Body Text */
.as-pwc-body-text {
    font-size: 15px;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.as-pwc-text-intro {
    font-size: 16px;
    color: #94a3b8;
    margin: 0 0 8px 0;
}

.as-pwc-text-highlight {
    font-size: 16px;
    font-weight: 700;
    color: #41c9ff; /* Theme Cyan Accent */
    margin: 0 0 8px 0;
}

.as-pwc-text-sub {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* CTA Button: Uses #3271bb (topbar) and #41c9ff on hover */
.as-pwc-cta-wrapper {
    margin-bottom: 18px;
}

.as-pwc-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #3271bb 0%, #1f4fa3 100%);
    border: 1px solid #41c9ff;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(50, 113, 187, 0.45);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.as-pwc-cta-btn:hover {
    background: linear-gradient(135deg, #41c9ff 0%, #3271bb 100%);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(65, 201, 255, 0.5);
    color: #ffffff !important;
}

.as-pwc-cta-btn:active {
    transform: translateY(0);
}

.as-pwc-arrow-icon {
    transition: transform 0.2s ease;
}

.as-pwc-cta-btn:hover .as-pwc-arrow-icon {
    transform: translateX(4px);
}

/* Disclaimer Note */
.as-pwc-disclaimer {
    font-size: 11px;
    line-height: 1.45;
    color: #8da2c0;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .as-pwc-modal-container {
        padding: 30px 20px 22px;
    }

    .as-pwc-headline {
        font-size: 20px;
    }

    .as-pwc-text-highlight,
    .as-pwc-text-intro {
        font-size: 14px;
    }

    .as-pwc-cta-btn {
        font-size: 15px;
        padding: 13px 18px;
    }
}
