/* =========================================================================
 * SkillzKidz TV — Skillz Room (Gaming Hub Edition)
 * Premium gaming interface meets football platform meets player hub
 * ========================================================================= */

/* ---------- Skillz Room Wrapper ---------- */
.skillz-hub {
    position: relative;
    z-index: 2;
    padding: 90px 0 80px;
    max-width: 1480px;
    margin: 0 auto;
}

/* ---------- HUD HERO BAR (Cinematic banner mit Spielerstatus) ---------- */
.hub-hero {
    position: relative;
    height: 360px;
    margin: 0 32px 32px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    background: #0a0a14;
    box-shadow:
        0 24px 60px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.05);
}
.hub-hero-bg {
    position: absolute; inset: 0;
    background-image: url('assets/img/covers/kabine.png');
    background-size: cover;
    background-position: center 40%;
    filter: saturate(1.1) brightness(0.65);
    transform: scale(1.03);
}
.hub-hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(105deg, rgba(6,6,12,0.95) 0%, rgba(6,6,12,0.7) 35%, transparent 70%),
        linear-gradient(0deg, rgba(6,6,12,0.85), transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(108,59,255,0.35), transparent 60%);
}
.hub-hero-scan {
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(0,229,195,0.025) 0px, rgba(0,229,195,0.025) 1px, transparent 1px, transparent 3px);
    pointer-events: none;
    mix-blend-mode: overlay;
}

.hub-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 36px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: flex-end;
}

.hub-hero-left { max-width: 620px; }
.hub-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--mint);
    background: rgba(0,229,195,0.08);
    border: 1px solid rgba(0,229,195,0.3);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.hub-hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 12px var(--mint);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hub-hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(40px, 5.5vw, 78px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.hub-hero-title span {
    color: var(--mint);
    text-shadow: 0 0 30px rgba(0,229,195,0.6);
}
.hub-hero-sub {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    line-height: 1.55;
    max-width: 460px;
}

/* Player Status Card — right side of hub hero */
.hub-status {
    background: rgba(8, 8, 18, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px 24px;
    min-width: 290px;
    position: relative;
    overflow: hidden;
}
.hub-status::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--mint), var(--violet-bright), var(--gold));
}
.hub-status-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.hub-status-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(0,229,195,0.4), transparent 70%),
        linear-gradient(135deg, var(--violet), #2d1060);
    border: 2px solid rgba(0,229,195,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 19px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(0,229,195,0.3);
}
.hub-status-meta { flex: 1; min-width: 0; }
.hub-status-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hub-status-level {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hub-status-level b { color: var(--gold); }

.hub-status-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.hub-status-stat {
    font-family: 'Barlow Condensed', sans-serif;
}
.hub-status-stat-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.hub-status-stat-val {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}
.hub-status-stat-val.mint { color: var(--mint); text-shadow: 0 0 10px rgba(0,229,195,0.4); }
.hub-status-stat-val.gold { color: var(--gold); text-shadow: 0 0 10px rgba(245,158,11,0.4); }
.hub-status-stat-val.violet { color: var(--violet-bright); text-shadow: 0 0 10px rgba(108,59,255,0.4); }
.hub-status-stat-val.coral { color: var(--coral); text-shadow: 0 0 10px rgba(255,61,107,0.4); }

/* HUD corner brackets */
.hub-status .hud-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--mint);
    border-style: solid;
    border-width: 0;
    opacity: 0.6;
}
.hub-status .hud-corner.tl { top: 8px; left: 8px;  border-top-width: 2px;    border-left-width: 2px; }
.hub-status .hud-corner.tr { top: 8px; right: 8px; border-top-width: 2px;    border-right-width: 2px; }
.hub-status .hud-corner.bl { bottom: 8px; left: 8px;  border-bottom-width: 2px; border-left-width: 2px; }
.hub-status .hud-corner.br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- ACTIVE MISSION STRIP ---------- */
.mission-strip {
    margin: 0 32px 36px;
    background: linear-gradient(120deg, rgba(108,59,255,0.18) 0%, rgba(108,59,255,0.04) 60%, rgba(255,61,107,0.12));
    border: 1px solid rgba(108,59,255,0.35);
    border-radius: 12px;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.mission-strip::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--coral), var(--violet-bright));
    box-shadow: 0 0 18px var(--violet-bright);
}
.mission-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--coral), var(--violet-bright));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255,61,107,0.4);
    flex-shrink: 0;
}
.mission-text-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--coral);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.mission-text-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.mission-text-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}
.mission-text-meta b { color: var(--mint); font-weight: 700; }
.mission-cta {
    background: var(--mint);
    color: var(--midnight);
    border: none;
    padding: 14px 26px;
    border-radius: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 0 22px rgba(0,229,195,0.4);
    white-space: nowrap;
}
.mission-cta:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0,229,195,0.6); }

