@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap');

:root {
    --brand-bg: rgb(200, 16, 46);
    --text: #f5f5f5;
    --accent: crimson;
    --active: black;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Oxygen", sans-serif;
}

/* Header bar */
header {
    background-color: var(--brand-bg);
    padding: 10px;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.active {
    color: var(--active);
}

/* Inner container */
.header-content {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 75px;
    height: 75px;
}

/* Nav */
nav {
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

/* Buttons in nav */
.nav-links li {
    display: flex;
}

.nav-links button {
    background: none;
    border: none;
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    transition: color .2s ease, background-color .2s ease, transform .05s ease;
    user-select: none;
}

.nav-links button:hover,
.nav-links button:focus-visible {
    color: var(--active);
    outline: none;
}

.nav-links button:active {
    transform: translateY(1px);
}

.nav-links img {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.bug {
    filter: brightness(0) invert(1);
}

/* Active state helper */
.nav-links button.is-active {
    color: var(--accent);
}

/* ---------- HAMBURGER ---------- */
.hamburger {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--brand-bg);
    border-radius: 6px;
    transition: 0.3s ease-in-out;
}

/* tři proužky */
.hamburger span {
    position: absolute;
    left: 50%;
    width: 26px;
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: 0.3s ease-in-out;
}

/* výchozí rozestupy */
.hamburger span:nth-child(1) {
    top: 12px;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.hamburger span:nth-child(3) {
    bottom: 12px;
}

/* otevřeno = X */
.hamburger.open span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- RESPONSIVE MENU ---------- */
@media (max-width: 1000px) {
    .hamburger {
        display: flex;
        z-index: 1100;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);

        flex-direction: column;
        align-items: center;       /* <<< zarovnání doprostřed */
        background-color: var(--brand-bg);
        text-align: center;
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);

        transform: translateX(-100%);
        transition: transform .4s ease;
        z-index: 1090;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        max-width: 320px;          /* aby nebyly přes celou obrazovku */
        padding: 6px 0;
        margin: 0 auto;
    }

    .nav-links button {
        width: 100%;
        justify-content: center;
        font-size: 18px;
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .nav-links {
        background-color: var(--brand-bg);
    }
}
