/* ============================================================
   components.css — karty, tlačítka, tiles, server cards, graf, stats…
   ============================================================ */

/* HOMEPAGE — Hero */
.hero-subtitle { color: var(--cyan); font-family: 'Teko', sans-serif; font-size: 1.8rem; letter-spacing: 8px; font-weight: 400; margin-bottom: 5px; text-shadow: 0 0 15px var(--cyan); }


/* ── index.php fallback — nahrazuje inline style="" (CSP fix) ── */
.index-fallback {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    z-index: 1;
}
.index-title   { text-align: center; }
.index-content { max-width: 900px; width: 100%; margin: 30px auto; }
.index-back    { margin-top: 40px; }

/* Výpis výsledků hledání / archivu v index.php — víc položek pod sebou
   (ne jeden velký .article-title jako u samotného článku, to by bylo
   na seznam zbytečně těžké). */
.index-result {
    padding: 22px 0;
    border-bottom: 1px solid var(--border-glass);
}
.index-result:first-child { padding-top: 0; }
.index-result:last-child  { border-bottom: none; }
.index-result-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.2;
}
.index-result-title a { color: #fff; text-decoration: none; transition: 0.25s; }
.index-result-title a:hover { color: var(--cyan); }
.index-result-excerpt { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

@media (max-width: 600px) {
    .index-result-title { font-size: 1.6rem; }
}

/* Front page: nahrazuje inline style="" z front-page.php */
.front-hero-main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; padding: 100px 0; z-index: 1; }

.hero-title {
    font-family: 'Teko', sans-serif;
    font-size: 10rem;
    font-weight: 700;
    line-height: 0.9;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    letter-spacing: -2px;
}

.btn-browse { font-family: 'Teko', sans-serif; font-size: 2rem; letter-spacing: 5px; text-transform: uppercase; color: var(--cyan); text-decoration: none; border: 1px solid var(--cyan); padding: 15px 50px; transition: 0.3s ease; position: relative; clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); }
.btn-browse:hover { background: var(--cyan); color: #000; box-shadow: 0 0 30px var(--cyan-dim); }

.chevron-decor {
    position: absolute;
    font-family: 'Teko', sans-serif;
    font-size: 20rem;
    color: rgba(0, 242, 255, 0.07);
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
    line-height: 1;
    pointer-events: none;
    animation: chevron-glitch 5s infinite;
}
.chevron-left  { left: 5%; animation-delay: 0s; }
.chevron-right { right: 5%; animation-delay: 2.5s; }

@media (prefers-reduced-motion: reduce) {
    .chevron-decor { animation: none; }
}

@keyframes chevron-glitch {
    /* ── Klidný stav ── */
    0%, 70%, 100% {
        color: rgba(0, 242, 255, 0.07);
        text-shadow: none;
        transform: translateY(-50%) skewX(0deg) translateX(0);
        opacity: 1;
    }

    /* ══ GLITCH 1 — hlavní burst ══ */
    71% {
        color: rgba(0, 242, 255, 0.7);
        text-shadow: -10px 0 #ff00ff, 10px 0 #00f2ff, 0 0 30px #00f2ff;
        transform: translateY(-50%) skewX(-12deg) translateX(-8px);
        opacity: .9;
    }
    72% {
        color: rgba(255, 0, 255, 0.5);
        text-shadow: 12px 0 #00f2ff, -12px 0 #ff0055, 0 0 20px #ff00ff;
        transform: translateY(-50%) skewX(10deg) translateX(8px);
        opacity: .75;
    }
    72.5% {
        opacity: 0; /* znak zmizí */
        transform: translateY(-50%) skewX(-3deg);
    }
    73% {
        color: rgba(0, 242, 255, 0.9);
        text-shadow: -16px 0 #ff00ff, 16px 0 #00f2ff;
        transform: translateY(-50%) skewX(-18deg) translateX(-10px);
        opacity: 1;
    }
    73.5% {
        color: rgba(255, 255, 255, 0.6);
        text-shadow: 8px 0 #ff0055, -8px 0 #00f2ff;
        transform: translateY(-50%) skewX(6deg) translateX(5px);
        opacity: .85;
    }
    74% {
        color: rgba(0, 242, 255, 0.07);
        text-shadow: none;
        transform: translateY(-50%);
        opacity: 1;
    }

    /* ── Aftershock ── */
    76% {
        color: rgba(0, 242, 255, 0.35);
        text-shadow: 5px 0 #ff00ff, -5px 0 #00f2ff;
        transform: translateY(-50%) translateX(-4px) scaleX(1.04);
        opacity: .8;
    }
    76.5% {
        opacity: 0;
    }
    77% {
        color: rgba(0, 242, 255, 0.07);
        text-shadow: none;
        transform: translateY(-50%);
        opacity: 1;
    }

    /* ══ GLITCH 2 — kratší druhý burst ══ */
    88% {
        color: rgba(0, 242, 255, 0.55);
        text-shadow: -8px 0 #ff00ff, 8px 0 #00f2ff;
        transform: translateY(-50%) skewX(-8deg) translateX(-6px);
        opacity: .9;
    }
    88.5% {
        opacity: 0;
    }
    89% {
        color: rgba(255, 0, 255, 0.4);
        text-shadow: 10px 0 #00f2ff;
        transform: translateY(-50%) skewX(7deg) translateX(5px);
        opacity: .7;
    }
    89.5% {
        color: rgba(0, 242, 255, 0.07);
        text-shadow: none;
        transform: translateY(-50%);
        opacity: 1;
    }
}

/* NEWS — Novinky */
main.news-main {
    flex: 1;
    padding: 40px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.main-wrapper {
    --news-rail: 210px;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--news-rail) 1fr 1fr 1fr;
    grid-template-rows: 400px 400px;
    grid-auto-rows: 400px;
    gap: 20px;
    /* Stejný prázdný pruh vpravo jako panel vlevo → prostřední karta je na středu stránky */
    padding-right: calc(var(--news-rail) + 20px);
}

.tile {
    background: var(--glass);
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tile:hover {
    border-color: var(--cyan-dim);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(0, 242, 255, 0.05);
    z-index: 5;
}

.hero-main {
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(0, 40, 60, 0.5) 0%, rgba(5, 6, 8, 0.72) 100%);
    text-align: center;
    padding: 50px 30px 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    cursor: default;
}

.hero-main:hover {
    transform: none;
    border-color: var(--border-glass);
    box-shadow: none;
}

.hero-main::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }

