/* ============================================
   ADVENTISERS — Portfolio Popup Modal
   Matches site design system
   ============================================ */

/* Backdrop overlay */
.uk-modal-full.lp-adventisers-modal {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.uk-modal-full.lp-adventisers-modal .uk-modal-dialog {
    background: transparent;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.uk-modal-full.lp-adventisers-modal.uk-open .uk-modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

/* Modal inner wrapper */
.lp-modal-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Header */
.lp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.lp-modal-brand {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e9204f;
    font-family: inherit;
}

.lp-modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

/* Close button */
.lp-modal-close {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lp-modal-close:hover {
    background: #e9204f;
    border-color: #e9204f;
    color: #ffffff !important;
    transform: rotate(90deg);
}

.lp-modal-close svg {
    width: 16px;
    height: 16px;
}

/* Loader */
.lp-modal-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.lp-modal-loader.is-visible {
    display: flex;
}

.lp-spinner {
    width: 48px;
    height: 48px;
    position: relative;
}

.lp-spinner::before,
.lp-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lp-spinner::before {
    border: 2px solid rgba(233, 32, 79, 0.15);
}

.lp-spinner::after {
    border: 2px solid transparent;
    border-top-color: #e9204f;
    animation: lp-spin 0.8s linear infinite;
}

@keyframes lp-spin {
    to { transform: rotate(360deg); }
}

.lp-modal-loader span {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Content area */
.lp-modal-content {
    background: transparent;
    color: #aaaaaa;
    padding: 0 0 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.lp-modal-content h1,
.lp-modal-content h2,
.lp-modal-content h3,
.lp-modal-content h4 {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.lp-modal-content h1 {
    font-size: 42px;
    margin-bottom: 24px;
}

.lp-modal-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.lp-modal-content h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.lp-modal-content p {
    color: #aaaaaa;
    line-height: 1.75;
    margin-bottom: 18px;
    font-size: 16px;
}

.lp-modal-content a {
    color: #e9204f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-modal-content a:hover {
    color: #ffffff;
}

.lp-modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin-bottom: 24px;
}

.lp-modal-content figure {
    margin: 0 0 24px;
}

.lp-modal-content .elementor-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.lp-modal-content .elementor-divider-separator {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Info box styling inside modal */
.lp-modal-content .pr-infobox .title {
    color: #e9204f;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.lp-modal-content .pr-infobox p {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 0;
}

/* Error state */
.lp-modal-error {
    text-align: center;
    color: #e9204f;
    font-size: 18px;
    padding: 100px 20px;
    font-weight: 500;
}

/* Hide unwanted elements that leak through */
.lp-modal-content .preloader,
.lp-modal-content #loader,
.lp-modal-content .site-header,
.lp-modal-content .pixe_header_holder,
.lp-modal-content header#masthead,
.lp-modal-content .search-overlay,
.lp-modal-content #masthead,
.lp-modal-content .site-footer,
.lp-modal-content footer {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .lp-modal-inner {
        padding: 0 16px;
    }

    .lp-modal-header {
        padding: 20px 0 16px;
        margin-bottom: 28px;
    }

    .lp-modal-title {
        font-size: 15px;
        max-width: 50%;
    }

    .lp-modal-brand {
        display: none;
    }

    .lp-modal-content h1 {
        font-size: 28px;
    }

    .lp-modal-content h2 {
        font-size: 24px;
    }

    .lp-modal-content {
        padding-bottom: 60px;
    }
}
