/* =========================================================
   Dyku Gierkuje — motyw „dark gaming"
   Paleta z logo: turkus #00FFC0 (DYKU) + żółty #FFF000 (GIERKUJE)
   ========================================================= */

:root {
    /* tła */
    --bg:        #0B0E11;
    --bg-2:      #0E1318;
    --surface:   #141A21;
    --surface-2: #1B232C;
    --border:    rgba(255, 255, 255, .08);
    --border-2:  rgba(255, 255, 255, .14);

    /* tekst */
    --text:      #E8EDF0;
    --muted:     #95A2AD;
    --faint:     #66727C;

    /* akcenty (z logo) */
    --mint:      #00FFC0;
    --mint-2:    #15E0AE;
    --yellow:    #FFF000;
    --mint-glow: rgba(0, 255, 192, .28);
    --yellow-glow: rgba(255, 240, 0, .22);

    /* typografia */
    --font-head: 'Chakra Petch', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    /* układ */
    --wrap: 1160px;
    --radius: 14px;
    --radius-sm: 10px;
    --header-h: 70px;
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, .8);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; }
::selection { background: var(--mint); color: #04130f; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

/* tło z poświatą na całą stronę */
.bg-fx {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 600px at 15% -10%, rgba(0, 255, 192, .10), transparent 60%),
        radial-gradient(800px 600px at 100% 0%, rgba(255, 240, 0, .06), transparent 55%),
        linear-gradient(180deg, var(--bg) 0%, #090C0F 100%);
}
.bg-fx::after {
    content: ""; position: absolute; inset: 0; opacity: .35;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}

/* ---------- przyciski ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--font-head); font-weight: 600; font-size: .98rem;
    padding: .82em 1.4em; border-radius: 8px; cursor: pointer;
    border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--mint) 0%, var(--mint-2) 100%);
    color: #04130f; box-shadow: 0 10px 30px -10px var(--mint-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px var(--mint-glow); }
.btn-ghost {
    background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }
.yt-ic { color: #FF3D3D; font-size: .9em; }
.btn-primary .yt-ic, .btn-yt .yt-ic { color: inherit; }

/* przycisk YouTube w nawigacji */
.btn-yt {
    display: inline-flex; align-items: center; gap: .5em;
    font-family: var(--font-head); font-weight: 600; font-size: .92rem;
    padding: .6em 1.1em; border-radius: 8px;
    background: var(--yellow); color: #1a1700;
    transition: transform .15s ease, box-shadow .2s ease;
    box-shadow: 0 8px 24px -10px var(--yellow-glow);
}
.btn-yt:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--yellow-glow); }
.btn-yt .yt-ic { color: #d11; }
.btn-yt.sm { font-size: .85rem; padding: .5em .95em; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(11, 14, 17, .82); backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand-logo { height: 38px; width: auto; filter: drop-shadow(0 0 14px var(--mint-glow)); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn-yt) {
    font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: var(--muted);
    position: relative; transition: color .18s ease;
}
.nav > a:not(.btn-yt):hover { color: var(--text); }
.nav > a:not(.btn-yt)::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--mint); transition: width .22s ease;
}
.nav > a:not(.btn-yt):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ---------- hero ---------- */
.hero {
    position: relative; overflow: hidden; display: flex; align-items: center;
    min-height: clamp(520px, 78vh, 720px);
    padding: clamp(56px, 10vw, 110px) 0 clamp(48px, 7vw, 80px);
}

/* ściana ze screenami z gier (realne kadry ze Steam) */
.hero-media {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 50%;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.66) saturate(.9) contrast(1.03); }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(95deg, rgba(11, 14, 17, .95) 0%, rgba(11, 14, 17, .88) 35%, rgba(11, 14, 17, .64) 60%, rgba(11, 14, 17, .42) 85%, rgba(11, 14, 17, .58) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(11, 14, 17, .25) 22%, transparent 50%),
        linear-gradient(180deg, rgba(11, 14, 17, .55) 0%, transparent 20%);
}
@media (min-width: 1500px) { .hero-media { grid-template-columns: repeat(4, 1fr); } }
.hero.hero-plain { min-height: clamp(440px, 60vh, 560px); }

.hero::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 4px; height: clamp(150px, 26vw, 280px);
    background: linear-gradient(180deg, transparent, var(--mint) 35%, var(--mint) 65%, transparent);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; padding-left: clamp(0px, 3vw, 28px); }