.congrats { color: var(--cyan); font-family: 'Teko', sans-serif; font-size: 1.1rem; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 5px; text-shadow: 0 0 10px var(--cyan-dim); }
.streamer-name { font-family: 'Teko', sans-serif; font-size: 6.2rem; line-height: 0.85; text-transform: uppercase; margin: 15px 0; color: #fff; text-shadow: 0 0 20px rgba(0, 242, 255, 0.3); }
.milestone { font-family: 'Teko', sans-serif; font-size: 1.4rem; letter-spacing: 2px; color: #fff; text-transform: uppercase; background: rgba(0, 242, 255, 0.1); padding: 4px 18px; border-left: 3px solid var(--cyan); display: inline-block; }
.hero-panel-spacer { width: 100%; max-width: 380px; min-height: 220px; margin-top: auto; }
.info-plus { margin-top: 30px; display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); font-family: 'Teko', sans-serif; font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; transition: 0.3s; background: var(--glass); padding: 10px 25px; border: 1px solid var(--border-glass); border-radius: 4px; text-decoration: none; }
.info-plus:hover { color: var(--cyan); border-color: var(--cyan-dim); }
.info-plus i { font-size: 1.1rem; color: var(--cyan); }

/* Novinky — úzký HUD panel */
.news-hero {
    padding: 26px 18px 22px;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 242, 255, 0.08) 0%, rgba(5, 6, 8, 0.45) 38%, rgba(5, 6, 8, 0.72) 100%);
}
.news-hero::before {
    width: 3px;
    height: 100%;
    top: 0;
    left: 0;
}
.news-hero-frame {
    position: absolute;
    inset: 10px;
    pointer-events: none;
    opacity: 0.55;
    z-index: 3;
    background:
        linear-gradient(var(--cyan), var(--cyan)) top left / 16px 1px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) top left / 1px 16px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) top right / 16px 1px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) top right / 1px 16px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) bottom left / 16px 1px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) bottom left / 1px 16px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) bottom right / 16px 1px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) bottom right / 1px 16px no-repeat;
}
.news-hero-fall {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.news-hero-chip {
    position: absolute;
    left: 0;
    top: 0;
    max-width: calc(100% - 10px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Teko', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    line-height: 1.15;
    text-transform: uppercase;
    color: rgba(0, 242, 255, 0.28);
    opacity: 0;
    animation: news-chip-in 0.6s ease forwards;
    will-change: transform;
}
.news-hero-chip.is-settled {
    color: rgba(0, 242, 255, 0.22);
}
@keyframes news-chip-in {
    to { opacity: var(--chip-a, 1); }
}
@media (prefers-reduced-motion: reduce) {
    .news-hero-chip { animation: none; opacity: 1; }
}
.news-hero .congrats,
.news-hero .streamer-name,
.news-hero .milestone {
    position: relative;
    z-index: 2;
}
.news-hero .congrats {
    align-self: center;
    font-size: 0.82rem;
    letter-spacing: 2.5px;
    margin: 0;
    padding: 5px 8px;
    border: 1px solid rgba(0, 242, 255, 0.28);
    background: rgba(5, 6, 8, 0.55);
}
.news-hero .streamer-name {
    display: flex;
    flex-direction: column;
    font-family: 'Teko', sans-serif;
    font-size: clamp(2.4rem, 3vw, 3.15rem);
    line-height: 0.85;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 12px 0;
    overflow: visible;
    text-shadow: none;
}
.news-hero .streamer-name .glitch-pass {
    display: inline-block;
    align-self: flex-start;
}
.news-hero .milestone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--cyan);
}
.news-hero-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3131;
    box-shadow: 0 0 10px #ff3131;
    animation: news-live-pulse 1.2s ease-in-out infinite;
}
@keyframes news-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px #ff3131; }
    50% { opacity: 0.2; transform: scale(0.65); box-shadow: 0 0 2px #ff3131; }
}
@media (prefers-reduced-motion: reduce) {
    .news-hero-live { animation: none; }
}

