/* ================================================================
   Spec Book Page — Digital PDF Flipbook
   Figma: node 2875:16185
   ================================================================ */

/* ─── Page Layout ─── */
.lc-spec-book {
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* ─── Decorative Background Effects ─── */
.lc-spec-book__effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.lc-spec-book__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(103px);
    opacity: 0.5;
}

.lc-spec-book__blob--1 {
    width: 838px;
    height: 638px;
    bottom: 0;
    left: -40%;
    background: #EFE6D9;
}

.lc-spec-book__blob--2 {
    width: 838px;
    height: 455px;
    bottom: -10%;
    left: 18%;
    background: #CFCFCF;
}

.lc-spec-book__blob--3 {
    width: 365px;
    height: 278px;
    bottom: 15%;
    right: -5%;
    background: #EFE6D9;
}

/* ─── Content Container ─── */
.lc-spec-book__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-spec-book__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-spec-book__titleBlock {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
}

/* "Digital" — Encode Sans Expanded 400, 32px */
.lc-spec-book__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;
}

/* "Spec Book" — Red Rose 700, 48px */
.lc-spec-book__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-spec-book__titleBar {
    position: absolute;
    bottom: -6px;
    left: 0;
    display: block;
    width: 72px;
    height: 2px;
    background: #FBD784;
}

/* ─── Spec Book Card ─── */
.lc-spec-book__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 24px;
    padding: 20px 50px 50px;
    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-spec-book__cardHeader {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 100%;
    gap: 24px;
}

.lc-spec-book__cardLogo {
    width: 206px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

/* "Digital Spec Book 2026" — Red Rose 400, 24px */
.lc-spec-book__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-spec-book__flipbook {
    align-self: stretch;
    width: 100%;
    min-height: 600px;
}

/* DearFlip overrides */
.lc-spec-book__flipbook .dflip-wrapper {
    min-height: 70vh;
}

.lc-spec-book__flipbook ._df_book-wrapper {
    min-height: 70vh;
}

.lc-spec-book__flipbook .dflip-wrapper-book {
    width: 100% !important;
}

/* ─── DearFlip Toolbar overrides ─── */
.lc-spec-book__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;
}

.lc-spec-book__card .df-ui-controls .df-ui-btn {
    color: #fff !important;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lc-spec-book__card .df-ui-controls .df-ui-btn:hover {
    opacity: 1;
}

.lc-spec-book__card .df-ui-controls .df-ui-page {
    font-family: 'Encode Sans Expanded', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #fff !important;
}

.lc-spec-book__card .df-ui-controls .df-ui-separator {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* ─── Placeholder (when no shortcode is set) ─── */
.lc-spec-book__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 600px;
    padding: 80px 40px;
}

.lc-spec-book__placeholderInner {
    text-align: center;
    max-width: 500px;
}

.lc-spec-book__placeholderIcon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 24px;
}

.lc-spec-book__placeholderTitle {
    font-family: 'Red Rose', serif;
    font-weight: 700;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px;
}

.lc-spec-book__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-spec-book__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-spec-book__container {
        padding: 60px 0 0;
        gap: 24px;
    }

    .lc-spec-book__subtitle {
        font-size: 22px;
    }

    .lc-spec-book__title {
        font-size: 32px;
    }

    .lc-spec-book__card {
        border-radius: 16px;
        padding: 16px 20px 30px;
        margin: 0 16px;
    }

    .lc-spec-book__cardLogo {
        width: 140px;
        height: auto;
    }

    .lc-spec-book__cardTitle {
        font-size: 16px;
    }

    .lc-spec-book__flipbook {
        min-height: 400px;
    }

    .lc-spec-book__flipbook .dflip-wrapper,
    .lc-spec-book__flipbook ._df_book-wrapper {
        min-height: 50vh;
    }

    .lc-spec-book__placeholder {
        min-height: 400px;
        padding: 40px 20px;
    }

    .lc-spec-book__blob {
        display: none;
    }
}

@media (max-width: 480px) {
    .lc-spec-book__subtitle {
        font-size: 18px;
    }

    .lc-spec-book__title {
        font-size: 26px;
    }

    .lc-spec-book__card {
        padding: 12px 12px 20px;
        margin: 0 10px;
    }

    .lc-spec-book__cardLogo {
        width: 120px;
    }

    .lc-spec-book__cardTitle {
        font-size: 14px;
    }

    .lc-spec-book__flipbook {
        min-height: 300px;
    }
}

.lc-spec-book__flipbook ._df_book [style*="background"],
.lc-spec-book__flipbook ._df_book [style*="background-color"] {
    background: transparent !important;
    background-color: transparent !important;
}
