/* CaveCode Academy — Pass 81B
   Visual polish for the static Learning Paths cards.
   This file changes layout only; card content and routes remain untouched.
*/

.path-grid--static {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.path-grid--static .path-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
}

.path-grid--static .path-topline {
    min-height: 38px;
    align-items: center;
}

.path-grid--static .language-mark {
    display: inline-grid;
    min-width: 46px;
    min-height: 42px;
    place-items: center;
    text-align: center;
}

.path-grid--static .path-card h3 {
    min-height: 2.5em;
    margin-bottom: 10px;
    line-height: 1.25;
}

.path-grid--static .path-card > p:not(.static-language-panel__examples) {
    min-height: 5.2em;
    margin-bottom: 0;
}

.path-grid--static .static-language-panel {
    display: grid;
    min-height: 300px;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    margin: 18px 0 20px;
    padding: 15px;
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--accent-surface) 72%, var(--surface)),
            var(--surface-soft)
        );
    border: 1px solid var(--accent-border);
    border-radius: 12px;
}

.static-language-panel__title {
    display: flex;
    min-height: 25px;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .075em;
    line-height: 1.3;
    text-transform: uppercase;
}

.static-language-panel__title-icon,
.static-language-panel__icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--accent);
    background:
        color-mix(
            in srgb,
            var(--accent) 12%,
            var(--surface-raised)
        );
    border: 1px solid var(--accent-border);
    box-shadow:
        0 6px 14px
        color-mix(
            in srgb,
            var(--accent-glow) 14%,
            transparent
        );
}

.static-language-panel__title-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.static-language-panel__icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
}

.static-language-panel__title-icon svg,
.static-language-panel__icon svg {
    display: block;
    flex: 0 0 auto;
}

.static-language-panel__title-icon svg {
    width: 14px;
    height: 14px;
}

.static-language-panel__icon svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.1;
}

.static-language-panel__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(38px, auto);
    align-content: start;
    gap: 8px 11px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.static-language-panel__item {
    display: grid;
    min-width: 0;
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 720;
    line-height: 1.35;
}

.static-language-panel__item > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.static-language-panel__examples {
    display: -webkit-box;
    min-height: 42px;
    padding-top: 10px;
    margin: 0;
    overflow: hidden;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 10px;
    line-height: 1.55;
}

.static-language-panel__examples strong {
    color: var(--text);
    font-weight: 900;
}

.path-grid--static .skill-tags {
    min-height: 64px;
    align-content: start;
    margin-top: 0;
}

.path-grid--static .path-action {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.path-grid--static .locked-action {
    opacity: .82;
}

html[data-mode="light"] .static-language-panel__item,
html[data-mode="light"] .static-language-panel__examples {
    color: var(--text-muted, #46586a);
}

html[data-mode="light"] .static-language-panel {
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--accent-surface) 58%, #ffffff),
            color-mix(in srgb, var(--surface) 92%, #eef3f7)
        );
}

@media (max-width: 820px) {
    .path-grid--static {
        grid-auto-rows: auto;
    }

    .path-grid--static .path-card h3,
    .path-grid--static .path-card > p:not(.static-language-panel__examples),
    .path-grid--static .skill-tags {
        min-height: 0;
    }

    .path-grid--static .static-language-panel {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .static-language-panel__list {
        grid-template-columns: 1fr;
    }

    .static-language-panel__examples {
        min-height: 0;
        -webkit-line-clamp: 3;
    }
}

/* CAVECODE_LANGUAGE_ICON_REFINEMENT_81C */

.static-language-panel__title-icon,
.static-language-panel__icon {
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.static-language-panel__item:hover .static-language-panel__icon,
.static-language-panel__title:hover .static-language-panel__title-icon {
    transform: translateY(-1px) scale(1.035);
    border-color:
        color-mix(
            in srgb,
            var(--accent) 72%,
            var(--border-strong)
        );
    background:
        color-mix(
            in srgb,
            var(--accent) 17%,
            var(--surface-raised)
        );
    box-shadow:
        0 8px 18px
        color-mix(
            in srgb,
            var(--accent-glow) 24%,
            transparent
        );
}

.static-language-panel__icon svg,
.static-language-panel__title-icon svg {
    transition:
        transform 160ms ease,
        filter 160ms ease;
}

.static-language-panel__item:hover .static-language-panel__icon svg,
.static-language-panel__title:hover .static-language-panel__title-icon svg {
    transform: scale(1.05);
    filter:
        drop-shadow(
            0 0 5px
            color-mix(
                in srgb,
                var(--accent-glow) 30%,
                transparent
            )
        );
}

html[data-mode="dark"] .static-language-panel__title-icon,
html[data-mode="dark"] .static-language-panel__icon {
    box-shadow:
        0 7px 17px
        color-mix(
            in srgb,
            var(--accent-glow) 19%,
            transparent
        );
}

html[data-mode="light"] .static-language-panel__title-icon,
html[data-mode="light"] .static-language-panel__icon {
    box-shadow:
        0 5px 12px
        color-mix(
            in srgb,
            var(--accent-glow) 11%,
            transparent
        );
}

@media (prefers-reduced-motion: reduce) {
    .static-language-panel__title-icon,
    .static-language-panel__icon,
    .static-language-panel__icon svg,
    .static-language-panel__title-icon svg {
        transition: none;
    }

    .static-language-panel__item:hover .static-language-panel__icon,
    .static-language-panel__title:hover .static-language-panel__title-icon,
    .static-language-panel__item:hover .static-language-panel__icon svg,
    .static-language-panel__title:hover .static-language-panel__title-icon svg {
        transform: none;
    }
}
