/* LesterGrow Promos - Frontend Modal Styles */

/* Overlay */
.lgp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.lgp-modal-overlay.lgp-visible {
    opacity: 1;
}

/* Modal */
.lgp-modal {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: lgpSlideIn 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.lgp-modal-lateral {
    flex-direction: row;
}

.lgp-modal-fullscreen {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    border-radius: 0 !important;
    max-height: 100vh;
}

@keyframes lgpSlideIn {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Close button */
.lgp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lgp-modal-close:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Images */
.lgp-modal-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lgp-modal-image-top img {
    max-height: 200px;
}

.lgp-modal-image-bottom img {
    max-height: 200px;
}

.lgp-modal-image-left,
.lgp-modal-image-right {
    flex: 0 0 45%;
    min-height: 300px;
}

.lgp-modal-image-center {
    margin: 0 auto 16px;
    max-width: 200px;
    opacity: 0.15;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.lgp-modal-image-center img {
    width: 100%;
    height: auto;
}

/* Body */
.lgp-modal-body {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.lgp-modal-body-overlay {
    background: rgba(255, 255, 255, 0.85);
}

.lgp-img-background .lgp-modal-body-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.lgp-modal-heading {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.lgp-modal-text {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 500px;
}

/* Countdown */
.lgp-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lgp-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.lgp-cd-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.lgp-cd-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.8;
}

.lgp-countdown-sep {
    font-size: 24px;
    font-weight: 700;
    opacity: 0.5;
    margin-top: -14px;
}

.lgp-countdown-ended {
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* CTAs */
.lgp-modal-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 320px;
}

.lgp-cta {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.lgp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05);
}

.lgp-cta-secondary {
    font-size: 14px;
    padding: 10px 24px;
    border: 1px solid currentColor;
}

.lgp-cta-secondary:hover {
    opacity: 0.8;
}

/* ====================== */
/* Fixed Bottom Banner    */
/* ====================== */
.lgp-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999998;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.lgp-banner.lgp-banner-visible {
    transform: translateY(0);
}

.lgp-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 48px 12px 20px;
    flex-wrap: wrap;
    min-height: 48px;
}

.lgp-banner-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.lgp-banner-cta {
    display: inline-block;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.lgp-banner-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.lgp-banner-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: all 0.2s;
    opacity: 0.8;
}

.lgp-banner-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.35);
}

/* Inline countdown for banner */
.lgp-countdown-inline {
    margin-bottom: 0;
    padding: 0;
    gap: 2px;
}

.lgp-countdown-inline .lgp-countdown-item {
    min-width: 32px;
    flex-direction: row;
    gap: 2px;
}

.lgp-countdown-inline .lgp-cd-num {
    font-size: 18px;
}

.lgp-countdown-inline .lgp-cd-label {
    font-size: 10px;
    margin-top: 0;
}

.lgp-countdown-inline .lgp-countdown-sep {
    font-size: 16px;
    margin-top: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .lgp-modal {
        max-width: 95vw !important;
    }

    .lgp-modal-lateral {
        flex-direction: column;
    }

    .lgp-modal-image-left,
    .lgp-modal-image-right {
        flex: 0 0 auto;
        min-height: 150px;
        max-height: 180px;
    }

    .lgp-modal-body {
        padding: 24px 20px;
    }

    .lgp-modal-heading {
        font-size: 22px;
    }

    .lgp-cd-num {
        font-size: 22px;
    }

    .lgp-countdown-item {
        min-width: 40px;
    }

    .lgp-banner-inner {
        padding: 10px 40px 10px 12px;
        gap: 10px;
        justify-content: center;
    }

    .lgp-banner-text {
        font-size: 13px;
        text-align: center;
    }

    .lgp-banner-cta {
        padding: 6px 16px;
        font-size: 13px;
    }
}