.tile-text { padding: 35px; }
/* Prázdný stav dlaždic — nahrazuje inline style="" z home.php */
.tile--empty { grid-column: span 2; padding: 4rem; text-align: center; }
.tile--empty-msg { color: var(--text-muted); padding: 40px; }
.text--muted { color: var(--text-muted); padding: 0; margin: 0; }
a.tile-text { color: var(--text); text-decoration: none; display: block; }
.cat-label { display: inline-block; font-family: 'Teko', sans-serif; font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(0, 242, 255, 0.2); background: rgba(0, 242, 255, 0.05); padding: 2px 12px; margin-bottom: 15px; }
.tile-text h2 { font-family: 'Teko', sans-serif; font-size: 2.2rem; line-height: 1.1; text-transform: uppercase; margin-bottom: 10px; color: #fff; transition: 0.3s; }
.tile:hover h2 { color: var(--cyan); }
.tile-text .date { display: block; font-size: 0.75rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; font-weight: 700; }
.tile-text p { color: #aaa; font-size: 0.95rem; line-height: 1.6; }
.tile-text::after { content: '→'; position: absolute; bottom: 20px; right: 25px; font-family: 'Teko', sans-serif; font-size: 1.5rem; color: var(--text-muted); transition: 0.3s; }
.tile-text:hover::after { color: var(--cyan); transform: translateX(3px); }


a.news-card {
    text-decoration: none;
    color: #fff;
    background-color: transparent;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    align-items: stretch;
    justify-content: flex-end;
    border: 0 !important;
    outline: 1px solid rgba(120, 135, 155, 0.35);
    outline-offset: -1px;
    box-shadow: none !important;
}

a.news-card:hover {
    /* Keep clean hover without inset side artifacts */
    border: 0 !important;
    outline: 1px solid rgba(0, 242, 255, 0.6);
    outline-offset: -1px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45) !important;
    transform: translateY(-5px);
}

.news-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 6, 8, 0.02) 0%, rgba(5, 6, 8, 0.14) 55%, rgba(5, 6, 8, 0.82) 100%);
    transition: background 0.3s ease;
    pointer-events: none;
}

.news-card-content {
    position: relative;
    z-index: 2;
    padding: 28px;
    padding-bottom: 64px;
}

.news-card .cat-label {
    position: absolute;
    right: 18px;
    bottom: 16px;
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
}

/* ── Odznak s ikonkou v pravém horním rohu — vlastní pole "news_icon" / "news_color" ── */
.news-badge-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 6, 8, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    font-size: 1rem;
    color: var(--cyan);
    backdrop-filter: blur(2px);
    transition: transform 0.3s ease;
}
.news-card:hover .news-badge-icon { transform: scale(1.1); }