.hero h1 { font-size: clamp(2.4rem, 6.6vw, 4.6rem); letter-spacing: -1px; margin-bottom: 24px; text-transform: uppercase; }
.hero h1 .accent { color: var(--mint); }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 600px; margin: 0 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- sekcje ---------- */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), transparent); border-block: 1px solid var(--border); }
.section-head { max-width: 620px; margin: 0 0 44px; }
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.hero .eyebrow { display: block; margin: 0 0 18px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); margin: 12px 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.section-foot { display: flex; justify-content: center; margin-top: 42px; }

.empty {
    text-align: center; color: var(--muted); padding: 60px 20px;
    border: 1px dashed var(--border-2); border-radius: var(--radius); background: rgba(255, 255, 255, .015);
}

/* ---------- grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-videos { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- karta tłumaczenia ---------- */
.card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--mint); box-shadow: 0 24px 50px -22px var(--mint-glow); }
.card-cover {
    position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.card-cover::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 26px 26px;
}
.card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-mono {
    position: relative; font-family: var(--font-head); font-weight: 700; font-size: 4.4rem;
    color: var(--mint); opacity: .9;
}
.card-lang {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .08em;
    padding: .3em .7em; border-radius: 6px; color: #04130f; background: var(--mint);
}
.card-body { padding: 18px 18px 8px; flex: 1; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card-desc { color: var(--muted); font-size: .92rem; margin: 0 0 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    font-size: .76rem; color: var(--muted); padding: .3em .65em; border-radius: 999px;
    border: 1px solid var(--border-2); background: rgba(255, 255, 255, .02);
}
.chip-dl { color: var(--yellow); border-color: rgba(255, 240, 0, .25); }
.btn-download {
    margin: 16px 18px 18px; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    padding: .8em 1em; border-radius: var(--radius-sm); color: #1a1700;
    background: linear-gradient(135deg, var(--yellow), #ffd400);
    transition: filter .18s ease, transform .15s ease;
}
.btn-download:hover { filter: brightness(1.08); transform: translateY(-1px); }
.dl-ic { font-weight: 800; }
.chip-wip { color: var(--mint); border-color: rgba(0, 255, 192, .28); }
.btn-download--soon {
    background: rgba(255, 255, 255, .04); color: var(--muted);
    border: 1px solid var(--border-2); cursor: default;
}
.btn-download--soon:hover { filter: none; transform: none; }

/* ---------- karta filmu ---------- */
.video {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.video:hover { transform: translateY(-5px); border-color: var(--yellow); box-shadow: 0 24px 50px -22px var(--yellow-glow); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s ease; }
.video:hover .video-thumb img { transform: scale(1.06); opacity: .82; }
.video-play {
    position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
    display: grid; place-items: center; border-radius: 50%;
    background: rgba(255, 61, 61, .92); color: #fff; font-size: 1.1rem; padding-left: 4px;
    opacity: 0; transform: scale(.8); transition: opacity .2s ease, transform .2s ease;
}
.video:hover .video-play { opacity: 1; transform: scale(1); }
.video-body { padding: 14px 16px 18px; }
.video-body h3 { font-size: 1rem; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-body time { display: block; margin-top: 8px; font-size: .8rem; color: var(--faint); }

/* ---------- o mnie ---------- */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 12px 0 18px; }
.about-text p { color: var(--muted); font-size: 1.08rem; margin: 0 0 28px; }
.about-text strong { color: var(--text); }
.about-card {
    position: relative; border-radius: var(--radius); padding: 48px 32px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(0, 255, 192, .12), transparent 60%),
        radial-gradient(120% 120% at 100% 100%, rgba(255, 240, 0, .10), transparent 60%),
        var(--surface);
    border: 1px solid var(--border); display: grid; place-items: center; box-shadow: var(--shadow);
}
.about-card img { width: 100%; max-width: 260px; filter: drop-shadow(0 0 26px var(--mint-glow)); }

/* ---------- podstrona: lista tłumaczeń ---------- */
.subpage { padding-top: clamp(48px, 7vw, 80px); }
.subpage .section-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; margin: 12px 0 10px; }

.tl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tl-row {
    display: flex; align-items: center; gap: 20px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 18px; transition: border-color .18s ease, transform .18s ease;
}
.tl-row:hover { border-color: var(--mint); transform: translateX(3px); }
.tl-cover {
    flex: 0 0 84px; width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center;
}
.tl-cover img { width: 100%; height: 100%; object-fit: cover; }
.tl-mono { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--mint); opacity: .9; }
.tl-main { flex: 1; min-width: 0; }
.tl-main h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tl-desc { color: var(--muted); font-size: .92rem; margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; min-width: 170px; }
.tl-actions .btn-download { margin: 0; }
.btn-nexus {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-family: var(--font-head); font-weight: 600; font-size: .92rem;
    padding: .72em 1em; border-radius: var(--radius-sm);
    color: var(--text); background: rgba(255, 255, 255, .03); border: 1px solid var(--border-2);
    transition: border-color .18s ease, color .18s ease;
}
.btn-nexus:hover { border-color: var(--mint); color: var(--mint); }