/* ---------- CATEGORY TABS ---------- */
.hub-section {
    margin: 0 32px 48px;
}
.hub-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 20px;
    flex-wrap: wrap;
}
.hub-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hub-section-title::before {
    content: '';
    width: 5px; height: 24px;
    background: linear-gradient(180deg, var(--mint), var(--violet));
    border-radius: 2px;
    box-shadow: 0 0 14px rgba(0,229,195,0.5);
}
.hub-section-title small {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    letter-spacing: 2px;
    margin-left: 4px;
}

.hub-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 4px;
    border-radius: 8px;
}
.hub-tab {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.55);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 9px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}
.hub-tab:hover { color: white; }
.hub-tab.is-active {
    background: linear-gradient(135deg, var(--violet-bright), var(--violet));
    color: white;
    box-shadow: 0 0 16px rgba(108,59,255,0.4);
}

/* ---------- TRAINING TILE GRID (premium video tiles) ---------- */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.tr-tile {
    position: relative;
    background: linear-gradient(160deg, #15151e, #0a0a14);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
}
.tr-tile:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(0,229,195,0.45);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.6),
        0 0 0 1px rgba(0,229,195,0.2),
        0 0 40px rgba(0,229,195,0.15);
}
.tr-tile.is-locked { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.6); }
.tr-tile.is-locked:hover { transform: none; border-color: rgba(255,255,255,0.07); box-shadow: none; }

/* Tile cover area */
.tr-tile-cover {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}
.tr-tile-cover-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.tr-tile:hover .tr-tile-cover-bg { transform: scale(1.08); }
.tr-tile-cover::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(6,6,12,0.92));
}

/* HUD corner brackets on tile */
.tr-tile-hud {
    position: absolute;
    inset: 10px;
    pointer-events: none;
    z-index: 2;
}
.tr-tile-hud span {
    position: absolute;
    width: 14px; height: 14px;
    border-style: solid;
    border-color: rgba(0,229,195,0.7);
    border-width: 0;
    transition: opacity 0.2s;
}
.tr-tile-hud span.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.tr-tile-hud span.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.tr-tile-hud span.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.tr-tile-hud span.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.tr-tile:hover .tr-tile-hud span { border-color: var(--mint); box-shadow: 0 0 8px var(--mint); }

/* Top-left status pill on tile */
.tr-tile-status {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.tr-tile-status.live {
    background: rgba(255,61,107,0.85);
    color: white;
    box-shadow: 0 0 14px rgba(255,61,107,0.5);
}
.tr-tile-status.live::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: white;
    animation: pulse 1.4s ease-in-out infinite;
}
.tr-tile-status.new    { background: rgba(245,158,11,0.85); color: var(--midnight); }
.tr-tile-status.done   { background: rgba(0,229,195,0.85);  color: var(--midnight); }
.tr-tile-status.locked { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }

/* Top-right XP badge */
.tr-tile-xp {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 3;
    background: rgba(8, 8, 18, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,229,195,0.3);
    color: var(--mint);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 5px 11px;
    border-radius: 5px;
    text-shadow: 0 0 8px rgba(0,229,195,0.5);
}

