/* CodeCraft.gr — the page of a programming language (/languages/{slug}). Loaded only there (template/index.php, when pages/languages/Controller sets $langPage).
   Same dark "command center" look as the front page: it reads the --hp-* colours of body.hp-home (home-v2.css) and falls back to their values. Markup: pages/languages/page.php. */

.lp-page {
    --lp-bg: var(--hp-bg, #03111B);
    --lp-card: var(--hp-card, #071D2A);
    --lp-cyan: var(--hp-cyan, #00E5F0);
    --lp-line: var(--hp-line, rgba(0, 229, 240, .22));
    --lp-line-strong: var(--hp-line-strong, rgba(0, 229, 240, .5));
    --lp-text: var(--hp-text, #eaf3f7);
    --lp-muted: var(--hp-muted, #93a9b6);
    --lp-r: var(--hp-r, 14px);
    --lp-glow: var(--hp-glow, 0 0 0 1px rgba(0, 229, 240, .05), 0 10px 34px -12px rgba(0, 229, 240, .22));
    color: var(--lp-text);
    padding: 5.6rem 0 3rem;          /* clears the fixed navbar */
}
.lp-page a { color: var(--lp-cyan); text-decoration: none; }
.lp-page a:hover { text-decoration: underline; }

.lp-preview { margin: 0 0 1rem; padding: .6rem .9rem; border: 1px dashed #e0b341; border-radius: 10px; background: rgba(224, 179, 65, .08); color: #f1d98a; font-size: .9rem; }
.lp-preview a { color: #f7e7ae; text-decoration: underline; }

.lp-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; font-size: .85rem; color: var(--lp-muted); }
.lp-crumbs i.fa-chevron-right { font-size: .6rem; opacity: .6; }
.lp-crumbs [aria-current] { color: var(--lp-text); font-weight: 700; }

/* hero */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 1.5rem; align-items: center; padding: 1.6rem; border: 1px solid var(--lp-line); border-radius: var(--lp-r); background: radial-gradient(120% 140% at 85% 20%, rgba(124, 58, 237, .28), transparent 60%), var(--lp-card); box-shadow: var(--lp-glow); }
.lp-label { display: inline-block; padding: .2rem .7rem; border: 1px solid rgba(167, 139, 250, .55); border-radius: 999px; background: rgba(124, 58, 237, .25); color: #d8ccff; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.lp-h1 { margin: .7rem 0 .2rem; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.05; color: #fff; }
.lp-tagline { margin: 0 0 .6rem; font-size: 1.2rem; font-weight: 700; color: #fff; }
.lp-intro p { margin: 0 0 .6rem; color: #cfe0e8; line-height: 1.6; }
.lp-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.lp-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border: 1px solid var(--lp-line-strong); border-radius: 999px; background: rgba(0, 229, 240, .06); color: #eaf3f7 !important; font-size: .88rem; font-weight: 700; transition: background .2s, transform .2s; }
.lp-btn:hover { background: rgba(0, 229, 240, .16); text-decoration: none !important; transform: translateY(-1px); }
.lp-btn--primary { border-color: transparent; background: var(--lp-cyan); color: #03111B !important; }
.lp-btn--primary:hover { background: #5af3fa; }
.lp-hero-art { display: flex; align-items: center; justify-content: center; min-height: 180px; }
.lp-hero-art img { max-width: 100%; max-height: 280px; object-fit: contain; filter: drop-shadow(0 12px 30px rgba(124, 58, 237, .45)); }
.lp-hero-art .lp-logo { width: min(220px, 70%); }
/* a dark logo (Rust, Bash, Objective-C, Haskell: ProgrammingLanguages::LOGO_TONE) would vanish on the navy hero: it sits on a light round tile, like on the front-page chips */
.lp-logo-tile { display: inline-flex; align-items: center; justify-content: center; width: min(190px, 62%); aspect-ratio: 1; border-radius: 50%; background: #eef4f7; box-shadow: 0 12px 30px rgba(124, 58, 237, .45), inset 0 0 0 1px rgba(0, 229, 240, .25); }
.lp-hero-art .lp-logo-tile .lp-logo { width: 64%; filter: none; }
.lp-logo-icon { font-size: 7rem; color: var(--lp-cyan); filter: drop-shadow(0 0 24px rgba(0, 229, 240, .35)); }

/* the three cards */
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hp-gap, 14px); margin-top: 1rem; }
.lp-card { padding: 1.1rem 1.2rem; border: 1px solid var(--lp-line); border-radius: var(--lp-r); background: var(--lp-card); box-shadow: var(--lp-glow); }
.lp-card h2, .lp-section-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; font-size: 1.1rem; font-weight: 700; color: #fff; }
.lp-card h2 i, .lp-section-title i { color: var(--lp-cyan); }
.lp-card p { margin: 0 0 .6rem; color: #cfe0e8; font-size: .92rem; line-height: 1.6; }
.lp-checks { margin: 0; padding: 0; list-style: none; }
.lp-checks li { display: flex; gap: .55rem; margin-bottom: .45rem; color: #cfe0e8; font-size: .9rem; line-height: 1.45; }
.lp-checks i { margin-top: .22rem; color: #3ddc97; font-size: .8rem; }
.lp-facts { margin: 0; }
.lp-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(0, 229, 240, .1); font-size: .9rem; }
.lp-facts > div:last-child { border-bottom: 0; }
.lp-facts dt { font-weight: 400; color: var(--lp-muted); }
.lp-facts dd { margin: 0; text-align: right; color: #fff; font-weight: 600; }
.lp-ver-note { font-weight: 400; color: var(--lp-muted); }
.lp-ver-src { display: block; margin-top: .15rem; font-size: .75rem; font-weight: 400; color: var(--lp-muted); }
.lp-ver-src a { color: inherit; text-decoration: underline; }

/* sections */
.lp-section { margin-top: 1.5rem; padding: 1.1rem 1.2rem; border: 1px solid var(--lp-line); border-radius: var(--lp-r); background: var(--lp-card); box-shadow: var(--lp-glow); }
.lp-section-title { font-size: 1.15rem; }
.lp-articles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hp-gap, 14px); }
.lp-art { display: flex; flex-direction: column; gap: .35rem; padding: .6rem; border: 1px solid var(--lp-line); border-radius: 12px; background: rgba(3, 17, 27, .55); color: var(--lp-text) !important; transition: border-color .2s, transform .2s; }
.lp-art:hover { border-color: var(--lp-line-strong); transform: translateY(-2px); text-decoration: none !important; }
.lp-art-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #0a2535; }
.lp-art-img img { width: 100%; height: 100%; object-fit: cover; }
.lp-art-cat { color: var(--lp-cyan); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.lp-art-title { font-size: .92rem; font-weight: 700; line-height: 1.35; color: #fff; }
.lp-art-date { color: var(--lp-muted); font-size: .76rem; }
.lp-ann-note { margin: -.3rem 0 .8rem; color: var(--lp-muted); font-size: .82rem; }
.lp-anns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hp-gap, 14px); }
.lp-ann { display: flex; flex-direction: column; gap: .35rem; padding: .8rem .9rem; border: 1px solid var(--lp-line); border-radius: 12px; background: rgba(3, 17, 27, .55); }
.lp-ann h3 { margin: 0; font-size: .98rem; font-weight: 700; line-height: 1.35; color: #fff; }
.lp-ann-meta { color: var(--lp-muted); font-size: .76rem; }
.lp-ann p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--lp-text); }
.lp-ann-link { margin-top: auto; padding-top: .2rem; font-size: .82rem; font-weight: 600; color: var(--lp-cyan) !important; }
.lp-rel-sub { margin: .2rem 0 .4rem; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--lp-muted); }
.lp-rels { margin: 0 0 .7rem; padding: 0 0 0 1.1rem; list-style: none; border-left: 2px solid var(--lp-line); }
.lp-rel { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .75rem; padding: .32rem 0 .32rem .6rem; }
.lp-rel::before { content: ''; position: absolute; left: calc(-1.1rem - 6px); top: .8rem; width: 10px; height: 10px; border-radius: 50%; background: var(--lp-cyan); box-shadow: 0 0 0 3px var(--lp-card); }
.lp-rel--planned::before { background: var(--lp-card); border: 2px dashed var(--lp-muted); width: 6px; height: 6px; }
.lp-rel b { min-width: 3.4rem; color: #fff; font-size: .98rem; }
.lp-rel-date { color: var(--lp-muted); font-size: .82rem; }
.lp-rel-note { color: #cfe0e8; font-size: .85rem; }
.lp-rel-more summary { cursor: pointer; margin: .2rem 0 .5rem; color: var(--lp-cyan); font-size: .88rem; font-weight: 600; }
.lp-rel-src { margin: .6rem 0 0; }
/* horizontal timeline («Χρονολόγιο εκδόσεων»): oldest -> newest, planned on the right; a phone scrolls it sideways */
.lp-tl { display: flex; margin: 0 0 .4rem; padding: 2rem 0 .6rem; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.lp-tl:focus-visible { outline: 2px solid var(--lp-line-strong); outline-offset: 3px; border-radius: 8px; }
.lp-tl-item { position: relative; flex: 1 1 0; min-width: 8.2rem; padding-top: 1.7rem; text-align: center; }
.lp-tl-item::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--lp-cyan); box-shadow: 0 0 8px rgba(0, 229, 240, .55); }
.lp-tl-item:first-child::before { left: 50%; }
.lp-tl-item:last-child::before { right: 50%; }
.lp-tl-item::after { content: ''; position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--lp-cyan); box-shadow: 0 0 0 4px var(--lp-card), 0 0 12px rgba(0, 229, 240, .7); }
.lp-tl-item--planned::before { height: 0; background: none; box-shadow: none; border-top: 2px dashed var(--lp-muted); }
.lp-tl-item--planned::after { background: var(--lp-card); border: 2px solid #fff; box-shadow: 0 0 0 4px var(--lp-card); }
.lp-tl-item--now::after { background: #fff; box-shadow: 0 0 0 4px var(--lp-card), 0 0 0 6px var(--lp-cyan), 0 0 16px rgba(0, 229, 240, .9); }
.lp-tl-pill { position: absolute; top: -1.85rem; left: 50%; transform: translateX(-50%); padding: .1rem .7rem; border-radius: 999px; background: #7c3aed; color: #fff; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.lp-tl-box { display: inline-flex; flex-direction: column; gap: .1rem; min-width: 6.4rem; max-width: 100%; padding: .45rem .8rem; border: 1px solid var(--lp-line); border-radius: 10px; background: rgba(3, 17, 27, .55); }
.lp-tl-box b { color: #fff; font-size: .95rem; }
.lp-tl-box small { color: var(--lp-muted); font-size: .78rem; }
.lp-tl-box .lp-tl-note { color: #cfe0e8; font-size: .74rem; }
.lp-tl-item--now .lp-tl-box { border-color: #a78bfa; background: rgba(124, 58, 237, .3); box-shadow: 0 0 16px rgba(124, 58, 237, .45); }
.lp-tl-item--planned .lp-tl-box { border-style: dashed; }
.lp-tl-item--beta .lp-tl-box, .lp-tl-item--rc .lp-tl-box { border-style: dashed; border-color: rgba(251, 191, 36, .45); }
.lp-tl-item--eol .lp-tl-box { opacity: .62; }
.lp-tl-tag { display: inline-block; align-self: center; margin: .15rem 0 .1rem; padding: .05rem .5rem; border: 1px solid var(--lp-line-strong); border-radius: 999px; color: var(--lp-text); font-size: .68rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.lp-tl-tag--lts { border-color: #34d399; background: rgba(52, 211, 153, .16); color: #a7f3d0; }
.lp-tl-tag--sts { border-color: #fbbf24; background: rgba(251, 191, 36, .14); color: #fde68a; }
.lp-tl-tag--rc { border-color: #fb923c; background: rgba(251, 146, 60, .16); color: #fed7aa; }
.lp-tl-tag--beta { border-color: #a78bfa; background: rgba(124, 58, 237, .22); color: #ddd6fe; }
.lp-tl-tag--planned { border-style: dashed; border-color: var(--lp-muted); color: var(--lp-muted); }
.lp-tl-box .lp-tl-latest { color: #cfe0e8; }
.lp-tl-box .lp-tl-sup { font-size: .72rem; line-height: 1.3; }
.lp-tl-sup--active { color: #86efac !important; }
.lp-tl-sup--maintenance { color: #fde68a !important; }
.lp-tl-sup--eol { color: #fca5a5 !important; }
.lp-tl-legend { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; margin: .4rem 0 .6rem; padding: 0; list-style: none; color: var(--lp-muted); font-size: .8rem; }
.lp-tl-legend li { display: flex; align-items: center; gap: .45rem; }
.lp-tl-legend .lp-tl-tag { margin: 0; }
.lp-split { margin-top: 1.5rem; display: grid; gap: var(--hp-gap, 14px); }
.lp-split > .lp-section { margin-top: 0; }
.lp-split--two { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.lp-split--two .lp-anns { grid-template-columns: 1fr; }
.lp-ver { background: radial-gradient(120% 120% at 100% 0%, rgba(124, 58, 237, .28), transparent 60%), var(--lp-card); }
.lp-ver p { margin: 0; }
.lp-ver-big { margin: .2rem 0 .5rem !important; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.1; color: #fff; }
.lp-ver-tags { margin-bottom: .6rem !important; }
.lp-ver-tags .lp-tl-tag { margin: 0; font-size: .75rem; padding: .1rem .7rem; }
.lp-ver-line { color: var(--lp-text); font-size: .92rem; line-height: 1.5; }
.lp-ver-line--note { color: var(--lp-muted); font-size: .85rem; }
.lp-ver-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 .7rem; }
.lp-logo-chip { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 8px; background: #d6ddda; }
.lp-logo-chip img { display: block; height: 26px; width: auto; }
.lp-note p { margin: 0 0 .7rem; line-height: 1.6; color: var(--lp-text); }
.lp-note p.lp-ann-note { margin: .2rem 0 0; color: var(--lp-muted); }

.lp-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.lp-link { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border: 1px solid var(--lp-line); border-radius: 12px; background: rgba(3, 17, 27, .55); color: var(--lp-text) !important; transition: border-color .2s, background .2s; }
.lp-link:hover { border-color: var(--lp-line-strong); background: rgba(0, 229, 240, .07); text-decoration: none !important; }
.lp-link > i:first-child { flex: none; width: 1.6rem; text-align: center; color: var(--lp-cyan); font-size: 1.2rem; }
.lp-link span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lp-link b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; color: #fff; }
.lp-link small { color: var(--lp-muted); font-size: .75rem; }
.lp-link-ext { flex: none; color: var(--lp-muted); font-size: .75rem; }

.lp-notfound { max-width: 34rem; margin: 3rem auto; text-align: center; }
.lp-notfound h1 { font-size: 1.8rem; color: #fff; }

@media (max-width: 991.98px) {
    .lp-hero { grid-template-columns: 1fr; }
    .lp-hero-art { order: -1; min-height: 120px; }
    .lp-hero-art img { max-height: 160px; }
    .lp-logo-icon { font-size: 4.5rem; }
    .lp-cards { grid-template-columns: 1fr; }
    .lp-split--two { grid-template-columns: 1fr; }
    .lp-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .lp-page { padding-top: 5rem; }
    .lp-hero { padding: 1.1rem; }
    .lp-articles, .lp-links, .lp-anns { grid-template-columns: 1fr; }
    .lp-facts > div { flex-direction: column; gap: .1rem; }
    .lp-facts dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-btn, .lp-art, .lp-link { transition: none; }
    .lp-btn:hover, .lp-art:hover { transform: none; }
}
