/* Voxineer website: Bootstrap dark theme in the game's palette (VoxelGame docs/art: graphite, steel grey,
   copper orange = heat, electric azure = energy, bone white = text). Images live in /img with the designer's file
   names, so replacing a file is enough to change it. */
:root,
[data-bs-theme="dark"] {
    --vx-graphite: #0D1117;
    --vx-panel: #161B22;
    --vx-steel: #6B7280;
    --vx-orange: #F97316;
    --vx-orange-dark: #EA580C;
    --vx-azure: #00E5FF;
    --vx-bone: #E5E7EB;

    --bs-body-bg: var(--vx-graphite);
    --bs-body-color: var(--vx-bone);
    --bs-secondary-color: #9CA3AF;
    --bs-border-color: #2A313C;
    --bs-link-color: #7DD3FC;
    --bs-link-color-rgb: 125, 211, 252;
    --bs-link-hover-color: var(--vx-azure);
    --bs-link-hover-color-rgb: 0, 229, 255;
    --bs-card-bg: var(--vx-panel);
    --bs-code-color: #FDBA74;
}

body {
    background: var(--vx-graphite);
}

/* Menu */
.site-nav {
    background: rgba(13, 17, 23, .92);
    border-bottom: 1px solid var(--bs-border-color);
    backdrop-filter: blur(6px);
}
.site-nav-logo {
    height: 1.4rem;
    width: auto;
    display: block;
}
.site-nav .nav-link {
    color: var(--vx-bone);
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--vx-orange);
}
.site-lang a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}
.site-lang a:hover {
    color: var(--vx-orange);
}

/* Buttons: the main one is copper orange (heat), as in the game's UI. */
.btn-vx {
    --bs-btn-color: #111;
    --bs-btn-bg: var(--vx-orange);
    --bs-btn-border-color: var(--vx-orange);
    --bs-btn-hover-color: #111;
    --bs-btn-hover-bg: var(--vx-orange-dark);
    --bs-btn-hover-border-color: var(--vx-orange-dark);
    --bs-btn-active-color: #111;
    --bs-btn-active-bg: var(--vx-orange-dark);
    --bs-btn-active-border-color: var(--vx-orange-dark);
    font-weight: 600;
}
.btn-vx-outline {
    --bs-btn-color: var(--vx-bone);
    --bs-btn-border-color: var(--vx-steel);
    --bs-btn-hover-color: var(--vx-graphite);
    --bs-btn-hover-bg: var(--vx-bone);
    --bs-btn-hover-border-color: var(--vx-bone);
    --bs-btn-active-color: var(--vx-graphite);
    --bs-btn-active-bg: var(--vx-bone);
}

/* Hero: the designer's wide image with a darkened strip on the left for the logo and text; on phones the tall
   crop with room at the top. A gradient keeps the text readable whatever the image. */
.hero {
    position: relative;
    min-height: min(78vh, 760px);
    display: flex;
    align-items: center;
    background: var(--vx-graphite) url("/img/obrazky/hlavni-siroky.jpg") right center / cover no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 17, 23, .88) 0%, rgba(13, 17, 23, .55) 45%, rgba(13, 17, 23, 0) 75%),
                linear-gradient(0deg, var(--vx-graphite) 0%, rgba(13, 17, 23, 0) 22%);
}
.hero > .container {
    position: relative;
}
.hero-logo {
    width: min(520px, 100%);
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .6));
}
.hero-sentence {
    max-width: 34rem;
    font-size: 1.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}
.hero-build {
    color: #C9CDD3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}
@media (max-width: 767.98px) {
    .hero {
        min-height: 92vh;
        align-items: flex-start;
        padding-top: 2rem;
        background-image: url("/img/obrazky/hlavni-telefon.jpg");
        background-position: center bottom;
    }
    .hero::before {
        background: linear-gradient(180deg, rgba(13, 17, 23, .9) 0%, rgba(13, 17, 23, .6) 45%, rgba(13, 17, 23, 0) 70%),
                    linear-gradient(0deg, var(--vx-graphite) 0%, rgba(13, 17, 23, 0) 15%);
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}
.section + .section {
    border-top: 1px solid var(--bs-border-color);
}
.section-heading {
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.section-heading::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    margin-top: .6rem;
    background: var(--vx-orange);
}
.lead-text {
    max-width: 52rem;
    font-size: 1.15rem;
}
.card-vx {
    background: var(--vx-panel);
    border: 1px solid var(--bs-border-color);
    border-top: 3px solid var(--vx-orange);
}

/* Era ladder */
.eras {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
@media (min-width: 768px) {
    .eras {
        grid-template-columns: repeat(4, 1fr);
    }
}
.era {
    background: var(--vx-panel);
    border: 1px solid var(--bs-border-color);
    border-left: 4px solid var(--vx-steel);
    border-radius: .375rem;
    padding: .75rem 1rem;
}
.era-number {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--vx-steel);
}
.era-name {
    font-weight: 600;
    margin: .25rem 0 .4rem;
}
.era-state {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bs-secondary-color);
}
.era-ingame {
    border-left-color: var(--vx-azure);
}
.era-ingame .era-number,
.era-ingame .era-state {
    color: var(--vx-azure);
}
.era-inprogress {
    border-left-color: var(--vx-orange);
}
.era-inprogress .era-number,
.era-inprogress .era-state {
    color: var(--vx-orange);
}
.era-planned {
    opacity: .7;
}

/* Ticket counts */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

/* Changelog */
.changelog-raw {
    white-space: pre-wrap;
    font-family: var(--bs-font-monospace);
    font-size: .875rem;
}

/* Page heading of the inner pages */
.page-head {
    padding: 3rem 0 1rem;
}

/* Controls table on how-to-play */
kbd {
    background: #2A313C;
    color: var(--vx-bone);
    border: 1px solid #3B4452;
    border-bottom-width: 2px;
}

.site-footer {
    border-top: 1px solid var(--bs-border-color);
}
