/* ================================================================
   Flyer Page — Digital PDF Flipbook
   Figma: node 2875:15918
   ================================================================ */

/* ─── Page Layout ─── */
.lc-flyer {
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* ─── Decorative Background Effects ─── */
.lc-flyer__effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.lc-flyer__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(103px);
    opacity: 0.5;
}

/* Bottom-left warm blob */
.lc-flyer__blob--1 {
    width: 838px;
    height: 638px;
    bottom: 0;
    left: -40%;
    background: #EFE6D9;
}

/* Bottom-center grey blob */
.lc-flyer__blob--2 {
    width: 838px;
    height: 455px;
    bottom: -10%;
    left: 18%;
    background: #CFCFCF;
}

/* Bottom-right warm blob */
.lc-flyer__blob--3 {
    width: 365px;
    height: 278px;
    bottom: 15%;
    right: -5%;
    background: #EFE6D9;
}

/* ─── Content Container ─── */
.lc-flyer__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 100px 0 0;
    gap: 32px;
}

/* ─── White Gradient Overlay ─── */
.lc-flyer__whiteGradient {
    position: absolute;
    top: -155px;
    left: 0;
    right: 0;
    height: 453px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 51%);
    pointer-events: none;
    z-index: -1;
}

/* ─── Title Block ─── */
.lc-flyer__titleBlock {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
}