.news-card h2 {
    font-family: 'Teko', sans-serif;
    font-size: clamp(1.15rem, 1.6vw, 1.3rem);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0;
    color: #fff;
    transition: color 0.3s ease;
    width: 100%;
    text-align: center;
    /* Menší max. velikost písma než dřív (1.55rem → 1.3rem), aby se i delší
       titulky vešly na jeden řádek celé, bez ořezávání a bez teček. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card .date {
    display: block;
    position: absolute;
    left: 18px;
    bottom: 16px;
    font-size: 0.75rem;
    color: #bfc3c8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0;
    font-weight: 700;
}

.news-card p {
    color: #b5b9c0;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.news-card:hover h2 { color: var(--cyan); }

.news-card:hover .news-card-overlay {
    background: linear-gradient(180deg, rgba(5, 6, 8, 0) 0%, rgba(5, 6, 8, 0.1) 55%, rgba(5, 6, 8, 0.76) 100%);
}

.pagination-container { margin-top: 60px; display: flex; justify-content: center; align-items: center; gap: 15px; padding: 10px 30px; background: var(--glass); border: 1px solid var(--border-glass); border-radius: 4px; }
/* WP pagination links */
.pagination-container a { text-decoration: none; }
.pagination-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pagination-container li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pagination-container .page-numbers { font-family: 'Teko', sans-serif; font-size: 1.3rem; color: var(--text-muted); padding: 5px 12px; border: 1px solid transparent; transition: 0.3s; }
.pagination-container .page-numbers.current { color: var(--cyan); border-color: var(--cyan); }
.pagination-container .page-numbers:hover { color: var(--text); }

/* SERVER.HTML */
main.server-main { flex: 1; padding: 80px 20px 60px; z-index: 1; position: relative; text-align: center; }
.header-top { color: var(--cyan); font-family: 'Teko', sans-serif; font-size: 1rem; letter-spacing: 5px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.header-main {
    font-family: 'Teko', sans-serif;
    font-size: 7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 10px 0 40px 0;
    line-height: 0.85;
    color: #fff;
}
.header-main.glitch-title,
.header-main.glitch-pass {
    background: none;
    -webkit-text-fill-color: unset;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.server-card {
    width: 100%;
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    position: relative;
    transition: 0.4s ease;
    padding: 30px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
    --srv-color: var(--cyan);
}
.card-image { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.5s ease, filter 0.5s ease; filter: brightness(0.4) saturate(0.6); z-index: 0; }
.server-card:hover .card-image { transform: scale(1.05); filter: brightness(1) saturate(1); }
.server-card::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; background: linear-gradient(to top, rgba(5,6,8,0.9), transparent); z-index: 1; }
.server-label { font-family: 'Teko', sans-serif; font-size: 0.85rem; letter-spacing: 4px; color: var(--text-muted); text-transform: uppercase; position: relative; z-index: 2; transition: 0.3s; }
.server-name { font-family: 'Teko', sans-serif; font-size: 3.5rem; font-weight: 700; text-transform: uppercase; line-height: 1; position: relative; z-index: 2; }
.server-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--srv-color); z-index: 3; }

.server-eco      { --srv-color: var(--color-eco); }
.server-dayz     { --srv-color: var(--color-dayz); }
.server-arma     { --srv-color: var(--color-arma); }
.server-palworld { --srv-color: var(--color-palworld); }

.server-card .server-name { color: var(--srv-color); }
.server-card:hover {
    background: color-mix(in srgb, var(--srv-color) 6%, transparent);
    border-color: color-mix(in srgb, var(--srv-color) 32%, transparent);
}
.server-card:hover .server-label { color: var(--srv-color); }
.server-card:hover .server-name { text-shadow: 0 0 10px color-mix(in srgb, var(--srv-color) 55%, transparent); }

/* Detail serveru — cyan = barva serveru */
.info-main.server-eco,
.info-main.server-dayz,
.info-main.server-arma,
.info-main.server-palworld,
.info-main[style*="--srv-color"] {
    --cyan: var(--srv-color);
    --cyan-dim: color-mix(in srgb, var(--srv-color) 50%, transparent);
}


