/* Společné prvky: cookie lišta, nastavení cookies, přepínač jazyků, právní patička. */

.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Přepínač jazyků ---------- */
.lang-switch {
    display: inline-flex;
    border: 1px solid rgba(242, 239, 233, .16);
    border-radius: 100px;
    padding: 3px;
    background: rgba(10, 10, 10, .55);
}
.lang-switch button {
    border: 0; background: none; cursor: pointer;
    font: 600 11px 'Inter', system-ui, sans-serif;
    letter-spacing: .14em;
    color: #a29d94;
    padding: 7px 10px;
    border-radius: 100px;
    transition: color .3s, background .3s;
}
.lang-switch button:hover { color: #f2efe9; }
.lang-switch button[aria-pressed="true"] {
    color: #0a0a0a;
    background: linear-gradient(180deg, #fad346 0%, #ebbd44 45%, #c7973c 100%);
}
.lang-switch button:focus-visible { outline: 2px solid #ebbd44; outline-offset: 2px; }

/* ---------- Právní patička ---------- */
.legal-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px 10px;
    font-size: 13px;
    color: #8d8a85;
}
.legal-links a, .legal-links button {
    color: inherit; background: none; border: 0; padding: 0;
    font: inherit; cursor: pointer;
    transition: color .3s;
}
.legal-links a:hover, .legal-links button:hover { color: #ebbd44; }
.legal-links .sep { opacity: .5; }
.credits {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px 18px;
    font-size: 12px;
    color: #6f6b65;
}
.credits strong { color: #a29d94; font-weight: 500; }

/* ---------- Cookie lišta ---------- */
.cc-banner {
    position: fixed;
    left: max(16px, env(safe-area-inset-left, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 200;
    max-width: 980px;
    margin: 0 auto;
    display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap;
    padding: 20px 24px;
    background: rgba(14, 14, 14, .96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(235, 189, 68, .35);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    color: #f2efe9;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    animation: ccIn .5s cubic-bezier(.2, .7, .2, 1);
}
.cc-banner__text { flex: 1 1 380px; min-width: 0; }
.cc-banner__text strong { display: block; font-weight: 600; margin-bottom: 4px; }
.cc-banner__text p { font-size: 14px; line-height: 1.55; color: #cfcac2; }
.cc-banner__text a, .cc-more { color: #ebbd44; }
.cc-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes ccIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.cc-btn {
    padding: 12px 18px;
    border-radius: 100px;
    font: 600 12px 'Inter', system-ui, sans-serif;
    letter-spacing: .12em; text-transform: uppercase;
    cursor: pointer;
    transition: filter .3s, border-color .3s, color .3s;
}
.cc-btn--gold {
    border: 0;
    color: #0a0a0a;
    background: linear-gradient(180deg, #fad346 0%, #ebbd44 45%, #c7973c 100%);
}
.cc-btn--gold:hover { filter: brightness(1.08); }
.cc-btn--ghost {
    border: 1px solid rgba(242, 239, 233, .2);
    background: transparent;
    color: #f2efe9;
}
.cc-btn--ghost:hover { border-color: #ebbd44; color: #ebbd44; }
.cc-btn:focus-visible, .cc-modal__close:focus-visible { outline: 2px solid #ebbd44; outline-offset: 2px; }

/* ---------- Nastavení cookies ---------- */
.cc-modal {
    position: fixed; inset: 0; z-index: 210;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(5, 5, 5, .8);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    color: #f2efe9;
}
.cc-modal.is-open { display: flex; }
.cc-modal__panel {
    position: relative;
    width: 100%; max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 32px 28px 26px;
    background: #101010;
    border: 1px solid rgba(235, 189, 68, .3);
    border-radius: 18px;
}
.cc-modal h2 {
    font-family: 'Anton', Impact, sans-serif;
    font-weight: 400;
    font-size: 30px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.cc-modal__close {
    position: absolute; top: 14px; right: 16px;
    width: 40px; height: 40px;
    border: 0; background: none; color: #a29d94;
    font-size: 28px; cursor: pointer;
}
.cc-row {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
    padding: 16px 0;
    border-top: 1px solid rgba(242, 239, 233, .12);
}
.cc-row strong { display: block; font-weight: 600; margin-bottom: 4px; }
.cc-row p { font-size: 14px; line-height: 1.55; color: #a29d94; }
.cc-always { flex: none; font-size: 12px; color: #ebbd44; white-space: nowrap; padding-top: 2px; }
.cc-switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch span {
    position: absolute; inset: 0;
    border-radius: 100px;
    background: #2a2a2a;
    transition: background .3s;
}
.cc-switch span::after {
    content: '';
    position: absolute; top: 4px; left: 4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #f2efe9;
    transition: transform .3s;
}
.cc-switch input:checked + span { background: #ebbd44; }
.cc-switch input:checked + span::after { transform: translateX(20px); background: #0a0a0a; }
.cc-switch input:focus-visible + span { outline: 2px solid #ebbd44; outline-offset: 2px; }
.cc-modal__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cc-more { display: inline-block; margin-top: 16px; font-size: 13px; }

@media (max-width: 600px) {
    .cc-banner { padding: 18px; }
    .cc-banner__actions { width: 100%; }
    .cc-banner__actions .cc-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-banner { animation: none; }
}
