/* ── About Page Styles ─────────────────────────────────────────────────── */

/* ── About hero ── */
.lp-about-hero {
    position: relative;
    z-index: 10;
    padding: 100px 48px 60px;
    text-align: center;
}

/* ── Module grid & cards ── */
.lp-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.lp-module-card {
    background: rgba(10,18,28,0.9);
    border: 1px solid #1a2a3a;
    border-radius: 6px;
    padding: 32px 28px;
}

.lp-module-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #1a2a3a;
}

.lp-module-card-icon {
    font-size: 1.8rem;
}

.lp-module-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e0e0e0;
}

.lp-module-card-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f0a000;
    border: 1px solid rgba(240,160,0,0.35);
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.lp-module-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-module-list li {
    font-size: 0.87rem;
    color: #6a7f90;
    padding-left: 18px;
    position: relative;
    line-height: 1.55;
}

.lp-module-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #f0a000;
    font-weight: 700;
}

/* ── Module card screenshot (standalone, no carousel) ── */
.lp-module-screenshot {
    display: block;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #1e3048;
    box-shadow: 0 6px 32px rgba(0,0,0,0.6);
    transition: box-shadow 0.25s ease;
}

.lp-module-screenshot:hover {
    box-shadow: 0 10px 48px rgba(0,0,0,0.8);
}

/* ── Carousel ── */
.lp-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lp-carousel-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
}

.lp-carousel-track {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #1e3048;
    box-shadow: 0 6px 32px rgba(0,0,0,0.6);
    overflow: hidden;
    line-height: 0;
}

.lp-carousel-img {
    display: none;
    width: 100%;
    border-radius: 5px;
    cursor: zoom-in;
}

.lp-carousel-img--active {
    display: block;
}

.lp-carousel-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: rgba(8,14,24,0.9);
    border: 1px solid #1e3048;
    border-radius: 50%;
    color: #8a9aaa;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    padding: 0;
    user-select: none;
}

.lp-carousel-arrow:hover {
    border-color: #f0a000;
    color: #f0a000;
    background: rgba(240,160,0,0.08);
}

.lp-carousel-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.lp-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1e3048;
    border: 1px solid #2a3e52;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.lp-carousel-dot--active {
    background: #f0a000;
    border-color: #f0a000;
    transform: scale(1.25);
}

/* Screenshot cards: full-width, side-by-side interior layout */
.lp-module-card--has-screenshot {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    border-color: #1e3048;
    padding: 36px 36px;
}

.lp-module-card--has-screenshot .lp-module-card-header {
    grid-column: 1;
    grid-row: 1;
}

.lp-module-card--has-screenshot .lp-module-list {
    grid-column: 1;
    grid-row: 2;
}

.lp-module-card--has-screenshot .lp-module-screenshot,
.lp-module-card--has-screenshot .lp-carousel {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
}

.lp-module-card--wide {
    grid-column: 1 / -1;
}

/* ── Zoom button ── */
.lp-carousel-zoom {
    position: absolute;
    bottom: 30px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(6,9,15,0.72);
    border: 1.5px solid rgba(255,255,255,0.22);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s, border-color 0.18s;
    z-index: 5;
    padding: 0;
}

.lp-carousel-wrap:hover .lp-carousel-zoom {
    opacity: 1;
}

.lp-carousel-zoom:hover {
    border-color: #f0a000;
}

/* ── Lightbox ── */
#lp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lp-lightbox.lp-lightbox--open {
    display: flex;
}

#lp-lightbox-img {
    max-width: 93vw;
    max-height: 88vh;
    border-radius: 6px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.8);
    cursor: default;
    user-select: none;
}

#lp-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(6,9,15,0.82);
    border: 1.5px solid rgba(255,255,255,0.18);
    color: #bbb;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    padding: 0;
}

#lp-lightbox-close:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

#lp-lightbox-prev, #lp-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(6,9,15,0.82);
    border: 1.5px solid rgba(240,160,0,0.45);
    color: #f0a000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    padding: 0;
    user-select: none;
}

#lp-lightbox-prev { left: 24px; }
#lp-lightbox-next { right: 24px; }

#lp-lightbox-prev:hover, #lp-lightbox-next:hover {
    background: rgba(240,160,0,0.12);
    border-color: #f0a000;
    box-shadow: 0 0 20px rgba(240,160,0,0.28);
}

#lp-lightbox-prev[hidden], #lp-lightbox-next[hidden] {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .lp-about-hero {
        padding: 90px 32px 50px;
    }
    .lp-module-card--has-screenshot {
        grid-template-columns: 220px 1fr;
        column-gap: 28px;
    }
}

@media (max-width: 760px) {
    .lp-module-grid {
        grid-template-columns: 1fr;
    }
    .lp-module-card--has-screenshot {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .lp-module-card--has-screenshot .lp-module-card-header,
    .lp-module-card--has-screenshot .lp-module-list {
        grid-column: 1;
    }
    .lp-module-card--has-screenshot .lp-module-screenshot,
    .lp-module-card--has-screenshot .lp-carousel {
        grid-column: 1;
        grid-row: auto;
        margin-top: 24px;
    }
}

@media (max-width: 680px) {
    .lp-about-hero {
        padding: 80px 20px 40px;
    }
    .lp-module-card {
        padding: 22px 18px;
    }
    .lp-module-card--has-screenshot {
        padding: 22px 18px;
    }
    .lp-carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .lp-about-hero {
        padding: 70px 16px 30px;
    }
    .lp-module-card {
        padding: 18px 14px;
    }
    .lp-module-card--has-screenshot {
        padding: 18px 14px;
    }
}