/* SERVER_INFO.HTML */
main.info-main { flex: 1; display: grid; grid-template-columns: 80px 1fr; gap: 0; z-index: 1; position: relative; min-height: calc(100vh - 200px); }
.side-nav { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 40px 20px; border-right: 1px solid var(--border-glass); }
.nav-dot { width: 50px; height: 50px; background: var(--glass); border: 1px solid var(--border-glass); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; color: var(--text-muted); font-size: 1rem; padding: 0; appearance: none; font-family: inherit; }
.nav-dot.active, .nav-dot:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 15px rgba(0,242,255,0.2); }
.info-container { padding: 60px; overflow: hidden; }
.content-section { display: none; }
.content-section.active { display: block; }
.brand-label { color: var(--cyan); font-family: 'Teko', sans-serif; font-size: 1rem; letter-spacing: 5px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.server-title { font-family: 'Teko', sans-serif; font-size: 7rem; line-height: 0.85; text-transform: uppercase; margin: 10px 0 40px 0; background: linear-gradient(180deg, #fff 0%, #888 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.title-fill {
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 125px;
    margin-bottom: 40px;
    padding: 20px 30px;
    background: var(--glass);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--cyan);
}
.stats-grid .stat-box {
    flex: 0 0 auto;
    min-width: min-content;
}
.stats-grid .stat-box--wide {
    flex: 0 0 auto;
    grid-column: unset;
}
.stat-box .label { display: flex; align-items: center; gap: 6px; font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.4px; margin-bottom: 5px; white-space: nowrap; }
.stat-box .label i { color: var(--cyan); font-size: 0.8rem; }
.stat-box .value { font-family: 'Teko', sans-serif; font-size: 1.45rem; color: #fff; line-height: 1.15; white-space: nowrap; }
.ip-highlight { font-size: 1.4rem !important; color: var(--cyan) !important; }
.description { max-width: 600px; color: var(--text-muted); line-height: 1.8; font-size: 1rem; border-top: 1px solid var(--border-glass); padding-top: 25px; }

/* ── Graf hráčů za 24h (placeholder) ──────────────────────────────────────── */
.player-history {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 30px;
    background: var(--glass);
    border: 1px solid var(--border-glass);
}
.player-history .ph-label {
    font-family: 'Teko', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.player-history .ph-now {
    font-family: 'Teko', sans-serif;
    font-size: 2.6rem;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}
.player-history .ph-now span { font-size: 1.1rem; color: var(--text-muted); }
.ph-sparkline-wrap { position: relative; width: 100%; height: 60px; }
.ph-sparkline { width: 100%; height: 60px; display: block; }
/* Kreslicí animace grafu — čistě CSS (@keyframes), žádný JS.
   Spustí se automaticky, jakmile prohlížeč element vykreslí, takže
   nezávisí na pořadí/blokování/minifikaci skriptů. Odkrývá se celý
   obsah wrapperu (čára i výplň) zleva doprava přes "clip-path". */
.ph-sparkline-reveal {
    animation: ph-sparkline-wipe 1.4s cubic-bezier(0.65, 0, 0.35, 1) both;
}
@keyframes ph-sparkline-wipe {
    /* Vertikální (a bokem) inset je záměrně -200px, ne 0 — clip-path na
       rozdíl od overflow ořezává i pozicované potomky, co z boxu vizuálně
       přesahují (tooltip .ph-hit-tip nad grafem, záře kolem .ph-live-dot).
       "0" by je po doběhnutí animace trvale usekávalo, i když jsou
       opacity:1 a viditelné. Reveal zleva doprava dál řídí jen pravá
       hodnota (100% → -200px). */
    from { clip-path: inset( -200px 100% -200px -200px ); }
    to   { clip-path: inset( -200px -200px -200px -200px ); }
}
.ph-collecting { color: var(--text-muted); font-size: 0.85rem; font-style: italic; }

/* Hodinová mřížka a nulová hranice grafu (viz functions.php →
   inqer_get_player_sparkline_data / inqer_get_player_history_hour_marks).
   vector-effect: non-scaling-stroke — SVG má preserveAspectRatio="none",
   takže bez toho by čárky vycházely různě silné podle poměru stran. */
.ph-hour-grid {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
.ph-hour-grid--major { stroke: rgba(255, 255, 255, 0.14); }
.ph-zero-line {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1;
    stroke-dasharray: 2 3;
    vector-effect: non-scaling-stroke;
}

/* Křivka a výplň grafu — barvy/glow žijí v CSS (ne v inline SVG
   atributech), ať jde ladit na jednom místě a drží se --cyan z theme. */
.ph-sparkline-fill { fill: url(#ph-fill-gradient); }
.ph-sparkline-line {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    /* Jemná neonová záře kolem čáry — drop-shadow funguje i na SVG a
       na rozdíl od SVG <feGaussianBlur> nepotřebuje vlastní <filter> defs. */
    filter: drop-shadow(0 0 3px rgba(0, 242, 255, 0.55));
}

/* Popisky hodin pod grafem — pozicované procentuálně stejným trikem jako
   .ph-hit / .ph-live-dot výš, aby seděly přesně pod svislými čárkami. */
.ph-axis {
    position: relative;
    height: 16px;
    margin-top: 4px;
}
.ph-axis-label {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-family: 'Teko', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}
.ph-axis-label:first-child { transform: translateX(0); }
.ph-axis-label:last-child { transform: translateX(-100%); }

/* Živý bod "teď" na konci křivky grafu hráčů — pulzuje, aby bylo jasné,
   že poslední bod je aktuální stav, ne jen statická historie. */
.ph-live-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    border-radius: 50%;
    background: #00f2ff;
    box-shadow: 0 0 6px rgba(0, 242, 255, 0.85), 0 0 14px rgba(0, 242, 255, 0.35);
    pointer-events: none;
    opacity: 0;
    animation: ph-live-dot-in 0.4s ease forwards;
    animation-delay: 1.3s; /* naskočí až po dokreslení čáry (1.4s) */
}
@keyframes ph-live-dot-in {
    to { opacity: 1; }
}
.ph-live-dot::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(0, 242, 255, 0.55);
    animation: ph-live-pulse 2s ease-out infinite;
}
@keyframes ph-live-pulse {
    0%   { transform: scale(0.4); opacity: 0.8; }
    70%  { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ph-live-dot::before { animation: none; opacity: 0; }
    .ph-live-dot { animation: none; opacity: 1; }
    .ph-sparkline-reveal { animation: none; clip-path: none; }
}

/* Tečky na místech, kde se počet hráčů SKUTEČNĚ změnil (viz functions.php
   → 'changes'). Klidnější "dýchající" záře než u živého bodu — je jich
   za den víc, takže nemají zvonit na poplach, jen jemně naznačit "tady
   se něco stalo". Naskočí až po dokreslení křivky (1.4s), ať se
   neobjeví dřív, než k nim čára doroste. */
.ph-change-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--cyan);
    pointer-events: none;
    opacity: 0;
    animation: ph-change-dot-in 0.4s ease forwards, ph-change-breathe 3s ease-in-out infinite;
    animation-delay: 1.4s, 1.8s;
}
@keyframes ph-change-dot-in {
    to { opacity: 0.85; }
}
@keyframes ph-change-breathe {
    0%, 100% { box-shadow: 0 0 2px rgba(0, 242, 255, 0.5); }
    50%      { box-shadow: 0 0 7px rgba(0, 242, 255, 0.9); }
}
@media (prefers-reduced-motion: reduce) {
    .ph-change-dot { animation: none; opacity: 0.85; box-shadow: 0 0 3px rgba(0, 242, 255, 0.6); }
}

/* Hover nad body grafu hráčů. .ph-hit je neviditelný sloupec přes celou
   výšku grafu — snadný cíl pro myš, i když křivka zrovna leží dole u
   nuly. .ph-hit-marker uvnitř je ale bod BEZ vlastní velikosti (width/
   height:0) posazený přesně na Y souřadnici křivky (top:X% nastavené
   inline v šabloně) — díky tomu tečka i bublina vždycky vyskočí přesně
   z místa, kde čára v tom bodě opravdu je, ne odshora celého grafu. */
.ph-hit {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14px;
    margin-left: -7px;
    cursor: pointer;
}
.ph-hit-marker {
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
}
.ph-hit-marker::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.85);
    opacity: 0;
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.ph-hit:hover .ph-hit-marker::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.ph-hit-tip {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) translateY(4px) scale(0.92);
    transform-origin: bottom center;
    margin-bottom: 10px;
    background: var(--cyan);
    color: #05131a;
    font-family: 'Teko', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 3px 10px;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 242, 255, 0.35), 0 1px 3px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.16s;
    z-index: 5;
}
.ph-hit-tip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    background: var(--cyan);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.ph-hit:hover .ph-hit-tip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}
/* Na dotykových zařízeních není hover — sloupce se schovají, ať
   nepřekáží tapnutím na samotný graf/živou tečku. */
