:root {
    --primary-accent: #ff9900;
    --secondary-accent: #ef9326;
    --tercial-accent: #ffcc66;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0d0d0d;
    font-family: 'Montserrat', sans-serif;
    color: #dcdcdc;
    text-align: center;
}
header {
    margin-top: 30px;
    padding: 0 20px;
}
header img {
    width: 250px;
    margin-bottom: 20px;
}
h1 {
    font-family: 'Montserrat', heavy;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--secondary-accent);
}
p {
    margin: 5px 0 15px 0;
    font-size: 1rem;
}
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
.service {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    width: 300px;
    max-width: 90%;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.service:hover {
    transform: translateY(-5px);
    box-shadow: 0px 0px 15px rgba(255,255,255,0.1);
}
.service img {
    width: 40px;
    height: 40px;
    vertical-align: middle;
}
.service-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 10px 0;
}
a {
    color: var(--secondary-accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
/* unvisited link */
footer {
    margin-top: 30px;
    padding: 10px;
    font-size: 0.9rem;
    color: #666;
}
/* Optimalizace pro mobily */
@media (max-width: 600px) {
    .services {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 10px;
        }
    .service {
        width: 100%;
        padding: 15px;
        }
    header img {
        width: 200px;
        }
    h1 {
        font-size: 2rem;
        }
    p {
        font-size: 0.95rem;
        }
}

.content-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
}

.content-box h2 {
    text-align: center;
    color: var(--secondary-accent);
    margin-bottom: 20px;
}

.content-box ol {
    margin: 0;
    padding-left: 20px;
}

.content-box li {
    margin: 15px 0;
    font-size: 1.05rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 30px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .content-box {
        padding: 15px;
    }
    .content-box li {
        font-size: 1rem;
    }
}

/* === NasHub ID Page CSS === */

/* Kontejner celé sekce */
.nashub-id {
    display: flex;
    flex-direction: column;
    align-items: center; /* centrování obsahu včetně tabulky */
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: #1e1e1e;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    color: #e5e5e5;
    text-align: center;
}

/* Nadpisy sekce */
.nashub-id h2 {
    color: var(--secondary-accent);
    margin-bottom: 20px;
}

/* Odstavce */
.nashub-id p {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.05rem;
    max-width: 800px;
}

/* === NasHub ID Page CSS === */

.nashub-id {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: #1e1e1e;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    color: #e5e5e5;
    text-align: center;
    position: relative; /* pro absolutní tooltipy */
}

.nashub-id h2 {
    color: var(--secondary-accent);
    margin-bottom: 20px;
}

.nashub-id p {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.05rem;
    max-width: 800px;
}

.nashub-id table {
    width: auto;
    margin: 20px 0;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(145deg, #202020, #1a1a1a);
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.nashub-id table:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0,0,0,0.6);
}

.nashub-id th,
.nashub-id td {
    padding: 12px 18px;
    text-align: left;
    vertical-align: middle;
}

.nashub-id th {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nashub-id tr:nth-child(even) td {
    background: rgba(255,255,255,0.03);
}

.nashub-id tr:hover td {
    background: rgba(255,255,255,0.05);
}

/* Stavové buňky */
.nashub-id td.yes,
.nashub-id td.no,
.nashub-id td.warn {
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    cursor: default;
}

/* Zelené Ano */
.nashub-id td.yes {
    color: #00ff99;
}
.nashub-id td.yes::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    background: #00ff99;
    box-shadow: 0 0 6px #00ff99aa;
}

/* Červené Ne */
.nashub-id td.no {
    color: #ff6666;
}
.nashub-id td.no::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    background: #ff6666;
    box-shadow: 0 0 6px #ff6666aa;
}

/* Oranžové varování / AMP */
.nashub-id td.warn {
    color: var(--primary-accent);
}
.nashub-id td.warn::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    background: var(--primary-accent);
    box-shadow: 0 0 6px var(--primary-accent);
}

/* Tooltipy */
.nashub-id td.no[data-tooltip]:hover::after,
.nashub-id td.warn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.85rem;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 1;
    pointer-events: none;
}

.nashub-id td.no[data-tooltip]::after,
.nashub-id td.warn[data-tooltip]::after {
    content: '';
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nashub-id td.no[data-tooltip]:hover::after,
.nashub-id td.warn[data-tooltip]:hover::after {
    opacity: 1;
}

/* První sloupec názvy služeb */
.nashub-id td:first-child {
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

/* Responzivita pro mobily */
@media (max-width: 600px) {
    .nashub-id {
        padding: 25px;
    }
    .nashub-id table {
        width: 100%;
    }
    .nashub-id th,
    .nashub-id td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

.image-container img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: fill;
}
/* === Fix code block overflow === */
code, pre {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: #111;
    color: var(--tercial-accent);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
}
