/* ===========================================
   Windchant Studios - Gym Garden theme
   Włączany klasą html.theme-gym (inline snippet w <head> + js/theme.js):
   strony sekcji /gym-garden/ przechodzą w styl gry, powrót do reszty
   serwisu przywraca styl studia. Kurtyna przejścia i lightbox:
   css/theme-common.css (tu tylko zmienne lightboxa dla tego motywu).
   =========================================== */

/* Jeden plik (latin + latin-ext + znaki łączące) zamiast podzbiorów
   Google Fonts: w ich podziale ą/ę/ż/Ż nie renderują się w Fredoce,
   bo składane są z litery i znaku diakrytycznego z różnych plików. */
@font-face {
    font-family: 'Fredoka';
    src: url('/fonts/fredoka.woff2') format('woff2');
    font-weight: 300 700;
    font-display: swap;
}

:root {
    --gg-cream: #f3f0d8;
    --gg-yellow: #ffd76a;
    --gg-butter: #ffe9b0;
    --gg-leaf: #8fd36a;
    --gg-leaf-light: #cfe3c6;
    --gg-moss: #b8e29a;
    --gg-green: #4f9a3c;
    --gg-green-dark: #2b5c20;
    --gg-wood: #5a3f25;
    --gg-wood-light: #7a5230;
    --gg-wood-dark: #2f1f10;
    --gg-wood-panel: #3b2916;
    --gg-night: #16241a;
}

/* Lightbox (theme-common.css) w drewnie i zieleni gry */
html.theme-gym {
    --lb-backdrop: rgba(8, 14, 10, 0.9);
    --lb-font: 'Fredoka', 'Segoe UI', sans-serif;
    --lb-text: var(--gg-cream);
    --lb-img-border: var(--gg-wood-light);
    --lb-img-radius: 12px;
    --lb-img-bg: var(--gg-night);
    --lb-btn-bg: var(--gg-wood);
    --lb-btn-border: var(--gg-wood-dark);
    --lb-btn-stroke: 2px;
    --lb-btn-lip: 5px;
    --lb-btn-lip-color: var(--gg-wood-dark);
    --lb-btn-text: #fff3cf;
    --lb-btn-radius: 12px;
    --lb-btn-hover: #6d4c2c;
}

/* ===========================================
   Warstwa tła gry
   =========================================== */

.bg-gym {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(180deg, rgba(14, 26, 18, 0.45) 0%, rgba(14, 26, 18, 0.7) 55%, rgba(10, 18, 12, 0.9) 100%),
        url('/img/gym-garden/bg.webp') center 30% / cover no-repeat var(--gg-night);
}

html.theme-gym .bg-gym {
    opacity: 1;
}

html.theme-gym .bg-atmosphere {
    opacity: 0;
}

/* ===========================================
   Podstawa
   =========================================== */

html.theme-gym body {
    font-family: 'Fredoka', 'Segoe UI', 'Trebuchet MS', sans-serif;
    background: var(--gg-night);
    color: var(--gg-cream);
}

html.theme-gym .particle {
    width: 5px;
    height: 5px;
    background: #eaf6d2;
    box-shadow: 0 0 6px var(--gg-moss), 0 0 14px rgba(106, 168, 79, 0.8);
}

html.theme-gym .corner-ornament {
    display: none;
}

/* ===========================================
   Nawigacja - drewniane klawisze jak w grze
   =========================================== */

html.theme-gym .nav-toggle {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #fff3cf;
    background: var(--gg-wood);
    border: 2px solid var(--gg-wood-dark);
    border-bottom-width: 5px;
    border-radius: 12px;
    padding: 8px 16px 9px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    backdrop-filter: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

html.theme-gym .nav-toggle:hover {
    background: #6d4c2c;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

html.theme-gym .nav-dropdown {
    background: var(--gg-wood-panel);
    border: 2px solid #8b6a3a;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
    backdrop-filter: none;
    overflow: hidden;
}

html.theme-gym .nav-section {
    border-bottom: 1px solid rgba(255, 235, 180, 0.15);
}

html.theme-gym .nav-section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gg-moss);
}

html.theme-gym .nav-item {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--gg-butter);
}

html.theme-gym .nav-item-sub {
    color: #e8d7b0;
    font-size: 0.9rem;
}

