/* ============================================================
   Header status — kruhový indikátor úrovne, LIVE stav, avatar
   (iniciály), profilová fotka a stránka live vysielania.
   Append-only doplnok k styles.css / responsive.css.
   ============================================================ */

[hidden] {
    display: none !important;
}

/* — Kruhový indikátor úrovne (replika legacy chart-mini, canvas drawCircle) — */
.status-circle.level-ring {
    width: 40px;
    height: 40px;
    aspect-ratio: auto;
    border: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.status-circle.level-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* legacy: ctx.rotate(-90 deg) — progres začína hore */
}

.level-ring-track {
    fill: none;
    stroke: #efefef; /* legacy: drawCircle('#efefef', …) */
    stroke-width: 5;
}

.level-ring-value {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round; /* legacy: ctx.lineCap = 'round' */
}

@media screen and (min-width: 1200px) {
    /* tmavé pozadie panela — ako pôvodný biely polopriehľadný okraj */
    .level-ring-track {
        stroke: rgba(255, 255, 255, 0.37);
    }
}

/* — LIVE ikona: aktívny stav (beží vysielanie) — */
a.live-icon {
    cursor: pointer;
}

.live-icon svg {
    display: block;
    width: 100%;
}

.live-icon {
    transition: color 0.3s ease;
}

.live-icon.live-icon--active {
    color: var(--neon);
    animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 0 rgba(255, 0, 106, 0));
    }
    50% {
        opacity: 0.72;
        filter: drop-shadow(0 0 7px rgba(255, 0, 106, 0.85));
    }
}

/* — Fallback avatar s iniciálami (namiesto cudzieho statického obrázka) — */
.user-avatar-initials {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon) 0%, #8e003b 100%);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    user-select: none;
}

/* — Profilová fotka: upload formulár v profile — */
.profile-photo-section {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
}

.profile-photo-title {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.profile-photo-row {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.profile-photo-preview img,
.profile-photo-preview .profile-photo-initials {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-preview .profile-photo-initials {
    background: linear-gradient(135deg, var(--neon) 0%, #8e003b 100%);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 1px;
    user-select: none;
}

.profile-photo-form {
    flex: 1;
    min-width: 260px;
}

.profile-photo-label {
    display: block;
    margin-bottom: 10px;
    color: #6b6b6b;
    font-size: 14px;
}

.profile-photo-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-photo-controls input[type="file"] {
    font-size: 14px;
    max-width: 100%;
}

.profile-photo-btn {
    background-color: var(--neon);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 22px;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.profile-photo-btn:hover {
    opacity: 0.85;
}

.profile-photo-error {
    margin-top: 10px;
    color: #d40000;
    font-size: 14px;
}

/* — Stránka live vysielania — */
.live-page {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.live-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 25px;
}

.live-page-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    background: #a8a8a8;
    color: #fff;
    font-size: 18px;
    letter-spacing: 2px;
}

.live-page-badge.is-live {
    background: var(--neon);
    animation: live-pulse 1.6s ease-in-out infinite;
}

.live-page-box {
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    padding: 35px 30px;
    text-align: center;
}

.live-page-message {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
}

.live-page-note {
    color: #6b6b6b;
    margin-bottom: 22px;
}

.live-page-btn {
    display: inline-block;
    background-color: var(--neon);
    color: #fff;
    border-radius: 4px;
    padding: 12px 28px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.live-page-btn:hover {
    opacity: 0.85;
}

.live-page-meta {
    margin-bottom: 18px;
}

.live-page-training {
    font-size: 22px;
    font-weight: 700;
    color: var(--neon);
}

.live-page-time {
    color: #6b6b6b;
}

.live-page-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.live-page-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