/* Play button overlay */
.tr-tile-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 3;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(0,229,195,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 32px rgba(0,229,195,0.5);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.tr-tile-play::after {
    content: '';
    width: 0; height: 0;
    border-left: 18px solid var(--midnight);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 4px;
}
.tr-tile:hover .tr-tile-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Locked icon */
.tr-tile-lock {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 56px; height: 56px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Tile info area below cover */
.tr-tile-info {
    padding: 16px 18px 18px;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(6,6,12,0.95), #0a0a14);
}
.tr-tile-category {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--violet-bright);
    margin-bottom: 6px;
}
.tr-tile-category.mint { color: var(--mint); }
.tr-tile-category.gold { color: var(--gold); }
.tr-tile-category.coral { color: var(--coral); }
.tr-tile-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    color: white;
}
.tr-tile-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.45);
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 1px;
}
.tr-tile-foot .dot {
    width: 3px; height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

/* Tile mini progress bar */
.tr-tile-progress {
    height: 3px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
    position: relative;
}
.tr-tile-progress::after {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--p, 0%);
    background: linear-gradient(90deg, var(--mint), var(--violet-bright));
    box-shadow: 0 0 8px var(--mint);
}

/* ---------- HORIZONTAL SCROLLER (Featured Drops, Challenges) ---------- */
.hub-scroller {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 18px;
    scrollbar-color: var(--violet) transparent;
}
.hub-scroller::-webkit-scrollbar { height: 6px; }
.hub-scroller::-webkit-scrollbar-track { background: transparent; }
.hub-scroller::-webkit-scrollbar-thumb { background: rgba(108,59,255,0.4); border-radius: 3px; }
.hub-scroller .tr-tile { min-width: 290px; max-width: 290px; }

/* ---------- CHALLENGE / SQUAD CARDS (special variant) ---------- */
.challenge-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.challenge-card {
    background: linear-gradient(135deg, #1a0a3e 0%, #0a0a14 100%);
    border: 1px solid rgba(108,59,255,0.3);
    border-radius: 12px;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s;
    cursor: pointer;
}
.challenge-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,229,195,0.5);
    box-shadow: 0 16px 36px rgba(0,0,0,0.5);
}
.challenge-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(0,229,195,0.25), transparent 70%);
}
.challenge-card-tag {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--coral);
    background: rgba(255,61,107,0.12);
    border: 1px solid rgba(255,61,107,0.35);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.challenge-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-bottom: 12px;
}
.challenge-card-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 18px;
}
.challenge-card-meta b { color: var(--mint); }
.challenge-card-bar {
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 14px;
}
.challenge-card-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--p, 0%);
    background: linear-gradient(90deg, var(--mint), var(--gold));
    border-radius: 3px;
    box-shadow: 0 0 12px var(--mint);
}
.challenge-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.challenge-card-reward {
    color: var(--gold);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(245,158,11,0.4);
}

/* ---------- COACH MENTOR STRIP ---------- */
.mentor-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.mentor-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
    cursor: pointer;
}
.mentor-card:hover { background: rgba(108,59,255,0.08); border-color: rgba(108,59,255,0.3); }
.mentor-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--mint));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    color: var(--midnight);
    flex-shrink: 0;
}
.mentor-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}
.mentor-role {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .skillz-hub { padding-top: 80px; }
    .hub-hero { margin: 0 16px 24px; height: auto; min-height: 420px; }
    .hub-hero-content { grid-template-columns: 1fr; padding: 28px 22px; }
    .hub-status { min-width: 0; }
    .mission-strip { margin: 0 16px 28px; grid-template-columns: 1fr; text-align: left; padding: 18px 22px; }
    .hub-section { margin: 0 16px 36px; }
    .mission-cta { width: 100%; justify-content: center; }
    .hub-section-head { flex-direction: column; align-items: stretch; }
    .hub-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .hub-tab { white-space: nowrap; }
}
