/* ============================================================
   Stránky oboru IT a jeho zaměření
   (it/index.php, it/kyberbezpecnost.php, it/virtualni-realita.php)
   Navazuje na obory-promo.css (barvy témat, razítka, vlnka z loga, karty).
   ============================================================ */

.theme-it { --c: #ff7f84; --c2: #f25b5b; --c-ink: #fff; --btn: #e5353b; }

/* ---------- HERO ---------- */
.it-hero { padding: clamp(7rem, 15vh, 10rem) 0 6rem; isolation: isolate; }
.it-hero__bg {
    position: absolute; inset: 0; z-index: 0;
    background: var(--hero-img) no-repeat center / cover;
    transform: scale(1.06); animation: it-hero-zoom 18s ease-in-out infinite alternate;
}
.it-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(115deg, rgba(16, 24, 48, .92) 0%, rgba(26, 51, 110, .75) 45%, color-mix(in srgb, var(--c2) 55%, transparent) 120%);
}
.theme-kyber.it-hero::before { background: linear-gradient(115deg, rgba(18, 6, 10, .94) 0%, rgba(70, 14, 22, .8) 50%, rgba(229, 53, 59, .45) 120%); }
.it-hero__content { position: relative; z-index: 2; display: block; }
.it-hero__text { max-width: 760px; position: relative; }
.it-hero__kicker {
    display: inline-block; margin-bottom: 1rem; padding: .35rem .9rem; border-radius: 999px;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.it-hero__text h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.it-hero__stamp {
    position: absolute; top: -40px; right: -10px; width: 120px; height: 120px;
    animation: stamp-in .7s cubic-bezier(.3,1.6,.5,1) .3s both, stamp-wobble 4s ease-in-out 1.5s infinite;
}
.it-hero__cta { margin-top: 2rem; }
.it-hero__cta .btn { color: #fff; }
.it-hero__wave { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 60px; z-index: 2; opacity: .7; }
.it-hero__wave path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: wave-draw 2.4s ease-out .4s forwards; }
.it-hero__wave path + path { animation-delay: .8s; }
@keyframes it-hero-zoom { to { transform: scale(1.14) translateX(-1.5%); } }
@media (max-width: 760px) {
    .it-hero__stamp { width: 84px; height: 84px; top: -70px; right: 0; }
}

/* ---------- PROČ – 3 výhody ---------- */
.it-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 860px) { .it-features { grid-template-columns: 1fr; } }
.it-feature {
    position: relative; padding: 2rem 1.6rem; border-radius: 20px; background: #fff;
    border: 1px solid var(--color-border, #e2e8f0); box-shadow: 0 6px 24px -14px rgba(15,23,42,.3);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
    overflow: hidden;
}
.it-feature::before {               /* barevná linka nahoře */
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, var(--c2), var(--c), #46baff);
    transform: scaleX(0); transform-origin: left; transition: transform .5s;
}
.it-feature:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--c2) 55%, transparent); }
.it-feature:hover::before { transform: scaleX(1); }
.it-feature__icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem;
    font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--c), var(--c2));
    box-shadow: 0 10px 22px -10px var(--c2);
    animation: promo-float 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.8s);
}
.it-feature h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.it-feature p { margin: 0; color: var(--color-text-muted, #64748b); line-height: 1.6; }

/* ---------- KYBER: propojení s interaktivní ukázkou ---------- */
.it-demo-section { padding-top: 0; }
.it-demo {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
    padding: 2.5rem; border-radius: 28px; text-decoration: none; color: #fff !important;
    background:
        radial-gradient(circle at 85% 20%, rgba(229,53,59,.35), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(70,186,255,.18), transparent 45%),
        #12080b;
    box-shadow: 0 30px 60px -30px rgba(229,53,59,.6);
    transition: transform .35s, box-shadow .35s;
}
.it-demo:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(229,53,59,.8); }
.it-demo__term {
    border-radius: 14px; overflow: hidden; background: #0b0507; border: 1px solid rgba(255,127,132,.35);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    box-shadow: 0 20px 40px -20px #000;
}
.it-demo__bar { padding: .5rem .8rem; font-size: .75rem; color: rgba(255,255,255,.55); background: #1c0d11; display: flex; align-items: center; gap: .35rem; }
.it-demo__bar span { width: 10px; height: 10px; border-radius: 50%; background: #f25b5b; }
.it-demo__bar span:nth-child(2) { background: #ffd27a; }
.it-demo__bar span:nth-child(3) { background: #46baff; margin-right: .5rem; }
.it-demo__term pre { margin: 0; padding: 1.1rem 1.2rem 1.3rem; font-size: .9rem; line-height: 1.75; color: #ffe1e2; white-space: pre-wrap; }
.it-demo__term .p { color: #46baff; }
.it-demo__term .r { color: #ff7f84; }
.it-demo__term .g { color: #7ee2a8; }
.it-demo__term .caret { animation: demo-caret 1s steps(1) infinite; }
.it-demo__text h2 { color: #fff; margin: .4rem 0 .8rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.it-demo__text p { color: rgba(255,255,255,.82); margin-bottom: 1.5rem; }
.it-demo__btn { background: linear-gradient(135deg, #ff7f84, #e5353b); color: #fff !important; border: none; }
.it-demo .it-eyebrow { color: #ff7f84; }
@media (max-width: 860px) { .it-demo { grid-template-columns: 1fr; padding: 1.5rem; } }

/* ---------- PŘEDMĚTY (převzato z it/index.php) ---------- */
.apple-section {
    background-color: #fbfbfd; padding: 6rem 2rem; overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.apple-header { position: relative; text-align: center; max-width: 800px; margin: 0 auto 6rem auto; }
.apple-header h2 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 1rem; color: #1d1d1f; line-height: 1.1; }
.apple-header p { font-size: 1.2rem; color: #86868b; font-weight: 400; }
.subjects-container + .apple-header, .it-zam-block { margin-top: 2rem; }
.it-eyebrow { font-size: .8rem !important; letter-spacing: .2em; text-transform: uppercase; font-weight: 800 !important; color: var(--c2, #2b61c9) !important; margin-bottom: .6rem; }
.it-heading-wave { position: static; display: block; width: 220px; height: 26px; margin: 1rem auto 0; opacity: .9; }
.it-heading-wave path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: wave-draw 2s ease-out .2s forwards; }

.subject-row { display: flex; align-items: center; max-width: 1100px; margin: 0 auto 8rem auto; gap: 5rem; will-change: transform, opacity; }
.subject-row:nth-child(even) { flex-direction: row-reverse; }
.subject-image { flex: 1; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.08); position: relative; }
.subject-image img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .6s ease; }
.subject-row:hover .subject-image img { transform: scale(1.03); }
.subject-content { flex: 1; }
.subject-content h3 { font-size: 2.5rem; font-weight: 600; color: #1d1d1f; margin-bottom: 1rem; line-height: 1.2; }
.subject-content p { font-size: 1.25rem; line-height: 1.6; color: #515154; margin-bottom: 1.5rem; }
.spec-badges { margin-bottom: 1rem; }
.spec-badge {
    background: rgba(0, 102, 204, .1); color: #0066cc; padding: .4rem 1rem; border-radius: 20px;
    font-size: .85rem; font-weight: 600; letter-spacing: .02em; display: inline-flex; align-items: center; gap: .45rem;
}
/* předmět jen pro zaměření – barva zaměření a rámeček kolem fotky */
.spec-badge--zam { color: #fff; background: linear-gradient(135deg, var(--c2), var(--btn)); box-shadow: 0 6px 16px -8px var(--c2); }
.theme-digimar .spec-badge--zam { color: #2b2000; background: linear-gradient(135deg, #ffe14d, #f5b800); }
.subject-row[class*="theme-"] .subject-image { box-shadow: 0 0 0 4px var(--c), 0 20px 40px color-mix(in srgb, var(--c2) 25%, transparent); }

.it-zam-block__more { display: flex; justify-content: center; margin: -4rem 0 6rem; }
.it-zam-block__more .obor-card__btn { padding: .9rem 1.6rem; }

@media (max-width: 850px) {
    .subject-row, .subject-row:nth-child(even) { flex-direction: column; gap: 2.5rem; margin-bottom: 5rem; }
    .subject-content h3 { font-size: 2rem; }
    .apple-header { margin-bottom: 4rem; }
    .apple-header h2 { font-size: 2rem; }
    .apple-section { padding: 4rem 1rem; }
}

/* ---------- Další zaměření ---------- */
.it-others__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 860px) { .it-others__grid { grid-template-columns: 1fr; } }
.it-other {
    display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: 16px;
    text-decoration: none; color: var(--color-text-main, #0f172a) !important; background: #fff;
    border: 1px solid var(--color-border, #e2e8f0); border-left: 5px solid var(--c2);
    transition: transform .3s, box-shadow .3s;
}
.it-other:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--c2) 60%, transparent); }
.it-other__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c), var(--c2)); flex: none; }
.theme-digimar .it-other__icon { color: #2b2000; }
.it-other__body { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.it-other__body small { color: var(--color-text-muted, #64748b); }
.it-other > .fa-arrow-right { color: var(--c2); transition: transform .3s; }
.it-other:hover > .fa-arrow-right { transform: translateX(4px); }

/* tři karty zaměření vedle sebe */
.obory-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .obory-grid--three { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

@media (prefers-reduced-motion: reduce) {
    .it-hero__bg, .it-hero__stamp, .it-feature__icon, .it-hero__wave path, .it-heading-wave path, .it-demo__term .caret { animation: none !important; }
    .it-hero__wave path, .it-heading-wave path { stroke-dashoffset: 0; }
}

/* Video na pozadí hero (VR) */
.it-hero__video {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
    object-fit: cover; object-position: 70% 40%;
}
.theme-vr.it-hero::before { background: linear-gradient(105deg, rgba(16, 24, 48, .92) 0%, rgba(26, 51, 110, .72) 42%, rgba(242, 91, 91, .25) 100%); }

/* ---------- Klávesové štítky (světlá verze stylu z kyber ukázek) ---------- */
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .88rem; color: var(--color-text-muted, #64748b); }
.keys-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.keys-label { margin-left: 3px; }
.keys kbd {
    font: 700 .78rem/1 inherit; font-family: inherit; color: #1d1d1f;
    min-width: 26px; padding: 5px 8px 6px; text-align: center;
    background: linear-gradient(180deg, #fff, #eef1f5);
    border: 1px solid #cfd6df; border-bottom-width: 3px; border-radius: 7px;
}

/* ---------- Hry studentů: přehrávač ---------- */
.game-head h2 { margin: .3rem 0 .6rem; }
.game-head p { color: var(--color-text-muted, #64748b); max-width: 760px; margin: 0 0 1.5rem; }
.game-player {
    position: relative; aspect-ratio: 16 / 10; width: 100%; max-width: 1100px; margin: 0 auto;
    border-radius: 22px; overflow: hidden; background: #231F20;
    box-shadow: 0 30px 60px -30px rgba(15,23,42,.6), 0 0 0 4px color-mix(in srgb, var(--c2) 40%, transparent);
}
.game-player__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #231F20; outline: none; }
.game-player__cover { position: absolute; inset: 0; background: linear-gradient(135deg, #2a0a14, #7a1c22 60%, #f25b5b) center / cover no-repeat; }
.game-player__cover[hidden] { display: none; }
.game-player__overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
    padding: 1.5rem; text-align: center; color: #fff;
    background: radial-gradient(circle at center, rgba(10,10,20,.35), rgba(10,10,20,.8));
}
.game-player__start {
    font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .9rem;
    padding: .9rem 1.6rem .9rem .9rem; border-radius: 999px; border: none;
    font-size: 1.25rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #ff7f84, #e5353b);
    box-shadow: 0 16px 36px -12px rgba(229,53,59,.8);
    transition: transform .25s, box-shadow .25s;
}
.game-player__start:hover { transform: scale(1.05); box-shadow: 0 22px 44px -12px rgba(229,53,59,.95); }
.game-player__play {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.22);
    animation: game-pulse 1.8s ease-out infinite;
}
@keyframes game-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 100% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } }
.game-player__note { margin: 0; font-size: .9rem; color: rgba(255,255,255,.85); max-width: 460px; }
/* Hra jen pro PC: na mobilu/tabletu (třída game-pc-only na <html>) místo „Spustit hru“ jen upozornění */
.game-player__mobile { display: none; }
.game-pc-only .game-player__start,
.game-pc-only .game-player__note,
.game-pc-only .game-toolbar,
.game-pc-only .game-player__hint { display: none !important; }
.game-pc-only .game-player__mobile {
    display: flex; flex-direction: column; align-items: center; gap: .55rem;
    max-width: 420px; padding: 1.2rem 1.3rem; border-radius: 18px;
    background: rgba(10,10,20,.55); border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.game-player__mobile-icon {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, #ff7f84, #e5353b);
}
.game-player__mobile strong { font-size: 1.15rem; line-height: 1.3; color: #fff; }
.game-player__mobile span:last-child { font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.85); }
/* na úzkém displeji by se text do poměru 16:10 nevešel → výška podle obsahu */
.game-pc-only .game-player { aspect-ratio: auto; min-height: 280px; border-radius: 18px; }
.game-pc-only .game-player__cover, .game-pc-only .game-player__overlay { position: relative; min-height: 280px; }
.game-pc-only .game-player__overlay { padding: 1.5rem 1rem; }
.game-player__loading {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, 80%);
    text-align: center; color: #fff; z-index: 2;
}
.game-player__loading[hidden], .game-player__error[hidden] { display: none; }
.game-player__bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.game-player__bar > div { height: 100%; width: 0; background: linear-gradient(90deg, #46baff, #ff7f84); transition: width .3s; }
.game-player__loading p { margin: .8rem 0 0; font-weight: 600; }
.game-player__error { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; color: #ffd27a; background: rgba(20,10,12,.9); }

.game-toolbar { max-width: 1100px; margin: 1.1rem auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.game-toolbar__btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.game-fullscreen { background: var(--btn); color: #fff; border: none; }
.game-fullscreen:disabled { opacity: .45; cursor: not-allowed; }

.game-info { max-width: 1100px; margin: 2rem auto 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .game-info { grid-template-columns: 1fr; } }
.game-info__card { padding: 1.6rem; border-radius: 18px; background: #fff; border: 1px solid var(--color-border, #e2e8f0); }
.game-info__card h3 { margin: 0 0 .7rem; font-size: 1.15rem; display: flex; align-items: center; gap: .55rem; }
.game-info__card h3 i { color: var(--c2); }
.game-info__card p { margin: 0 0 .8rem; color: var(--color-text-muted, #64748b); line-height: 1.6; }
.game-score { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; }
.game-score li { display: flex; justify-content: space-between; padding: .45rem .7rem; border-radius: 9px; background: #f6f7f9; font-size: .9rem; }
.game-score li:first-child { background: linear-gradient(135deg, #ffe14d, #f5b800); font-weight: 700; }
.game-score strong { color: var(--btn); }
.game-score li:first-child strong { color: #2b2000; }

/* ---------- VR stránka: pozvánka ke hře ---------- */
.it-game-promo {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
    padding: 2.5rem; border-radius: 28px; text-decoration: none; color: #fff !important;
    background: radial-gradient(circle at 85% 20%, rgba(255,127,132,.35), transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(70,186,255,.2), transparent 45%), #1a0b10;
    box-shadow: 0 30px 60px -30px rgba(229,53,59,.6); transition: transform .35s, box-shadow .35s;
}
.it-game-promo:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(229,53,59,.8); }
.it-game-promo__img { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: #231F20 center / cover no-repeat; box-shadow: 0 20px 40px -20px #000; }
.it-game-promo__img::after {
    content: "\f04b"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem;
    background: rgba(229,53,59,.9); animation: game-pulse 1.8s ease-out infinite;
}
.it-game-promo h2 { color: #fff; margin: .4rem 0 .8rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.it-game-promo p { color: rgba(255,255,255,.82); margin-bottom: 1.5rem; }
.it-game-promo .it-eyebrow { color: #ff7f84 !important; }
@media (max-width: 860px) { .it-game-promo { grid-template-columns: 1fr; padding: 1.5rem; } }

@media (prefers-reduced-motion: reduce) { .game-player__play, .it-game-promo__img::after { animation: none; } }

/* Přehrávač: nápověda „Klikni do hry“, když hra běží, ale nemá ovládání */
.game-player__hint {
    position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 3;
    padding: .45rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff; white-space: nowrap;
    background: rgba(15, 15, 25, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    pointer-events: none; opacity: 0; transition: opacity .3s;
}
.game-player.is-running:not(.is-active) .game-player__hint { opacity: 1; }
.game-player.is-active { box-shadow: 0 30px 60px -30px rgba(15,23,42,.6), 0 0 0 4px #46baff; }
.game-quit:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) { .game-player__hint { font-size: .75rem; white-space: normal; text-align: center; width: 85%; } }
