/* ZL Logen-Buch v2 — Frontend CSS — Steam-Style für Zocker-Loge */

.zlb-wrap { font-family: inherit; color: #c6d4df; max-width: 100%; }
.zlb-wrap *,
.zlb-wrap *::before,
.zlb-wrap *::after { box-sizing: border-box; }

/* ── Stats-Bar ────────────────────────────────────────────────── */
.zlb-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.zlb-sb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 20px;
    flex: 1;
    min-width: 110px;
    border-right: 1px solid #2a475e;
    transition: background .15s;
}
.zlb-sb-item:last-child { border-right: 0; }
.zlb-sb-item:hover { background: rgba(255,255,255,.03); }
.zlb-sb-icon { font-size: 16px; margin-bottom: 3px; }
.zlb-sb-val  { font-size: 20px; font-weight: 700; color: #e1e1e1; line-height: 1; }
.zlb-sb-lbl  { font-size: 10px; color: #556772; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.zlb-online-dot {
    display: inline-block; width: 7px; height: 7px;
    background: #57cbde; border-radius: 50%;
    animation: zlb-blink 2s ease-in-out infinite;
}
@keyframes zlb-blink { 0%,100%{opacity:1}50%{opacity:.4} }

/* ── Header ───────────────────────────────────────────────────── */
.zlb-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 16px 0 10px; gap: 12px; flex-wrap: wrap;
}
.zlb-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #66c0f4 !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.zlb-search {
    background: #32353c;
    border: 1px solid #2a475e;
    border-radius: 2px;
    padding: 8px 12px;
    color: #c6d4df;
    font-size: 13px;
    width: 240px;
    transition: border-color .2s;
    outline: none;
}
.zlb-search:focus { border-color: #1a9fff; }
.zlb-search::placeholder { color: #4f5d67; }

/* ── Tabs ─────────────────────────────────────────────────────── */
.zlb-tabs {
    display: flex; flex-wrap: wrap; gap: 2px;
    padding: 8px 8px 0;
    border-bottom: 0;
}
.zlb-tab {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    color: #4f5d67;
    cursor: pointer;
    border-radius: 2px 2px 0 0;
    transition: all .15s;
}
.zlb-tab:hover { color: #c6d4df; background: rgba(255,255,255,.04); }
.zlb-tab.active {
    color: #fff;
    background: rgba(255,255,255,.05);
    border-color: #2a475e #2a475e var(--tab-clr, #1a9fff);
}

/* ── Panels ───────────────────────────────────────────────────── */
.zlb-panels { padding: 20px !important; }
.zlb-panel { display: none; }
.zlb-panel.active { display: block; animation: zlb-in .2s ease; }
@keyframes zlb-in { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:none} }

.zlb-panel-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.zlb-panel-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.zlb-panel-sub   { font-size: 12px; }

.zlb-empty { padding: 40px 20px; text-align: center; border: 1px dashed #2a475e; border-radius: 2px; }

/* ── Table ────────────────────────────────────────────────────── */
.zlb-table-scroll { overflow-x: auto; border-radius: 2px; border: 1px solid #2a475e; }
.zlb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.zlb-table thead tr { background: rgba(255,255,255,.04); }
.zlb-table th {
    text-align: left; padding: 10px 12px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: #556772; border-bottom: 1px solid #2a475e; white-space: nowrap;
}
.zlb-table tbody tr { border-bottom: 1px solid rgba(255,255,255,.04); transition: background .12s; }
.zlb-table tbody tr:last-child { border-bottom: 0; }
.zlb-table tbody tr:hover { background: rgba(102,192,244,.05); }
.zlb-table td { padding: 10px 12px; vertical-align: middle; }

.zlb-row--me { background: rgba(26,159,255,.08) !important; border-left: 2px solid #1a9fff !important; }
.zlb-gold   { background: rgba(245,158,11,.06) !important; }
.zlb-silver { background: rgba(148,163,184,.04) !important; }
.zlb-bronze { background: rgba(180,120,60,.04)  !important; }

/* Rank */
.zlb-trophy  { font-size: 20px; display: block; text-align: center; }
.zlb-ranknum { font-size: 13px; font-weight: 700; color: #4f5d67; }

/* User cell */
.zlb-user-cell { display: flex; align-items: center; gap: 10px; }
.zlb-av-wrap { flex-shrink: 0; border-radius: 2px; overflow: hidden; }
.zlb-av { width: 40px; height: 40px; object-fit: cover; border-radius: 2px; display: block; border: 2px solid #2a475e; }
.zlb-name { font-weight: 600; color: #c6d4df; font-size: 13px; }
.zlb-team-tag { color: #1a9fff; margin-right: 2px; }
.zlb-me-tag { color: #66c0f4; font-size: 10px; margin-left: 4px; }
.zlb-join { font-size: 11px; margin-top: 2px; }

/* Avatar frames — same as theme */
.zlb-av-wrap.hf-blue   .zlb-av { border-color: #1a9fff; box-shadow: 0 0 8px rgba(26,159,255,.6); }
.zlb-av-wrap.hf-gold   .zlb-av { border-color: #ffd700; box-shadow: 0 0 8px rgba(255,215,0,.6); }
.zlb-av-wrap.hf-animated .zlb-av {
    border-color: #66c0f4;
    animation: hf-pulse 2s ease-in-out infinite alternate;
}
@keyframes hf-pulse {
    from { box-shadow: 0 0 6px rgba(102,192,244,.4); border-color: #1a9fff; }
    to   { box-shadow: 0 0 14px rgba(102,192,244,.9); border-color: #66c0f4; }
}
.zlb-av-wrap.hf-rainbow {
    background: linear-gradient(#171a21,#171a21) padding-box,
                linear-gradient(135deg,#ff0000,#ff7700,#ffff00,#00ff00,#0000ff,#8b00ff,#ff0000) border-box;
    border: 2px solid transparent;
    border-radius: 2px;
    background-size: 200% 200%;
    animation: hf-rainbow 3s linear infinite;
}
.zlb-av-wrap.hf-rainbow .zlb-av { border: none; }
@keyframes hf-rainbow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* Badge */
.zlb-badge { font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Value */
.zlb-val { font-size: 15px; font-weight: 700; }

/* Quick stats */
.zlb-quick { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; color: #556772; }
.zlb-quick span { white-space: nowrap; }

/* Status */
.zlb-status { font-size: 11px; white-space: nowrap; }
.zlb-status.online  { color: #57cbde; }
.zlb-status.offline { color: #4f5d67; }

/* ── My Stats Box ─────────────────────────────────────────────── */
.zlb-my-box { padding: 16px 20px !important; border-top: 2px solid #1a9fff !important; }
.zlb-my-header { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #2a475e; }
.zlb-my-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.zlb-my-item {
    background: rgba(255,255,255,.03);
    border: 1px solid #2a475e;
    border-radius: 2px;
    padding: 12px 10px;
    text-align: center;
    transition: background .15s;
}
.zlb-my-item:hover { background: rgba(255,255,255,.06); }
.zlb-my-ico { font-size: 18px; margin-bottom: 4px; }
.zlb-my-val { font-size: 18px; font-weight: 700; color: #c6d4df; line-height: 1; }
.zlb-my-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.zlb-my-progress { margin-top: 10px; }
.zlb-prog-label { font-size: 12px; margin-bottom: 6px; }

/* ── Mini Widget ──────────────────────────────────────────────── */
.zlb-mini { padding: 0 !important; overflow: hidden; }
.zlb-mini-head {
    padding: 10px 14px;
    border-bottom: 1px solid #2a475e;
    background: rgba(255,255,255,.03);
}
.zlb-mini-row {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background .12s;
}
.zlb-mini-row:last-child { border-bottom: 0; }
.zlb-mini-row:hover { background: rgba(102,192,244,.05); }
.zlb-mini-rank { font-size: 12px; font-weight: 700; min-width: 28px; }
.zlb-mini-av   { width: 28px; height: 28px; border-radius: 2px; object-fit: cover; border: 1px solid #2a475e; }
.zlb-mini-name { flex: 1; font-size: 12px; color: #c6d4df; }
.zlb-mini-val  { font-size: 12px; font-weight: 700; }
.zlb-online-dot-sm { display: inline-block; width: 6px; height: 6px; background: #57cbde; border-radius: 50%; margin-left: 4px; vertical-align: middle; }

/* ── Profile Card ─────────────────────────────────────────────── */
.zlb-profile-card { }
.zlb-pc-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.zlb-pc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin-bottom: 16px;
}
.zlb-pc-item {
    background: rgba(255,255,255,.03);
    border: 1px solid #2a475e;
    border-radius: 2px; padding: 12px;
    text-align: center;
}
.zlb-pc-progress { margin-bottom: 16px; }
.zlb-pc-ranks    { }
.zlb-pc-ranks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .zlb-stats-bar { display: grid; grid-template-columns: repeat(3,1fr); }
    .zlb-table th.col-stats, .zlb-table td.col-stats { display: none; }
    .zlb-table th.col-status, .zlb-table td.col-status { display: none; }
    .zlb-my-grid { grid-template-columns: repeat(3,1fr); }
    .zlb-pc-grid { grid-template-columns: repeat(2,1fr); }
    .zlb-search { width: 100%; }
    .zlb-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .zlb-stats-bar { grid-template-columns: repeat(2,1fr); }
    .zlb-my-grid { grid-template-columns: repeat(2,1fr); }
    .zlb-pc-grid { grid-template-columns: repeat(2,1fr); }
    .zlb-tab { font-size: 11px; padding: 7px 10px; }
    .zlb-table th.col-badge, .zlb-table td.col-badge { display: none; }
}

/* ── Plugin-Daten-Blöcke in Profilkarte ──────────────────────── */
.zlb-pc-plugins { border-top: 1px solid #2a475e; padding-top: 14px; }

.zlb-pc-plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.zlb-pc-plugin-block {
    background: rgba(255,255,255,.03);
    border: 1px solid #2a475e;
    border-radius: 2px;
    padding: 12px;
    transition: border-color .15s;
}
.zlb-pc-plugin-block:hover { border-color: rgba(26,159,255,.35); }

.zlb-pc-pb-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.zlb-pc-pb-icon { font-size: 16px; }
.zlb-pc-pb-head strong { font-size: 12px; color: #c6d4df; text-transform: uppercase; letter-spacing: .04em; }

.zlb-pc-pb-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,.03);
}
.zlb-pc-pb-row:last-child { border-bottom: 0; }
.zlb-pc-pb-row span:last-child { color: #e1e1e1; font-weight: 600; }

@media (max-width: 600px) {
    .zlb-pc-plugin-grid { grid-template-columns: 1fr 1fr; }
}
