/*
views/mobile/useruebersicht/index.php
*/

/* ================= MOBILE USER ================= */
.ts-mobile-user {
    max-width: 420px;
    margin: 0 auto;
}

/* Avatar */
.ts-user-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid #ddd;
    object-fit: cover;
}

.ts-user-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.ts-user-team {
    font-size: 0.9rem;
    color: #666;
}

/* Stat Boxes */
.ts-stat-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 10px;
}

.ts-stat-value {
    font-size: 1.4rem;
    font-weight: bold;
}

.ts-stat-label {
    font-size: 0.75rem;
    color: #777;
}

/* Detail Stats */
.ts-user-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 10px;
}

.ts-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.ts-detail-row:last-child {
    border-bottom: none;
}

.ts-detail-row b {
    font-weight: 600;
}

.ts-detail-row span {
    color: #666;
}

/* Wichtig: farbliche Bedeutung */
.ts-detail-row:nth-child(1) b {
    color: #28a745; /* Exakt → grün */
}

.ts-detail-row:nth-child(2) b {
    color: #007bff; /* Diff → blau */
}

.ts-detail-row:nth-child(3) b {
    color: #ffc107; /* Tendenz → gelb */
}

.ts-rank b {
    color: #28a745;
}

/* Verlauf */
.ts-history-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.ts-history-placeholder {
    font-size: 0.8rem;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.ts-user-switch {
    max-width: 100%;
}

.ts-user-switch .form-select {
    border-radius: 10px;
}

.ts-section {
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.ts-section-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ts-stat-box--matchday {
    border-left: 4px solid #007bff;
}

.ts-stat-box--total {
    border-left: 4px solid #28a745;
}

.ts-stat-box--liga {
    border-left: 4px solid #17a2b8;
}

.ts-stat-box--pokal {
    border-left: 4px solid #ffc107;
}

.ts-achievements-title {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
}

.ts-achievements-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ts-badge-medal,
.ts-badge-win,
.ts-badge-pokal {
    background: #f1f3f5;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.ts-badge-win {
    background: #e6f4ea;
    color: #28a745;
    font-weight: 600;
}

.ts-badge-pokal {
    background: #fff3cd;
    color: #856404;
}

#sparkline {
    width: 100%;
    height: 60px;
}