/* "Digital" — Encode Sans Expanded 400, 32px */
.lc-flyer__subtitle {
    font-family: 'Encode Sans Expanded', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.78;
    letter-spacing: -0.05em;
    text-transform: capitalize;
    background: linear-gradient(95deg, rgba(116, 125, 154, 0.79) 0%, rgba(39, 42, 52, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* "Flyer" — Red Rose 700, 48px */
.lc-flyer__title {
    font-family: 'Red Rose', serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.19;
    text-transform: capitalize;
    margin: 0;
    background: linear-gradient(93deg, rgba(32, 42, 77, 1) 0%, rgba(116, 124, 154, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold underline accent */
.lc-flyer__titleBar {
    position: absolute;
    bottom: -6px;
    left: 0;
    display: block;
    width: 72px;
    height: 2px;
    background: #FBD784;
}

/* ─── Flyer Card ─── */
.lc-flyer__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    align-self: stretch;
    gap: 10px;
    padding: 10px 24px 14px;
    border-radius: 24px;
    background-color: #0c1229;
    background-image: url('../../img/brochure/bg-brochure.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 0 30px;
}

/* ─── Card Header ─── */
.lc-flyer__cardHeader {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 100%;
    gap: 24px;
}

.lc-flyer__cardLogo {
    width: 206px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

/* "Digital Flyer 2026" — Red Rose 400, 24px */
.lc-flyer__cardTitle {
    font-family: 'Red Rose', serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.54;
    text-transform: capitalize;
    color: #FFFFFE;
    opacity: 0.8;
    white-space: nowrap;
}

/* ─── Flipbook Container ─── */
.lc-flyer__flipbook {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    min-height: min(68vh, 760px);
    box-sizing: border-box;
}

/* DearFlip: fill card width */
.lc-flyer__flipbook>* {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.lc-flyer__flipbook .dflip-wrapper,
.lc-flyer__flipbook ._df_book-wrapper,
.lc-flyer__flipbook #df_book_full {
    width: 100% !important;
    max-width: 100% !important;
    min-height: min(64vh, 700px) !important;
    box-sizing: border-box;
}

.lc-flyer__flipbook .dflip-wrapper-book {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Remove DearFlip default gray gutters around pages */
.lc-flyer__flipbook ._df_book,
.lc-flyer__flipbook .dflip-wrapper,
.lc-flyer__flipbook ._df_book-wrapper,
.lc-flyer__flipbook .df-container,
.lc-flyer__flipbook .df-book-stage,
.lc-flyer__flipbook .df-book-bg,
.lc-flyer__flipbook .df-loading,
.lc-flyer__flipbook canvas {
    background: transparent !important;
}

/* DearFlip runtime often injects inline gray background + top offset */
.lc-flyer__flipbook ._df_book [style*="background"],
.lc-flyer__flipbook ._df_book [style*="background-color"] {
    background: transparent !important;
    background-color: transparent !important;
}

.lc-flyer__flipbook ._df_book,
.lc-flyer__flipbook ._df_book-wrapper,
.lc-flyer__flipbook .dflip-wrapper,
.lc-flyer__flipbook .df-container,
.lc-flyer__flipbook .df-book-stage,
.lc-flyer__flipbook .df-page-stage {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
}

/* ─── DearFlip Toolbar overrides ─── */
.lc-flyer__card .df-ui-controls {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 9999px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    padding: 15px 22px !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

.lc-flyer__card .df-ui-controls .df-ui-btn {
    color: #fff !important;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lc-flyer__card .df-ui-controls .df-ui-btn:hover {
    opacity: 1;
}

.lc-flyer__card .df-ui-controls .df-ui-page {
    font-family: 'Encode Sans Expanded', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #fff !important;
}

.lc-flyer__card .df-ui-controls .df-ui-separator {
    background: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 1366px) and (min-width: 769px) {
    .lc-flyer__card {
        padding: 10px 16px 14px;
        margin: 0 16px;
    }

    .lc-flyer__flipbook {
        min-height: min(76vh, 860px);
    }

    .lc-flyer__flipbook .dflip-wrapper,
    .lc-flyer__flipbook ._df_book-wrapper,
    .lc-flyer__flipbook #df_book_full {
        min-height: min(72vh, 800px) !important;
    }

    .lc-flyer__flipbook .lc-pdf-embed-wrap {
        height: min(86vh, 980px);
        min-height: 620px;
    }

    .lc-flyer__flipbook .lc-pdf-embed {
        min-height: 580px;
    }

    .lc-flyer__flipbook .dflip-wrapper iframe,
    .lc-flyer__flipbook ._df_book-wrapper iframe,
    .lc-flyer__flipbook #df_book_full iframe {
        min-height: 76vh !important;
    }
}

/* ─── Placeholder (when no shortcode is set) ─── */
.lc-flyer__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 600px;
    padding: 80px 40px;
}

.lc-flyer__placeholderInner {
    text-align: center;
    max-width: 500px;
}

.lc-flyer__placeholderIcon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 24px;
}

.lc-flyer__placeholderTitle {
    font-family: 'Red Rose', serif;
    font-weight: 700;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px;
}

.lc-flyer__placeholderText {
    font-family: 'Encode Sans Expanded', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.lc-flyer__placeholderText code {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: #FBD784;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .lc-flyer__container {
        padding: 12vh 0 0;
        gap: 24px;
    }

    .lc-flyer__subtitle {
        font-size: 22px;
    }

    .lc-flyer__title {
        font-size: 32px;
    }

    .lc-flyer__card {
        border-radius: 16px;
        padding: 10px 12px 14px;
        margin: 0 16px;
    }

    .lc-flyer__cardLogo {
        width: 140px;
        height: auto;
    }

    .lc-flyer__cardTitle {
        font-size: 16px;
    }

    .lc-flyer__flipbook {
        min-height: 340px;
    }

    .lc-flyer__flipbook .dflip-wrapper,
    .lc-flyer__flipbook ._df_book-wrapper {
        min-height: 50vh;
    }

    .lc-flyer__placeholder {
        min-height: 400px;
        padding: 40px 20px;
    }

    .lc-flyer__blob {
        display: none;
    }
}

@media (max-width: 480px) {
    .lc-flyer__subtitle {
        font-size: 18px;
    }

    .lc-flyer__title {
        font-size: 26px;
    }

    .lc-flyer__card {
        padding: 8px 8px 10px;
        margin: 0 10px;
    }

    .lc-flyer__cardLogo {
        width: 120px;
    }

    .lc-flyer__cardTitle {
        font-size: 14px;
    }

    .lc-flyer__flipbook {
        min-height: 280px;
    }
}

/* Native PDF iframe */
.lc-flyer__flipbook .lc-pdf-embed-wrap {
    width: 100%;
    height: min(82vh, 940px);
    min-height: 520px;
    max-width: 100%;
    flex: 1 1 auto;
}

.lc-flyer__flipbook .lc-pdf-embed {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
    border-radius: 12px;
    background: #e8e8ea;
}

.lc-flyer__flipbook .dflip-wrapper iframe,
.lc-flyer__flipbook ._df_book-wrapper iframe,
.lc-flyer__flipbook #df_book_full iframe {
    width: 100% !important;
    min-height: 70vh !important;
}