/* tytuły kart i wierszy jako linki do strony spolszczenia */
.card-body h3 a, .tl-main h3 a { color: inherit; text-decoration: none; transition: color .18s ease; }
.card-body h3 a:hover, .tl-main h3 a:hover { color: var(--mint); }

/* ---------- okruszki ---------- */
.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: .85rem; color: var(--muted); margin: 0 0 26px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb .sep { color: var(--faint); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- pojedyncze spolszczenie ---------- */
.tl-single {
    display: flex; gap: 28px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow);
}
.tl-single-cover {
    flex: 0 0 240px; width: 240px; aspect-ratio: 2 / 3; border-radius: var(--radius-sm); overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center;
}
.tl-single-cover img { width: 100%; height: 100%; object-fit: cover; }
.tl-single-cover .tl-mono { font-size: 4rem; }
.tl-single-main { flex: 1; min-width: 0; }
.tl-single-main h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 8px 0 16px; }
.tl-single-main .tl-meta { margin-bottom: 18px; }
.tl-single-desc { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin: 0 0 16px; }
.tl-updated { color: var(--faint); font-size: .85rem; margin: 0 0 20px; }
.tl-updated time { color: var(--muted); }
.tl-single .tl-actions { flex-direction: row; min-width: 0; }

/* sekcje treści na stronie spolszczenia */
.wrap-narrow { max-width: 880px; }
.tl-block { margin-top: 38px; }
.tl-block > h2 { font-size: 1.5rem; margin: 0 0 14px; }
.tl-block p { color: var(--muted); line-height: 1.7; margin: 0 0 12px; }
.tl-steps { color: var(--muted); line-height: 1.7; margin: 0; padding-left: 20px;
    display: flex; flex-direction: column; gap: 8px; }
.tl-steps li { padding-left: 4px; }

.tl-changelog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tl-changelog li {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
}
.cl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cl-head time { color: var(--faint); font-size: .85rem; }
.tl-changelog p { margin: 0; color: var(--muted); }

.tl-faq { display: flex; flex-direction: column; gap: 10px; }
.tl-faq details {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.tl-faq summary {
    cursor: pointer; padding: 14px 44px 14px 16px; position: relative; list-style: none;
    font-family: var(--font-head); font-weight: 600; color: var(--text);
}
.tl-faq summary::-webkit-details-marker { display: none; }
.tl-faq summary::after { content: '+'; position: absolute; right: 16px; top: 12px; color: var(--mint); font-size: 1.2rem; }
.tl-faq details[open] summary::after { content: '\2212'; }
.tl-faq details p { margin: 0; padding: 0 16px 16px; color: var(--muted); line-height: 1.6; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; margin-top: 20px; background: #090C0F; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-logo { height: 30px; width: auto; opacity: .9; }
.footer-meta { color: var(--faint); font-size: .88rem; margin: 0; }

/* ---------- responsywność ---------- */
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 4px;
        padding: 16px 22px 24px; background: rgba(11, 14, 17, .97); backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        clip-path: inset(0 0 100% 0); opacity: 0; transition: clip-path .25s ease, opacity .2s ease;
    }
    .nav.open { clip-path: inset(0 0 0 0); opacity: 1; }
    .nav > a:not(.btn-yt) { padding: 10px 0; width: 100%; }
    .btn-yt { margin-top: 8px; }
    .about { grid-template-columns: 1fr; gap: 28px; }
    .about-card { order: -1; padding: 36px 24px; }
    .hero-media { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 33.333%; }
    .hero-media::after {
        background: linear-gradient(180deg, rgba(11, 14, 17, .5) 0%, rgba(11, 14, 17, .82) 52%, var(--bg) 100%);
    }
    .hero::before { left: 0; }
    .tl-row { flex-wrap: wrap; }
    .tl-cover { flex-basis: 64px; width: 64px; height: 64px; }
    .tl-main { flex: 1 1 60%; }
    .tl-actions { flex: 1 1 100%; flex-direction: row; min-width: 0; }
    .tl-actions .btn-download, .tl-actions .btn-nexus { flex: 1; }
    .tl-single { flex-direction: column; gap: 20px; }
    .tl-single-cover { flex-basis: auto; width: 100%; max-width: 220px; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
