/* ── Landing Page Full BG ── */

.lp-page-bg {
    position: fixed;
    inset: -10px;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .3s ease;
}

.lp-page-bg.loaded {
    opacity: 1;
}

.lp-page-bg:not(.loaded) {
    animation: fadeIn .3s ease 2s forwards;
}

.lp-page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

/* ── Transparent navbar override ── */

.pub-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}

.pub-nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pub-nav-link {
    color: #fff;
}

.pub-nav-link:hover {
    color: rgba(255,255,255,.75);
}

.pub-nav-brand .brand-name,
.pub-nav-link {
    text-shadow: 0 2px 6px rgba(0,0,0,.7);
}

.lp-page-content {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Cards ── */

.lp-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem .5rem;
    width: 100%;
}

.lp-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 360px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: box-shadow .3s, transform .3s;
    background-color: #1a1a1a;
}

.lp-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    transform: translateY(-2px);
}

.lp-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}

.lp-card:hover .lp-card-bg {
    transform: scale(1.06);
}

.lp-card.loaded .lp-card-bg {
    opacity: 1;
}

.lp-card:not(.loaded) .lp-card-bg {
    animation: fadeIn .3s ease 2s forwards;
}

/* ── Loading cover: solid background that fades out ── */

.lp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1a1a1a;
    transition: opacity .3s ease;
    z-index: 1;
}

.lp-card.loaded::before {
    opacity: 0;
}

.lp-card:not(.loaded)::before {
    animation: fadeOut 0s linear 2s forwards;
}

/* ── Shimmer skeleton ── */

.lp-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.07) 40%,
        rgba(255,255,255,0) 60%
    );
    background-size: 200% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
    transition: opacity .3s ease;
}

.lp-card.loaded::after {
    opacity: 0;
}

.lp-card:not(.loaded)::after {
    animation: shimmer 1.6s ease-in-out infinite, fadeOut 0s linear 2s forwards;
}

@keyframes shimmer {
    0% { background-position: 150% 0; }
    100% { background-position: -50% 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

.lp-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.85) 0%,
        rgba(0,0,0,.4) 50%,
        rgba(0,0,0,.15) 100%
    );
}

.lp-card-body {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
}

.lp-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 .3rem;
    color: #fff;
}

.lp-card-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .85rem;
    line-height: 1.5;
    opacity: .8;
    margin: 0 0 1.25rem;
}

.lp-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: .9rem;
}

.lp-card-price {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.lp-card-book {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .85rem;
    font-weight: 600;
    color: #b8860b;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: gap .2s;
}

.lp-card:hover .lp-card-book {
    gap: .6rem;
}

.lp-card-book i {
    transition: transform .2s;
}

.lp-card:hover .lp-card-book i {
    transform: translateX(3px);
}

/* ── Desktop: 3-column grid ── */
@media (min-width: 768px) {
    .lp-stack {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .lp-card {
        min-height: 480px;
    }

    .lp-card-body {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .lp-card-title {
        font-size: 1.35rem;
    }

    .lp-card-desc {
        font-size: .78rem;
        margin-bottom: 1rem;
    }

    .lp-card-actions {
        padding-top: .7rem;
    }

    .lp-card-price {
        font-size: 1.05rem;
    }

    .lp-card-book {
        font-size: .8rem;
    }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    body {
        overflow: hidden;
        height: 100vh;
    }

    .pub-nav {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "left brand right";
        padding: 0 .75rem;
    }

    .pub-nav-left {
        display: flex;
        grid-area: left;
    }

    .pub-nav-brand {
        grid-area: brand;
        justify-self: center;
    }

    .pub-nav-right {
        grid-area: right;
        gap: .5rem;
    }

    .pub-nav-link {
        display: inline-flex !important;
        font-size: .75rem;
        color: #fff;
    }

    .pub-nav-brand .brand-text {
        display: none;
    }

    .lp-page-content {
        height: calc((100vh - 68px) * 0.8377);
        min-height: unset;
        overflow: hidden;
        align-items: center;
        justify-content: center;
        padding: 10vh 0 0;
    }

    .lp-stack {
        gap: 1.5rem;
        padding: .5rem;
        height: 100%;
        max-width: none;
        margin: 0 auto;
        align-items: center;
    }

    .lp-card {
        flex: 1;
        min-height: unset;
        width: 280px;
        max-width: 280px;
        width: 100%;
        border-radius: 14px;
    }

    .lp-card-bg {
        background-size: 100% 100%;
    }

    .lp-card-body {
        padding: .75rem 1rem .7rem;
    }

    .lp-card-title {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: 1.1rem;
        margin-bottom: .15rem;
    }

    .lp-card-desc {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: .72rem;
        margin-bottom: .75rem;
    }

    .lp-card-actions {
        padding-top: .6rem;
    }

    .lp-card-price {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: 1rem;
    }

    .lp-card-book {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: .78rem;
    }
}
