/* Shared list-section layout used by projects, tools, and games pages */

.ls-list {
    width: 100%;
    margin-bottom: 10vh;
}

.ls-section {
    width: 100%;
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-accent);
    border-bottom: 3px solid var(--color-back);
}

.ls-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    pointer-events: none;
    z-index: 0;
}

.ls-section.dark {
    background-color: var(--color-back);
}

.ls-section-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    filter: sepia(8%) hue-rotate(155deg);
}

.ls-content {
    position: relative;
    z-index: 1;
    padding: 6vh 10vw;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.ls-number {
    font-family: anton, sans-serif;
    font-size: calc(var(--size-font-title) * 0.4);
    color: var(--color-accent);
    line-height: 1;
    opacity: 0.6;
}

.ls-section.dark .ls-number {
    color: var(--color-light);
}

.ls-name {
    font-family: anton, sans-serif;
    font-size: calc(var(--size-font-title) * 0.9);
    color: var(--color-light);
    line-height: 1;
    text-shadow:
        0px 0px 30px rgba(0, 0, 0, 0.9),
        0px 4px 20px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.02em;
}

.ls-desc {
    font-family: roboto, sans-serif;
    font-size: calc(var(--size-font-command) * 0.6);
    font-weight: 400;
    color: var(--color-light);
    max-width: 55ch;
    line-height: 1.7;
    text-shadow: 0px 1px 8px rgba(0, 0, 0, 0.7);
}

.ls-url {
    font-family: square, monospace;
    font-size: calc(var(--size-font-command) * 0.45);
    color: var(--color-secondary);
    opacity: 0.7;
    letter-spacing: 0.05em;
}

.ls-link {
    display: inline-block;
    font-family: square, monospace;
    font-size: calc(var(--size-font-command) * 0.65);
    font-weight: 500;
    padding: 1.2% 5%;
    border-radius: 50px;
    background: var(--color-light);
    color: var(--color-back);
    text-decoration: none;
    width: fit-content;
    margin-top: 1vh;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

.ls-link:hover {
    background: var(--color-secondary);
    transform: scale(1.04);
    box-shadow: 0px 6px 28px rgba(0, 0, 0, 0.6);
}

.ls-intro {
    width: 100%;
    padding: 5vh 10vw;
    background-color: var(--color-back);
    border-bottom: 3px solid var(--color-accent);
}

.ls-intro h2 {
    font-family: robotoB, sans-serif;
    font-size: calc(var(--size-font-title) * 0.45);
    color: var(--color-secondary);
    font-weight: 400;
}

.ls-intro p {
    font-family: roboto, sans-serif;
    font-size: calc(var(--size-font-command) * 0.6);
    color: var(--color-secondary);
    margin-top: 1.5vh;
    max-width: 60ch;
    line-height: 1.7;
    opacity: 0.8;
}

@media (max-width: 670px) {
    .ls-name {
        font-size: calc(var(--size-font-title) * 0.65);
    }
    .ls-content {
        padding: 5vh 6vw;
    }
    .ls-link {
        padding: 2.5% 8%;
    }
    .ls-intro {
        padding: 4vh 6vw;
    }
}
