/* ============================================================
   pages.css — stránkově specifické styly (O projektu a další)
   ============================================================ */

/* ============================================================
   O PROJEKTU — page-o-projektu.php
   ============================================================ */

/* Amber proměnné definovány v :root bloku na začátku souboru — Fix #16 */

/* Layout */
main.about-main { flex: 1; padding: 40px 20px 80px; z-index: 1; position: relative; }
.about-wrapper  { max-width: 1300px; margin: 0 auto; }

/* ----- Boot terminál ----- */
.boot-terminal {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-glass);
    border-top: 2px solid var(--cyan);
    padding: 40px 50px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}
.boot-terminal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent, transparent 2px,
        rgba(0, 242, 255, 0.015) 2px,
        rgba(0, 242, 255, 0.015) 4px
    );
    pointer-events: none;
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-glass);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red    { background: #ff5f57; box-shadow: 0 0 5px #ff5f57; }
.t-dot.yellow { background: #febc2e; box-shadow: 0 0 5px #febc2e; }
.t-dot.green  { background: #28c840; box-shadow: 0 0 5px #28c840; }
.t-title { margin-left: auto; font-family: 'Courier New', Courier, monospace; font-size: 0.75rem; color: var(--text-muted); letter-spacing: 2px; }
.terminal-lines { font-family: 'Courier New', Courier, monospace; font-size: 0.95rem; line-height: 1.9; }
.t-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    opacity: 0;
    transform: translateY(5px);
    animation: lineIn 0.4s ease forwards;
}
@keyframes lineIn { to { opacity: 1; transform: translateY(0); } }
.t-prompt { color: var(--cyan); }
.t-cmd    { color: #fff; }
.t-output { color: var(--text-muted); padding-left: 20px; }
.t-ok     { color: #28c840; }
.t-warn   { color: var(--amber); }
.t-big {
    font-family: 'Teko', sans-serif;
    font-size: 5rem;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1;
    padding: 20px 0;
    text-shadow: 0 0 40px rgba(0, 242, 255, 0.3);
    display: block;
}
.cursor-blink {
    display: inline-block;
    width: 10px; height: 1.1em;
    background: var(--cyan);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 4px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ----- 404 terminál ----- */
.err404-main { flex: 1; padding: 40px 20px 80px; z-index: 1; position: relative; }
.err404-actions { margin-top: 28px; }

/* ----- Sekce — label a nadpis ----- */
.section-label {
    color: var(--cyan);
    font-family: 'Teko', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.section-heading {
    font-family: 'Teko', sans-serif;
    font-size: 3.6rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.85;
    margin: 10px 0 40px 0;
    position: relative;
    display: inline-block;
    color: #fff;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 60%; height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    box-shadow: 0 0 10px var(--cyan-dim);
}

/* ----- Glitch: cyan projede textem, žádná červená ----- */
.glitch-title,
.glitch-pass { position: relative; display: inline-block; }
.glitch-title::after,
.glitch-pass::after {
    content: none;
    animation: none;
}
.section-heading.glitch-title::after,
.section-heading.glitch-pass::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    box-shadow: 0 0 10px var(--cyan-dim);
    color: transparent;
    clip-path: none;
    transform: none;
    opacity: 1;
    -webkit-text-fill-color: transparent;
    animation: none;
}
.glitch-title::before,
.glitch-pass::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: inherit;
    white-space: pre-line;
    text-shadow: none;
    color: var(--cyan);
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: var(--cyan) !important;
    pointer-events: none;
    animation-name: inqer-glitch-pass;
    animation-duration: var(--glitch-dur, 5.5s);
    animation-timing-function: linear;
    animation-delay: var(--glitch-delay, 0s);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}
@keyframes inqer-glitch-pass {
    0%, 76%, 100% {
        clip-path: inset(0 0 100% 0);
        opacity: 0;
        transform: translateX(0);
    }
    80% {
        clip-path: inset(0 0 65% 0);
        opacity: 0.95;
        transform: translateX(-0.08em);
    }
    84% {
        clip-path: inset(20% 0 40% 0);
        opacity: 1;
        transform: translateX(0.1em);
    }
    88% {
        clip-path: inset(45% 0 20% 0);
        opacity: 0.95;
        transform: translateX(-0.07em);
    }
    92% {
        clip-path: inset(70% 0 0 0);
        opacity: 0.75;
        transform: translateX(0.05em);
    }
}
@media (prefers-reduced-motion: reduce) {
    .glitch-title::before,
    .glitch-pass::before { animation: none; opacity: 0; }
}

/* ----- Hodnoty ----- */
.values-section { margin-bottom: 70px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.value-card {
    background: var(--glass);
    border: 1px solid var(--border-glass);
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
    transition: 0.4s ease;
    cursor: default;
}
.value-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    box-shadow: 0 0 10px var(--cyan);
}
.value-card:hover { background: rgba(0, 242, 255, 0.04); border-color: rgba(0, 242, 255, 0.2); }
.value-card:hover::after { transform: scaleX(1); }
.value-num {
    font-family: 'Teko', sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: rgba(0, 242, 255, 0.08);
    position: absolute;
    top: 15px; right: 20px;
    transition: 0.4s;
}
.value-card:hover .value-num { color: rgba(0, 242, 255, 0.15); }
.value-icon  { font-size: 1.8rem; color: var(--cyan); margin-bottom: 20px; display: block; }
.value-title { font-family: 'Teko', sans-serif; font-size: 1.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; color: #fff; }
.value-desc  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ----- Oddělovač ----- */
.divider      { display: flex; align-items: center; gap: 20px; margin: 60px 0; }
.divider-line { flex: 1; height: 1px; background: var(--border-glass); }
.divider-icon { color: var(--cyan); font-size: 1rem; opacity: 0.5; }

/* ----- Timeline ----- */
.timeline-section {
    margin-bottom: 70px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}
.timeline-intro p { color: var(--text-muted); line-height: 1.8; margin-top: 20px; font-size: 0.95rem; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 1px; height: 100%;
    background: linear-gradient(180deg, var(--cyan), rgba(0, 242, 255, 0.1));
}
.tl-item { position: relative; padding: 0 0 40px 40px; cursor: pointer; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
    position: absolute;
    left: -6px; top: 6px;
    width: 13px; height: 13px;
    background: var(--bg);
    border: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: 0.3s;
}
.tl-item.active .tl-dot,
.tl-item:hover  .tl-dot {
    border-color: var(--cyan);
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}
.tl-year  { font-family: 'Teko', sans-serif; font-size: 1rem; color: var(--cyan); letter-spacing: 3px; margin-bottom: 6px; text-transform: uppercase; }
.tl-title { font-family: 'Teko', sans-serif; font-size: 1.6rem; text-transform: uppercase; color: #fff; margin-bottom: 8px; transition: 0.3s; }
.tl-item:hover .tl-title { color: var(--cyan); }
.tl-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}
.tl-item.active .tl-desc,
.tl-item:hover  .tl-desc { max-height: 100px; opacity: 1; }

/* ----- Hexagony ----- */
.hex-section { margin-bottom: 70px; }
.hex-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
    justify-content: center;
}
.hex-item { display: flex; flex-direction: column; align-items: center; gap: 15px; cursor: default; }
.hex-shape {
    position: relative;
    width: 120px; height: 104px;
    background: var(--glass);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: 0.4s ease;
    animation: hexFloat 3s ease-in-out infinite;
}
.hex-item:nth-child(1) .hex-shape { animation-delay: 0s; }
.hex-item:nth-child(2) .hex-shape { animation-delay: 0.4s; }
.hex-item:nth-child(3) .hex-shape { animation-delay: 0.8s; }
.hex-item:nth-child(4) .hex-shape { animation-delay: 1.2s; }
.hex-item:nth-child(5) .hex-shape { animation-delay: 1.6s; }
@keyframes hexFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}
.hex-shape::before {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--bg);
    z-index: 0;
    transition: 0.4s;
}
.hex-inner  { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hex-shape:hover { background: var(--cyan); filter: drop-shadow(0 0 15px var(--cyan-dim)); }
.hex-shape:hover::before { background: rgba(0, 10, 15, 0.9); }
.hex-number { font-family: 'Teko', sans-serif; font-size: 2.2rem; color: #fff; line-height: 1; }
.hex-unit   { font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 0.6rem; color: var(--cyan); letter-spacing: 2px; text-transform: uppercase; }
.hex-label  { font-family: 'Teko', sans-serif; font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); text-align: center; }

/* ----- Tým ----- */
.team-section { margin-bottom: 70px; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 300px));
    justify-content: center;
    gap: 2px;
    margin-top: 40px;
}
.team-card {
    background: var(--glass);
    border: 1px solid var(--border-glass);
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}
.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,242,255,0.05), transparent);
    transition: left 0.5s ease;
}
.team-card:hover::before { left: 100%; }
.team-card:hover { border-color: rgba(0, 242, 255, 0.2); transform: translateY(-4px); }
.team-avatar {
    width: 70px; height: 70px;
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid var(--cyan-dim);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--cyan);
    transition: 0.4s;
}
.team-card:hover .team-avatar { background: rgba(0, 242, 255, 0.12); box-shadow: 0 0 20px var(--cyan-dim); }
.team-role { font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 0.65rem; color: var(--cyan); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 5px; }
.team-name { font-family: 'Teko', sans-serif; font-size: 1.6rem; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.team-bio  { color: var(--text-muted); font-size: 0.8rem; line-height: 1.6; }
/* ----- Responsive (O projektu) ----- */
@media (max-width: 1100px) {
    .values-grid      { grid-template-columns: 1fr 1fr; }
    .team-grid        { grid-template-columns: repeat(auto-fit, minmax(0, 300px)); }
    .timeline-section { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .values-grid  { grid-template-columns: 1fr; }
    .team-grid    { grid-template-columns: repeat(auto-fit, minmax(0, 260px)); }
    .t-big        { font-size: 3rem; }
    .boot-terminal { padding: 25px; }
}
@media (max-width: 500px) {
    .team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PŘIHLÁŠENÍ — page-prihlaseni.php /preview /login
   ============================================================ */
.iq-login {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.iq-login .article-meta {
    justify-content: center;
}
.iq-login .article-title {
    display: block;
    text-align: center;
}
.iq-login .article-content > p {
    text-align: center;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.iq-login-msg {
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 14px;
    border: 1px solid var(--border-glass);
    margin: 0 auto 22px;
    max-width: 420px;
    text-align: center;
}
.iq-login-msg--err {
    color: #ff6b6b;
    border-color: rgba(255, 49, 49, 0.45);
    background: rgba(255, 49, 49, 0.08);
}
.iq-login-msg--ok {
    color: var(--cyan);
    border-color: rgba(0, 242, 255, 0.35);
    background: rgba(0, 242, 255, 0.08);
}
#iq-loginform,
.iq-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 420px;
    margin: 16px auto 8px;
    text-align: left;
}
#iq-loginform p,
.iq-login-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
#iq-loginform label,
.iq-login-form label {
    font-family: 'Teko', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
}
#iq-loginform input[type="text"],
#iq-loginform input[type="password"],
.iq-login-form input[type="text"],
.iq-login-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: #e0e0e0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    padding: 12px 14px;
    border-radius: 0;
}
#iq-loginform input[type="text"]:focus,
#iq-loginform input[type="password"]:focus,
.iq-login-form input[type="text"]:focus,
.iq-login-form input[type="password"]:focus {
    outline: none;
    border-color: rgba(0, 242, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.15);
}
#iq-loginform .login-remember,
.iq-login-form .login-remember {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
#iq-loginform .login-remember label,
.iq-login-form .login-remember label {
    color: var(--text-muted);
    letter-spacing: 1px;
}
#iq-loginform input[type="checkbox"],
.iq-login-form input[type="checkbox"] {
    accent-color: var(--cyan);
}
#iq-loginform .login-username,
#iq-loginform .login-password,
#iq-loginform .login-remember {
    width: 100%;
}

/* Akce: primární + sekundární vedle sebe, stejná výška, přes šířku formuláře */
#iq-loginform .login-submit {
    display: contents;
}
#iq-loginform input[type="submit"],
.iq-login-form button[type="submit"],
#iq-loginform .iq-login-forgot,
.iq-login-providers .btn-browse {
    font-family: 'Teko', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    border-bottom: none !important;
    padding: 12px 18px;
    cursor: pointer;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: 100%;
}
#iq-loginform input[type="submit"],
.iq-login-form button[type="submit"],
.iq-login-providers .btn-browse {
    color: #050608;
    background: var(--cyan);
    border: 1px solid var(--cyan);
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.25);
}
#iq-loginform input[type="submit"]:hover,
.iq-login-form button[type="submit"]:hover,
.iq-login-providers .btn-browse:hover {
    background: #7af7ff;
    box-shadow: 0 0 22px var(--cyan-dim);
}
#iq-loginform .iq-login-forgot {
    color: var(--cyan);
    background: transparent;
    border: 1px solid rgba(0, 242, 255, 0.35);
}
#iq-loginform .iq-login-forgot:hover {
    color: #fff;
    border-color: var(--cyan);
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 14px rgba(0, 242, 255, 0.18);
}

/* Řádek tlačítek — flex na formuláři přes order */
#iq-loginform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
#iq-loginform .login-username,
#iq-loginform .login-password,
#iq-loginform .login-remember {
    grid-column: 1 / -1;
}
#iq-loginform .login-submit {
    grid-column: 1;
    display: block;
    width: 100%;
}
#iq-loginform .login-submit input[type="submit"] {
    width: 100%;
}
#iq-loginform .iq-login-forgot {
    grid-column: 2;
    align-self: stretch;
}
#iq-loginform .login-submit:has(.iq-login-forgot) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
#iq-loginform .login-submit:has(.iq-login-forgot) .iq-login-forgot {
    grid-column: auto;
}
@media (max-width: 520px) {
    #iq-loginform {
        grid-template-columns: 1fr;
    }
    #iq-loginform .login-submit,
    #iq-loginform .iq-login-forgot,
    #iq-loginform .login-submit:has(.iq-login-forgot) {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
}
.iq-login-providers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    margin: 8px auto 28px;
}


