/* EJAJ Tools – Sdílené styly */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

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

html, body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Velký, čitelný text pro kameru */
.big-text {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
}

/* Tlačítko */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-danger {
    background: #ff3b30;
    color: #fff;
}

.btn-success {
    background: #30d158;
    color: #000;
}

/* Stav připojení */
.connection-status {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3b30;
    transition: background 0.3s;
}

.connection-status.connected {
    background: #30d158;
}

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Veřejná platforma: sdílení týmového roomu */
.ejaj-team-chip {
    position: fixed;
    left: 0.5rem;
    bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: rgba(255, 255, 255, 0.8);
    font: 600 0.62rem/1 ui-monospace, 'SF Mono', Menlo, monospace;
    letter-spacing: 0.08em;
    cursor: pointer;
    max-width: calc(100vw - 1rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ejaj-team-chip:hover { color: #fff; border-color: #fff; }

/* Editor jmen týmu (public/roster.js) */
.ejaj-roster {
    position: fixed; inset: 0; z-index: 10000;
    display: grid; place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ejaj-roster-card {
    width: min(420px, 100%);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: 1.3rem;
    border: 2px solid #f3f0e8;
    background: #0b0b0b;
    color: #f3f0e8;
    box-shadow: 8px 8px 0 #dfff45;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    text-align: left;
}
.ejaj-roster-kicker { color: #dfff45; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; }
.ejaj-roster h2 { margin: 0.5rem 0 0; font: 800 1.5rem/1.1 system-ui, sans-serif; letter-spacing: -0.02em; }
.ejaj-roster-sub { margin: 0.5rem 0 0; color: #8d8a82; font-size: 0.75rem; line-height: 1.45; }
.ejaj-roster-rows { display: grid; gap: 0.45rem; margin-top: 1rem; }
.ejaj-roster-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem; }
.ejaj-roster-row > span { min-width: 1.6rem; color: #8d8a82; font-size: 0.62rem; font-weight: 700; }
.ejaj-roster-row input {
    width: 100%; min-width: 0; height: 2.6rem; padding: 0 0.7rem;
    border: 2px solid #2a2a2a; border-radius: 0; background: #050505; color: #f3f0e8;
    font: 700 1rem/1 system-ui, sans-serif;
}
.ejaj-roster-row input:focus { outline: none; border-color: #dfff45; }
.ejaj-roster button {
    min-height: 2.6rem; padding: 0 0.9rem;
    border: 2px solid #f3f0e8; border-radius: 0; background: transparent; color: #f3f0e8;
    font: 700 0.7rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.06em; cursor: pointer;
}
.ejaj-roster .ejaj-roster-remove { width: 2.6rem; padding: 0; border-color: #2a2a2a; font-size: 1.1rem; }
.ejaj-roster .ejaj-roster-add { width: 100%; margin-top: 0.6rem; border-style: dashed; border-color: #444; color: #8d8a82; }
.ejaj-roster-error { margin: 0.7rem 0 0; color: #ff4b36; font-size: 0.72rem; }
.ejaj-roster-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; margin-top: 1.1rem; }
.ejaj-roster .ejaj-roster-save { background: #dfff45; border-color: #dfff45; color: #0b0b0b; }