@media (hover: none) {
    .ph-hit { display: none; }
}

@media (max-width: 600px) {
    .player-history { grid-template-columns: 1fr; }
    .player-history .ph-now { font-size: 2rem; }
    /* 8 popisků (po 3 hod.) je na úzkém displeji natěsno vedle sebe —
       necháme jen každý druhý (po 6 hod.), čárky v grafu zůstávají
       všechny, mizí jen text pod nimi. */
    .ph-axis-label:nth-of-type(even) { display: none; }
}

/* Nahrazuje inline style="grid-column:span 2" v single-inqer_server.php */
.stat-box--wide { grid-column: span 2; }

/* Intro odstavec v sekci JOIN — nahrazuje inline style="color:var(--text-muted);margin-bottom:15px" */
.section-join-intro { color: var(--text-muted); margin-bottom: 15px; }

/* Řádky pravidel/kroků — nahrazuje inline style="display:block" */
.line-block { display: block; }
.info-list { list-style: none; margin-top: 20px; }
.info-list li { margin-bottom: 15px; padding-left: 15px; border-left: 2px solid var(--cyan); }
.info-list strong { color: var(--cyan); display: inline; font-family: 'Teko', sans-serif; font-size: 1.2rem; text-transform: uppercase; }
/* ── Copy IP tlačítko (single-inqer_server.php) ──────────────────────────── */
.ip-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    position: relative;
}
.ip-copy-icon {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}
.ip-copy-btn:hover .ip-copy-icon,
.ip-copy-btn:focus-visible .ip-copy-icon { color: var(--cyan); transform: scale(1.15); }
.ip-copy-btn:focus-visible { outline: 1px solid var(--cyan); outline-offset: 4px; }

