@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=Inter:wght@400;500&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    text-align: center;
}

body {
    background: #151c15;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s ease;
}

/* ─── Animované herní pozadí ─── */
.bg-wrap {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    width: 200%; height: 200%;
    top: -50%; left: -50%;
    background-image: linear-gradient(rgb(80 161 53 / 0.6) 1px, transparent 1px), linear-gradient(90deg, rgb(80 161 53 / 0.6) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(1000px) rotateX(60deg) translateY(100px);
    animation: gridMove 7s ease-out forwards;
}

@keyframes gridMove {
    0%   { transform: perspective(1000px) rotateX(0deg) translateY(0); opacity: 0; }
    100% { transform: perspective(1000px) rotateX(60deg) translateY(100px); opacity: 1; }
}

/* ─── BG Logo wrapper ─── */
.bg-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ─── Navbar ─── */
nav {
    width: 100%;
    position: sticky;
    top: 0;
    animation: navSlideDown 0.6s ease-out both;
}

@keyframes navSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap: 0;
    position: relative;
}

.navbar a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 10px 28px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: color 400ms ease;
}

.navbar a:hover {
    color: #50a135;
    text-decoration: none;
}

.navbar a img.logo {
    transition: transform 400ms ease, filter 400ms ease;
}

.navbar a:hover img.logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px #50a13588);
}

/* ─── Language switcher (pod footer) ─── */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    opacity: 0;
    animation: fadeUp 0.7s ease-out 7.9s forwards;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(80, 161, 53, 0.25);
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 11px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-btn:hover {
    border-color: rgba(80, 161, 53, 0.6);
    color: #50a135;
    background: rgba(80, 161, 53, 0.08);
}

.lang-btn.active {
    border-color: #50a135;
    color: #50a135;
    background: rgba(80, 161, 53, 0.12);
}

/* ─── Arrow (visible only at max-height: 900px) ─── */
.arrow {
    display: none;
    justify-content: center;
    align-items: center;
}

.arrow-odkaz {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    transition: color 400ms ease;
}

.arrow-odkaz:hover { color: #50a135; }

@media (max-height: 700px) {
    .arrow {
        display: flex;
    }
}

/* ─── Main – skrytý, pak se odhalí po 7s ─── */
.main {
    backdrop-filter: blur(10px);
    transform: translateY(30px);
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 16px 60px;
}

@keyframes mainReveal {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Hero content ─── */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 60px 48px;
    margin-top: 20px;
    color: white;
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(80, 161, 53, 0.12);
    box-shadow: 0 0 60px rgba(80, 161, 53, 0.05), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ─── Hero nadpis – text animace ─── */
.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #50a135;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow: hidden;
    opacity: 0;
    animation: titleSlideIn 0.8s ease-out 7.1s forwards;
}

@keyframes titleSlideIn {
    from { opacity: 0; clip-path: inset(0 100% 0 0); letter-spacing: 0.2em; }
    to   { opacity: 1; clip-path: inset(0 0% 0 0);   letter-spacing: 0.04em; }
}

/* ─── Hero subtitle – text fade ─── */
.hero-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    line-height: 1.75;
    color: rgba(255,255,255,0.75);
    max-width: 680px;
    opacity: 0;
    animation: fadeUp 0.7s ease-out 7.4s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Logo link ─── */
.logo-link {
    color: #50a135;
    text-decoration: none;
    transition: text-decoration 600ms, color 300ms;
}
.logo-link:hover {
    text-decoration: underline;
    color: #6fcf4a;
}

/* ─── Servery – side-by-side layout ─── */
.servers-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 100%;
    opacity: 0;
    animation: fadeUp 0.7s ease-out 7.7s forwards;
}

/* ─── Aktuální servery (vlevo) ─── */
.aktualni-server {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: rgba(80, 161, 53, 0.06);
    border: 1px solid rgba(80, 161, 53, 0.2);
    border-radius: 14px;
    padding: 24px 28px;
    gap: 10px;
}

.aktualni-server h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #50a135;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.aktualni-server-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(80, 161, 53, 0.08);
    border: 1px solid rgba(80, 161, 53, 0.25);
    border-radius: 8px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 16px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background 350ms ease, border-color 350ms ease, color 350ms ease, transform 200ms ease;
}

.aktualni-server-button:hover {
    background: rgba(80, 161, 53, 0.18);
    border-color: rgba(80, 161, 53, 0.6);
    color: #50a135;
    transform: translateX(4px);
}

/* ─── Coming soon servery (vpravo) ─── */
.comingSoon-server {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 24px 28px;
    gap: 10px;
}

.comingSoon-server h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.comingSoon-server-message {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.07);
    width: 100%;
    position: relative;
    transition: color 300ms ease;
}

.comingSoon-server-message::before {
    text-align: center;
    margin-right: 8px;
    font-size: 0.8rem;
}

.comingSoon-server-message:hover {
    color: rgba(255,255,255,0.5);
}


@media (max-width: 1024px) {
    .hero-content {
        padding: 48px 32px;
        max-width: 100%;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 12px;
    }

    .navbar a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .navbar a img.logo {
        width: 80px !important;
    }

    .hero-content {
        padding: 36px 20px;
        border-radius: 14px;
        gap: 20px;
    }

    /* Na tabletu – side-by-side stále ale menší gap */
    .servers-row {
        gap: 18px;
    }

    .aktualni-server,
    .comingSoon-server {
        padding: 18px 16px;
    }
}

/* Mobil */
@media (max-width: 540px) {
    .navbar a {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .navbar a img.logo {
        width: 64px !important;
    }

    .hero-content {
        padding: 28px 14px;
        border-radius: 12px;
    }

    /* Na mobilu – stack pod sebe */
    .servers-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Na mobilu – aktualni vlevo, comingSoon vpravo se resetuje */
    .aktualni-server {
        align-items: flex-start;
        text-align: left;
    }

    .comingSoon-server {
        align-items: flex-start;
        text-align: left;
    }

    .comingSoon-server h1 {
        width: 100%;
        text-align: left;
    }

    .comingSoon-server-message {
        text-align: left;
    }

    .aktualni-server-button {
        font-size: 0.9rem;
        padding: 9px 12px;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }
}

@media (max-width: 360px) {
    .navbar a:not(:has(img)) {
        display: none;
    }

    .hero-content {
        padding: 22px 10px;
    }
}
.footer-bottom,.footer span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    top: 0; left: 0; bottom: 0; right: 0;
    flex-direction: column;
    text-decoration: none;
}
.footer-bottom {
    display: flex;
    color: white;
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px 24px;
    border-radius: 15px;
    border: 1px solid rgba(80, 161, 53, 0.06);
    margin-top: 20px;
}
.footer-bottom a {
    text-decoration: none;
    color: white;
    transition: 1s all ease;
}
.footer-bottom a:hover {
    color: #50a135;
    text-decoration: none;
    transition: 1s all ease;
}
.copy-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #50a135;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 24px rgba(80,161,53,0.45), 0 0 0 1px rgba(80,161,53,0.3);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}