/**
 * Trikot-Darstellung CSS
 */

.ts-jersey-icon {
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.ts-jersey-preview {
    width: 60px;
    height: 80px;
    position: relative;
    display: inline-block;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.ts-jersey-preview .ts-jersey-shirt {
    width: 100%;
    height: 50%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px 8px 0 0;
}

.ts-jersey-preview .ts-jersey-shorts {
    width: 60%;
    height: 35%;
    position: absolute;
    top: 50%;
    left: 20%;
    border-radius: 0 0 4px 4px;
}

.ts-jersey-preview .ts-jersey-sock {
    width: 15%;
    height: 15%;
    position: absolute;
    bottom: 0;
    border-radius: 4px;
}

.ts-jersey-preview .ts-jersey-sock-left {
    left: 25%;
}

.ts-jersey-preview .ts-jersey-sock-right {
    right: 25%;
}

/* Trikot-Anzeige in Spiel-Listen */
.ts-game-jersey {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.ts-game-jersey .ts-jersey-preview {
    width: 40px;
    height: 50px;
    border-width: 1px;
}

/* Farbkonflikt-Warnung */
.ts-jersey-conflict {
    display: inline-block;
    padding: 4px 8px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.ts-jersey-conflict::before {
    content: "⚠️ ";
}

/* Trikot-Auswahl in Spielverwaltung */
.ts-jersey-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.ts-jersey-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ts-jersey-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.ts-jersey-option.selected {
    border-color: #10b981;
    background: #ecfdf5;
}

.ts-jersey-option input[type="radio"] {
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .ts-jersey-preview {
        width: 40px;
        height: 50px;
    }
    
    .ts-game-jersey .ts-jersey-preview {
        width: 30px;
        height: 40px;
    }
}