.ip-copy-tooltip {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) translateY(4px);
    background: var(--cyan);
    color: #05131a;
    font-family: 'Teko', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    margin-bottom: 34px; /* posazeno nad label "IP ADRESA", ne jen nad tlačítko */
}
.ip-copy-btn.copied .ip-copy-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ARTICLE — single.php */
main.article-main {
    flex: 1;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    z-index: 1;
}
.article-wrapper {
    max-width: 1300px;
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--border-glass);
    padding: 50px;
    position: relative;
}
.article-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 40px;
    height: 40px;
    background: var(--cyan);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    opacity: 0.8;
    box-shadow: 0 0 15px var(--cyan);
}
.back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--cyan); text-decoration: none; font-family: 'Teko', sans-serif; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 30px; transition: 0.3s; }
.back-link:hover { transform: translateX(-5px); opacity: 0.8; }
.article-meta { display: flex; gap: 20px; align-items: center; margin-bottom: 15px; flex-wrap: wrap; }
.article-wrapper:has(.iq-lb-wrapper) > .article-meta { display: none; }
.article-date { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.article-title { font-family: 'Teko', sans-serif; font-size: 4rem; line-height: 1; text-transform: uppercase; margin-bottom: 30px; background: linear-gradient(180deg, #fff 0%, #a0a0a0 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.featured-media { position: relative; margin-bottom: 40px; }
.featured-img { width: 100%; height: 400px; object-fit: cover; border: 1px solid var(--border-glass); margin-bottom: 0; filter: brightness(0.8); display: block; }
.article-cat-label {
    position: absolute;
    right: 16px;
    bottom: 16px;
    margin: 0;
    z-index: 2;
}
.article-content { line-height: 1.8; color: #ccc; font-size: 1.1rem; }
.article-content p { margin-bottom: 25px; }
.article-content h2 { font-family: 'Teko', sans-serif; font-size: 2.2rem; color: var(--cyan); text-transform: uppercase; margin: 40px 0 15px 0; border-left: 3px solid var(--cyan); padding-left: 15px; }
.article-content h2.section-heading,
.article-content h2.iq-section-title {
    border-left: none;
    padding-left: 0;
    color: #fff;
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 0.85;
    margin: 10px 0 40px 0;
}
.article-content code { background: rgba(0,242,255,0.08); color: var(--cyan); padding: 2px 8px; font-size: 0.95em; border: 1px solid var(--border-glass); }


/* ============================================================
   KOMENTÁŘE — single.php / comments.php
   Samostatná glass karta pod článkem + formulář odpovědi
   ============================================================ */

.iq-comments {
    max-width: 1300px;
    width: 100%;
    margin: 0;
    padding: 40px 50px 50px;
    background: var(--glass);
    border: 1px solid var(--border-glass);
    position: relative;
    box-sizing: border-box;
}

/* Cyan trojúhelník v rohu — stejný jazyk jako .article-wrapper */
.iq-comments::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 40px;
    height: 40px;
    background: var(--cyan);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    opacity: 0.8;
    box-shadow: 0 0 15px var(--cyan);
    z-index: 1;
}

/* Jemná cyan linka nahoře karty */
.iq-comments::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    opacity: 0.55;
}

.iq-comments-header {
    margin-bottom: 28px;
}

.iq-comments-label {
    display: block;
    font-family: 'Teko', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 6px;
    opacity: 0.85;
}

.iq-comments-title {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    margin: 0;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Seznam ── */
.iq-comment-list {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
}

.iq-comment-list .children {
    list-style: none;
    margin: 16px 0 0;
    padding: 0 0 0 24px;
    border-left: 2px solid rgba(0, 242, 255, 0.15);
}

.iq-comment {
    margin: 0 0 18px;
}

.iq-comment-body {
    background: var(--glass);
    border: 1px solid var(--border-glass);
    border-left: 3px solid var(--cyan);
    border-radius: 4px;
    padding: 18px 20px;
    transition: background 0.2s, border-color 0.2s;
}

.iq-comment-body:hover {
    background: rgba(0, 242, 255, 0.04);
    border-color: rgba(0, 242, 255, 0.25);
}

/* Meta / autor */
.iq-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.iq-comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.iq-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: 1px solid var(--border-glass);
    object-fit: cover;
    flex-shrink: 0;
}

.iq-comment-author-name {
    font-family: 'Teko', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}

.iq-comment-author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.iq-comment-author-name a:hover {
    color: var(--cyan);
}

.iq-comment-meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.iq-comment-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.iq-comment-time a {
    color: inherit;
    text-decoration: none;
}

.iq-comment-time a:hover {
    color: var(--cyan);
}

.iq-comment-edit a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.iq-comment-edit a:hover {
    color: var(--cyan);
}

.iq-comment-awaiting {
    font-size: 0.85rem;
    color: var(--amber);
    margin: 0 0 10px;
    padding: 8px 12px;
    background: var(--amber-glow);
    border: 1px solid var(--amber-dim);
    border-radius: 3px;
}

.iq-comment-content {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
}

.iq-comment-content p {
    margin: 0 0 12px;
}

.iq-comment-content p:last-child {
    margin-bottom: 0;
}

.iq-comment-reply {
    margin-top: 12px;
}

.iq-comment-reply a {
    display: inline-block;
    font-family: 'Teko', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cyan);
    text-decoration: none;
    padding: 4px 0;
    transition: opacity 0.2s, transform 0.2s;
}

.iq-comment-reply a:hover {
    opacity: 0.8;
    transform: translateX(3px);
}

/* Stránkování komentářů */
.iq-comment-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 28px;
    font-family: 'Teko', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.iq-comment-nav a {
    color: var(--cyan);
    text-decoration: none;
}

.iq-comment-nav a:hover {
    opacity: 0.8;
}

.iq-comments-closed {
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
    padding: 16px 0;
}

/* ── Formulář ── */
.iq-comment-reply-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 18px;
    color: #fff;
}

/* Jméno autora v „Odpověď na …“ — cyan místo výchozí browser blue */
.iq-comment-reply-title a,
#reply-title a {
    color: var(--cyan);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.35);
    transition: opacity 0.2s, text-shadow 0.2s;
}