html.theme-gym .nav-item:hover {
    background: rgba(255, 215, 106, 0.12);
    color: var(--gg-yellow);
}

html.theme-gym .lang-switcher {
    background: var(--gg-wood-panel);
    border: 2px solid #8b6a3a;
    border-radius: 10px;
    backdrop-filter: none;
    padding: 3px;
}

html.theme-gym .lang-btn {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #d9c59a;
    border-radius: 7px;
}

html.theme-gym .lang-btn:hover {
    color: var(--gg-yellow);
    background: rgba(255, 215, 106, 0.12);
}

html.theme-gym .lang-btn.active {
    color: #fff;
    background: var(--gg-green);
}

/* ===========================================
   Podstrony - panel jak deska z gry
   =========================================== */

html.theme-gym .page-container {
    background: rgba(16, 28, 20, 0.58);
    border: 2px solid rgba(122, 82, 48, 0.75);
    border-radius: 18px;
    padding: 36px 40px 30px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

html.theme-gym .game-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--gg-yellow);
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

html.theme-gym .page-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--gg-leaf-light);
}

html.theme-gym .page-intro {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gg-cream);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

html.theme-gym .page-section h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--gg-yellow);
}

html.theme-gym .page-section p,
html.theme-gym .page-section li {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.08rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--gg-cream);
    opacity: 0.95;
}

html.theme-gym .page-section strong {
    color: var(--gg-butter);
    font-weight: 600;
}

html.theme-gym .page-section li::before {
    width: 8px;
    height: 8px;
    top: 0.62em;
    background: var(--gg-leaf);
    border-radius: 60% 0 60% 0;
    transform: rotate(45deg);
    box-shadow: none;
}

html.theme-gym .page-section a {
    color: var(--gg-yellow);
    border-bottom-color: rgba(255, 215, 106, 0.5);
}

html.theme-gym .page-section a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

html.theme-gym .divider-line {
    background: linear-gradient(90deg, transparent, var(--gg-leaf), transparent);
}

html.theme-gym .divider-diamond {
    background: var(--gg-yellow);
    border-radius: 60% 0 60% 0;
    box-shadow: 0 0 10px rgba(255, 215, 106, 0.8);
}

html.theme-gym .store-badge {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #fff8dc;
    background: var(--gg-green);
    border: 2px solid var(--gg-green-dark);
    border-bottom-width: 6px;
    border-radius: 14px;
    padding: 10px 26px 11px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Klawisz do sklepu = ten sam drewniany klawisz co plakietka, z wargą */
html.theme-gym .store-link {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #fff8dc;
    background: var(--gg-green);
    border: 2px solid var(--gg-green-dark);
    border-bottom-width: 6px;
    border-radius: 14px;
    padding: 12px 30px 13px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

html.theme-gym .store-link::before {
    background: linear-gradient(90deg, transparent, rgba(255, 248, 220, 0.18), transparent);
}

html.theme-gym .store-link:hover {
    background: var(--gg-green-light, #5fae4a);
    border-color: var(--gg-green-dark);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

html.theme-gym .game-hero .store-link {
    margin-bottom: 36px;
}

html.theme-gym .store-cta {
    margin-top: 18px;
}

html.theme-gym .game-icon {
    border: 3px solid var(--gg-wood-light);
    box-shadow: 0 0 40px rgba(143, 211, 106, 0.25), 0 8px 18px rgba(0, 0, 0, 0.45);
}

html.theme-gym .screenshot-grid img {
    border: 3px solid var(--gg-wood-light);
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

html.theme-gym .screenshot-grid img:hover {
    border-color: var(--gg-yellow);
}

html.theme-gym .screenshot-grid figcaption {
    font-family: 'Fredoka', sans-serif;
    color: var(--gg-leaf-light);
    letter-spacing: 0.02em;
}

html.theme-gym .last-updated {
    font-family: 'Fredoka', sans-serif;
    color: var(--gg-moss);
}

html.theme-gym footer {
    border-top: 1px solid rgba(255, 235, 180, 0.12);
}

html.theme-gym .footer-text {
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.03em;
    color: #9fb894;
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 768px) {
    html.theme-gym .page-container {
        padding: 26px 22px 22px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    html.theme-gym .page-container {
        padding: 22px 16px 18px;
    }
}
