/* Shared styles for all vyshenka.app pages: header with menu, footer, language toggling.
   Page-specific styles stay inline in each HTML file. */

/* ---------- Language: bilingual markup is toggled by <html lang> ---------- */
.l-en, #content-en { display: none; }
html[lang="en"] .l-uk, html[lang="en"] #content-uk { display: none; }
html[lang="en"] .l-en { display: revert; }
html[lang="en"] #content-en { display: block; }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 3px solid #F9A825; outline-offset: 2px; border-radius: 6px;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: #1B5E20; color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    border-bottom: 1px solid #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.4;
}
.site-header-inner {
    max-width: 1100px; margin: 0 auto; padding: 10px 20px;
    display: flex; align-items: center; gap: 12px;
}
.brand {
    display: flex; align-items: center; gap: 10px; margin-right: auto;
    font-weight: 700; font-size: 19px; color: #2E7D32; text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }

.nav-links { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a {
    display: block; padding: 8px 11px; border-radius: 8px;
    color: #2b3a2c; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.nav-links a:hover { background: #E8F5E9; color: #1B5E20; }
.nav-links a[aria-current="page"] { background: #E8F5E9; color: #1B5E20; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; }
/* Official Google Play badge (unaltered artwork from Google Partner Marketing Hub). Clear space >= 1/4 of height. */
.play-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.play-badge img { vertical-align: top; height: auto; }
.header-actions .play-badge img { height: 40px; width: auto; }

.lang-switch { display: flex; border: 2px solid #2E7D32; border-radius: 20px; overflow: hidden; flex-shrink: 0; }
.lang-switch a { padding: 4px 11px; font-size: 13px; font-weight: 700; color: #2E7D32; text-decoration: none; }
.lang-switch a:hover { background: #E8F5E9; }
.lang-switch a[aria-current="true"] { background: #2E7D32; color: #fff; }

/* Mobile menu: <details>/<summary>, works without JavaScript */
.nav-mobile { display: none; }
.nav-mobile summary {
    list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: #2E7D32;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary:hover { background: #E8F5E9; }
.burger, .burger::before, .burger::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
    transition: transform .2s, background .2s;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-mobile[open] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid #e0e0e0; box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
    padding: 8px 20px 18px;
}
.mobile-panel .nav-links { flex-direction: column; gap: 0; }
.mobile-panel .nav-links a { padding: 12px 10px; font-size: 16px; border-bottom: 1px solid #f0f0f0; border-radius: 0; }
.mobile-panel .play-badge { margin-top: 16px; }
.mobile-panel .play-badge img { height: 48px; width: auto; }

@media (max-width: 939.98px) {
    .nav-desktop, .header-actions .play-badge { display: none; }
    .nav-mobile { display: block; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: #1B3D1F; color: #cfe3d0; margin-top: 64px; padding: 44px 20px 28px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.6; text-align: left;
}
.footer-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.site-footer h2 { color: #fff; font-size: 15px; margin: 0 0 12px; padding: 0; border: 0; }
.site-footer a { color: #cfe3d0; text-decoration: none; display: block; margin-bottom: 8px; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { font-size: 13px; color: #a9c4ab; margin: 0 0 6px; text-align: left; }
.footer-bottom {
    max-width: 1000px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid #2f5233;
    font-size: 13px; color: #a9c4ab; text-align: center;
}