.iq-comment-reply-title a:hover,
#reply-title a:hover {
    opacity: 0.85;
    text-shadow: 0 0 14px rgba(0, 242, 255, 0.55);
}

.iq-cancel-reply a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    margin-left: 10px;
}

.iq-cancel-reply a:hover {
    color: var(--cyan);
}

.iq-comment-notes {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 18px;
}

.iq-comment-notes .required,
.iq-comment-form .required {
    color: var(--cyan);
}

.iq-comment-form p {
    margin: 0 0 16px;
}

.iq-comment-form label {
    display: block;
    font-family: 'Teko', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.iq-comment-form input[type="text"],
.iq-comment-form input[type="email"],
.iq-comment-form input[type="url"],
.iq-comment-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    padding: 12px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.iq-comment-form input[type="text"]:focus,
.iq-comment-form input[type="email"]:focus,
.iq-comment-form input[type="url"]:focus,
.iq-comment-form textarea:focus {
    outline: none;
    border-color: rgba(0, 242, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.15);
}

.iq-comment-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.iq-comment-form input::placeholder,
.iq-comment-form textarea::placeholder {
    color: #5a6068;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--cyan);
    flex-shrink: 0;
}

.comment-form-cookies-consent label {
    display: inline;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    line-height: 1.45;
}

.iq-comment-submit {
    display: inline-block;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.4);
    color: var(--cyan);
    font-family: 'Teko', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.iq-comment-submit:hover,
.iq-comment-submit:focus-visible {
    background: rgba(0, 242, 255, 0.16);
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.25);
    outline: none;
}

/* Logged-in hint */
.iq-comment-form .logged-in-as {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.iq-comment-form .logged-in-as a {
    color: var(--cyan);
    text-decoration: none;
}

.iq-comment-form .logged-in-as a:hover {
    text-decoration: underline;
}

/* ============================================================
   FORMULÁŘ ODPOVĚDI (#respond)
   Po kliknutí na „Odpovědět“ comment-reply.js přesune #respond
   pod konkrétní komentář — tady ho vizuálně oddělíme.
   ============================================================ */

#respond {
    margin-top: 28px;
}

/* Když je formulář přesunutý jako odpověď pod komentář */
.iq-comment #respond,
.iq-comment-list #respond {
    margin: 16px 0 8px;
    padding: 18px 18px 16px;
    background: rgba(0, 242, 255, 0.04);
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-left: 3px solid var(--cyan);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.06);
    animation: iq-reply-in 0.25s ease;
}

@keyframes iq-reply-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iq-comment #respond .iq-comment-reply-title,
.iq-comment-list #respond .iq-comment-reply-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.25);
}

.iq-comment #respond .iq-cancel-reply a,
.iq-comment-list #respond .iq-cancel-reply a {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    font-family: 'Teko', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    border-radius: 3px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.iq-comment #respond .iq-cancel-reply a:hover,
.iq-comment-list #respond .iq-cancel-reply a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.iq-comment #respond .iq-comment-notes,
.iq-comment-list #respond .iq-comment-notes {
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.iq-comment #respond .iq-comment-form input[type="text"],
.iq-comment #respond .iq-comment-form input[type="email"],
.iq-comment #respond .iq-comment-form input[type="url"],
.iq-comment #respond .iq-comment-form textarea,
.iq-comment-list #respond .iq-comment-form input[type="text"],
.iq-comment-list #respond .iq-comment-form input[type="email"],
.iq-comment-list #respond .iq-comment-form input[type="url"],
.iq-comment-list #respond .iq-comment-form textarea {
    background: rgba(0, 0, 0, 0.25);
}

.iq-comment #respond .iq-comment-submit,
.iq-comment-list #respond .iq-comment-submit {
    margin-top: 4px;
}

/* Hlavní formulář (ne odpověď) — oddělený blok pod seznamem */
.iq-comments > #respond {
    margin-top: 8px;
    padding-top: 28px;
    border-top: 1px solid var(--border-glass);
}

/* Responsivita komentářů */
@media (max-width: 768px) {
    .iq-comments {
        padding: 28px 20px 32px;
    }

    .iq-comments-title {
        font-size: 1.7rem;
    }

    .iq-comment-list .children {
        padding-left: 14px;
    }

    .iq-comment-body {
        padding: 14px 14px;
    }

    .iq-comment-avatar {
        width: 40px;
        height: 40px;
    }

    .iq-comment-author-name {
        font-size: 1.1rem;
    }

    .iq-comment-reply-title {
        font-size: 1.45rem;
    }

    .iq-comment-submit {
        width: 100%;
        clip-path: none;
        text-align: center;
    }

    .iq-comment #respond,
    .iq-comment-list #respond {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .iq-comments {
        padding: 22px 16px 28px;
    }

    .iq-comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .iq-comment-list .children {
        padding-left: 10px;
    }

    .iq-comment #respond,
    .iq-comment-list #respond {
        margin-left: -4px;
        margin-right: -4px;
    }
}
