/* ═══════════════════════════════════════════════════
   ADMIN TIMELINE — Player Activity Stream
   ═══════════════════════════════════════════════════ */

.tl-wrap {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ─── Timeline Feed ─── */
.tl-feed {
    flex: 1;
    min-width: 400px;
    position: relative;
    padding-right: 32px;
}
.tl-feed::before {
    content: '';
    position: absolute;
    top: 16px;
    bottom: 16px;
    right: 15px;
    width: 2px;
    background: linear-gradient(to bottom,
        rgba(var(--bs-primary-rgb), 0) 0%,
        rgba(var(--bs-primary-rgb), .3) 5%,
        rgba(var(--bs-primary-rgb), .3) 95%,
        rgba(var(--bs-primary-rgb), 0) 100%);
}

.tl-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
    animation: tl-fade .3s ease;
}
@keyframes tl-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tl-item-icon {
    position: absolute;
    right: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    background: var(--bs-body-bg);
    border: 2px solid var(--bs-border-color);
    z-index: 2;
    transition: all .2s;
}
.tl-item:hover .tl-item-icon {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .1);
}

.tl-item-icon.primary { border-color: #7367F0; color: #7367F0; background: rgba(115,103,240,.08); }
.tl-item-icon.success { border-color: #28c76f; color: #28c76f; background: rgba(40,199,111,.08); }
.tl-item-icon.danger  { border-color: #ea5455; color: #ea5455; background: rgba(234,84,85,.08); }
.tl-item-icon.warning { border-color: #ff9f43; color: #ff9f43; background: rgba(255,159,67,.08); }
.tl-item-icon.info    { border-color: #00cfe8; color: #00cfe8; background: rgba(0,207,232,.08); }
.tl-item-icon.secondary { border-color: #8f93a3; color: #8f93a3; background: rgba(143,147,163,.08); }

.tl-item-card {
    flex: 1;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 12px 16px;
    margin-right: 22px;
    transition: all .2s;
}
.tl-item:hover .tl-item-card {
    border-color: rgba(var(--bs-primary-rgb), .3);
    box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), .08);
    transform: translateX(-2px);
}

.tl-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.tl-item-title {
    font-weight: 700;
    font-size: .88rem;
    color: var(--bs-heading-color);
    display: flex;
    align-items: center;
    gap: 6px;
}
.tl-item-title .tl-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 700;
}
.tl-badge.primary { background: rgba(115,103,240,.15); color: #7367F0; }
.tl-badge.success { background: rgba(40,199,111,.15); color: #28c76f; }
.tl-badge.danger  { background: rgba(234,84,85,.15); color: #ea5455; }
.tl-badge.warning { background: rgba(255,159,67,.15); color: #ff9f43; }
.tl-badge.info    { background: rgba(0,207,232,.15); color: #00cfe8; }
.tl-badge.secondary { background: rgba(143,147,163,.15); color: #8f93a3; }

.tl-item-time {
    font-size: .7rem;
    color: var(--bs-secondary-color);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.tl-item-time i { font-size: .75rem; margin-inline-end: 2px; }

.tl-item-body {
    font-size: .82rem;
    color: var(--bs-secondary-color);
    line-height: 1.6;
}
.tl-item-body strong { color: var(--bs-body-color); }
.tl-item-body .tl-meta {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-inline-end: 8px;
    font-size: .75rem;
}
.tl-item-body .tl-meta i { font-size: .8rem; opacity: .7; }

/* ─── Filter Bar ─── */
.tl-filters {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.tl-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-secondary-color);
    cursor: pointer;
    transition: all .15s;
}
.tl-filter:hover { border-color: rgba(var(--bs-primary-rgb), .3); }
.tl-filter.active {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}
.tl-filter .count {
    background: rgba(255,255,255,.25);
    padding: 0 5px;
    border-radius: 50px;
    font-size: .65rem;
    min-width: 18px;
    text-align: center;
}
.tl-filter:not(.active) .count {
    background: rgba(0,0,0,.06);
}
[data-bs-theme="dark"] .tl-filter:not(.active) .count {
    background: rgba(255,255,255,.08);
}

/* ─── Empty State ─── */
.tl-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--bs-secondary-color);
}
.tl-empty i {
    font-size: 3rem;
    opacity: .3;
    display: block;
    margin-bottom: 12px;
}

/* ─── Load More ─── */
.tl-more {
    text-align: center;
    padding: 16px;
}
.tl-more .btn {
    font-weight: 600;
    border-radius: 50px;
    padding: 8px 24px;
}

/* ─── Sidebar Stats ─── */
.tl-stats {
    width: 260px;
    flex-shrink: 0;
}
.tl-stat-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.tl-stat-label {
    font-size: .72rem;
    color: var(--bs-secondary-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tl-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--bs-heading-color);
    line-height: 1;
}
.tl-stat-sub {
    font-size: .68rem;
    color: var(--bs-secondary-color);
    margin-top: 4px;
}

/* ─── Loading Skeleton ─── */
.tl-skeleton {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    margin-right: 22px;
}
.tl-skeleton-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,.05);
    animation: tl-sk 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
.tl-skeleton-body {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0,0,0,.02);
    border-radius: 12px;
    animation: tl-sk 1.4s ease-in-out infinite;
    height: 64px;
}
@keyframes tl-sk {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* ─── Mobile ─── */
@media (max-width: 767px) {
    .tl-wrap { flex-direction: column; }
    .tl-stats { width: 100%; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
    .tl-stat-card { min-width: 130px; margin-bottom: 0; }
    .tl-feed { min-width: auto; }
    .tl-item-card { padding: 10px 12px; margin-right: 18px; }
    .tl-item-icon { width: 26px; height: 26px; font-size: .8rem; }
    .tl-feed::before { right: 12px; }
    .tl-item-time { font-size: .65rem; }
}
