/* ==============================
   RESET
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==============================
   ROOT + BODY
   ============================== */
html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;

    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: #f5f7fa;

    background:
        radial-gradient(circle at top, #1e2a38 0%, #0b0f14 60%),
        linear-gradient(135deg, #0b0f14, #1a1f2b);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ==============================
   HLAVNÝ OBSAH
   ============================== */
.container {
    width: 100%;
    max-width: 1100px;
    padding: 6rem 1.5rem 3rem;
}

/* ==============================
   CANVAS
   ============================== */
canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.4;
}

/* ==============================
   NADPISY
   ============================== */
h1 {
    display: block;

    font-size: clamp(34px, 5vw, 46px);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;

    background: linear-gradient(135deg, #f60d62, #4ad0e2);
    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 1rem;
    font-weight: 700;
    color: #dce6f2;
}

/* ==============================
   TEXTY
   ============================== */
.text, .stred, .stredob {
    font-size: clamp(18px, 2.4vw, 26px);
    line-height: 1.9;
    color: #e6ecf3;
    margin: 1.4rem auto;
    max-width: 900px;
}

/* ==============================
   ODKAZY (bez podčiarkovania)
   ============================== */
a {
    color: #7cb8ff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* ==============================
   TLAČIDLÁ
   ============================== */
button {
    width: 230px;
    height: 56px;
    border-radius: 16px;
    border: none;
    cursor: pointer;

    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;

    color: #ffffff;
    background: linear-gradient(135deg, #4a90e2, #2f6fd6);

    box-shadow:
        0 10px 30px rgba(74,144,226,0.35);

    transition: all 0.25s ease;
}

button:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 20px 50px rgba(74,144,226,0.6);
}

/* ==============================
   TABUĽKY
   ============================== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 3rem auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

th {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #ffffff;
    font-weight: 700;
}

th, td {
    padding: 16px;
    font-size: clamp(16px, 2.3vw, 22px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    min-width: 10vw;
}

/* ==============================
   NAVBAR
   ============================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    padding: 0 20px;
    z-index: 1000;

    background: none;
    backdrop-filter: none;
}


/* ==============================
   3 BODKY – HRANATÉ TLAČIDLO S GLOW
   ============================== */
.menu-btn {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
    font-weight: bold;
    color: #7cb8ff;

    border-radius: 10px;
    background: rgba(20,30,50,0.6);

    cursor: pointer;

    box-shadow:
        0 0 12px rgba(124,184,255,0.6),
        0 0 28px rgba(124,184,255,0.4);

    transition: all 0.25s ease;
}

.menu-btn:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 18px rgba(124,184,255,0.9),
        0 0 45px rgba(124,184,255,0.7);
}

/* ==============================
   POPUP MENU – ČIERNE POZADIE + GLOW OKRAJE + ČIERNE PÍSMO
   ============================== */
.popup {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);

    min-width: 300px;
    border-radius: 20px;
    padding: 12px 0;

    /* čierne pozadie */
    background: #0b0b0b;

    /* glow okolo popupu */
    box-shadow:
        0 0 12px rgba(74,144,255,0.8),
        0 0 24px rgba(124,184,255,0.5),
        0 0 40px rgba(93,169,255,0.3);

    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(6px);
    border: 2px solid rgba(74,144,255,0.4); /* jemný modrý okraj */
}

/* väčší padding medzi položkami */
.popup ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.popup li {
    padding: 14px 32px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

/* hover – jemný podklad + glow okolo */
.popup li:hover {
    background: rgba(74,144,226,0.12);
    box-shadow:
        0 0 12px rgba(124,184,255,0.5),
        0 0 24px rgba(93,169,255,0.3);
}

/* text – ČIERNY + jemný glow */
.popup a {
    font-size: 20px;
    font-weight: 700;

    color: #000000; /* ČIERNE PÍSMO */
    text-shadow:
        0 0 4px rgba(124,184,255,0.3),
        0 0 8px rgba(124,184,255,0.2);

    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    text-align: center;
}

/* hover – text a glow intenzívnejší */
.popup li:hover a {
    text-shadow:
        0 0 8px rgba(124,184,255,0.6),
        0 0 16px rgba(124,184,255,0.4);
    color: #000000;
    transform: scale(1.02);
}

/* animácia vstupu */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}




/* ==============================
   ANIMÁCIE
   ============================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
    button {
        width: 190px;
        height: 50px;
    }

    .container {
        padding-top: 5rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 30px; }
    h2 { font-size: 22px; }
    .text { font-size: 17px; }
}
