/* Shared styles for /learn/ article pages — same palette as the game (index_dev.html). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #0d1b2a;
    color: #dde;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

a { color: #7ec8ff; }
a:hover { color: #d0eeff; }

/* ── Top bar (sticky, so "Play" is always one tap away) ── */
.lr-top {
    position: sticky; top: 0; z-index: 10;
    background: rgba(13,27,42,0.92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid #1e3a5a;
}
.lr-top-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    max-width: 760px; margin: 0 auto; padding: 10px 16px;
}
.lr-top-right { display: flex; align-items: center; gap: 10px; }
.lr-brand {
    font-weight: 900; letter-spacing: 2px; text-decoration: none;
    color: #d0e8ff; font-size: 15px; text-transform: uppercase; white-space: nowrap;
}
.lr-play {
    text-decoration: none; font-weight: 800; font-size: 13px; color: #fff; white-space: nowrap;
    padding: 7px 14px; border-radius: 10px;
    background: linear-gradient(160deg, #2580d0, #155a95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 10px rgba(29,111,184,0.4);
}
.lr-play:hover { filter: brightness(1.12); color: #fff; }
@media (max-width: 400px) {
    .lr-top-inner { padding: 10px 12px; gap: 6px; }
    .lr-top-right { gap: 6px; }
    .lr-brand { font-size: 11px; letter-spacing: 0.5px; }
    .lr-lang a { padding: 3px 7px; }
    .lr-play { padding: 7px 10px; }
}

/* Breadcrumbs */
.lr-crumbs { font-size: 13px; color: #6a8fa8; margin-top: 14px; }
.lr-crumbs a { color: #7aafd4; text-decoration: none; }
.lr-crumbs a:hover { text-decoration: underline; }
.lr-lang { display: flex; gap: 5px; }
.lr-lang a {
    font-size: 12px; font-weight: 700; text-decoration: none;
    padding: 3px 9px; border-radius: 6px; white-space: nowrap;
    border: 1px solid #2a4a6a; color: #7aafd4;
}
.lr-lang a.active { background: #1d6fb8; border-color: #1d6fb8; color: #fff; }

/* ── Article ── */
.lr-article { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }
.lr-article h1 {
    font-size: 30px; line-height: 1.25; color: #d0e8ff; margin: 18px 0 10px;
}
.lr-lead { font-size: 17px; color: #9cc4e4; margin-bottom: 22px; }
.lr-article h2 {
    font-size: 22px; color: #7ec8ff; margin: 38px 0 12px;
    padding-top: 14px; border-top: 1px solid #1e3a5a;
}
.lr-article h3 { font-size: 17px; color: #d0e8ff; margin: 22px 0 8px; }
.lr-article p { margin: 0 0 12px; }
.lr-article ul, .lr-article ol { margin: 0 0 14px 22px; }
.lr-article li { margin-bottom: 6px; }
.lr-article b, .lr-article strong { color: #d0e8ff; }

/* Table of contents */
.lr-toc {
    background: #12263b; border: 1px solid #1e3a5a; border-radius: 12px;
    padding: 14px 18px; margin: 0 0 8px;
}
.lr-toc-title { font-size: 13px; font-weight: 700; color: #7aafd4; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.lr-toc ol { margin: 0 0 0 20px; }
.lr-toc li { margin-bottom: 3px; }

/* "How to do it" step box — mirrors the tutorial level */
.lr-steps {
    background: #12263b; border-left: 3px solid #1d6fb8; border-radius: 0 10px 10px 0;
    padding: 10px 14px; margin: 0 0 12px;
}
.lr-steps-label { font-size: 12px; font-weight: 700; color: #4a90d9; text-transform: uppercase; letter-spacing: 1px; }

.lr-tip {
    background: rgba(26,122,74,0.12); border: 1px solid #1a7a4a; border-radius: 10px;
    padding: 10px 14px; margin: 0 0 14px; color: #bfe6cf;
}

/* Tables */
.lr-table-wrap { overflow-x: auto; margin: 0 0 16px; }
.lr-article table { border-collapse: collapse; width: 100%; font-size: 14px; }
.lr-article th, .lr-article td { border: 1px solid #1e3a5a; padding: 7px 10px; text-align: left; vertical-align: top; }
.lr-article th { background: #12263b; color: #9cc4e4; }

/* Call to action */
.lr-cta { text-align: center; margin: 34px 0 10px; }
.lr-cta a {
    display: inline-block; text-decoration: none; font-weight: 800; font-size: 17px;
    color: #fff; padding: 13px 28px; border-radius: 14px;
    background: linear-gradient(135deg, #1d6fb8, #155a95);
    box-shadow: 0 0 18px rgba(29,111,184,0.45);
}
.lr-cta a:hover { filter: brightness(1.15); color: #fff; }

/* Article cards (hub page + "More articles") — same card shape as the game's landing page */
.lr-more-title { border-top: 1px solid #1e3a5a; }
.lr-cards { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.lr-card {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    padding: 13px 16px; border-radius: 14px;
    background: #12263b; border: 1px solid #1e3a5a; color: #dde;
    transition: border-color 0.15s, transform 0.12s;
}
.lr-card:hover { border-color: #4a90d9; color: #dde; }
.lr-card:active { transform: scale(0.98); }
.lr-card-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.lr-card-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lr-card-text b { color: #d0e8ff; font-size: 16px; }
.lr-card-text span { font-size: 13px; color: #8fb3d0; line-height: 1.5; }
.lr-card-arrow { font-size: 24px; color: #4a90d9; line-height: 1; }

/* FAQ */
.lr-faq { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lr-faq-item {
    background: #12263b; border: 1px solid #1e3a5a; border-radius: 10px; padding: 10px 14px;
}
.lr-faq-item summary { cursor: pointer; font-weight: 700; color: #d0e8ff; }
.lr-faq-item p { margin: 8px 0 2px; }

.lr-footer a { color: #7aafd4; text-decoration: none; }

.lr-footer {
    max-width: 760px; margin: 0 auto; padding: 18px 16px 30px;
    border-top: 1px solid #1e3a5a; font-size: 13px; color: #6a8fa8; text-align: center;
}

@media (max-width: 480px) {
    .lr-article h1 { font-size: 25px; }
    .lr-article h2 { font-size: 20px; }
    .lr-lead { font-size: 16px; }
}
