/* Fixture Team Player List Styles */

/* Base Fixture Row Styling - moved from style.css */
.Fixture:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgb(0 0 0 / 10%);
}

/* Disable hover effect for stats header row */
.Fixture.stats-header-row:hover {
    transform: none;
    box-shadow: none;
}

/* Stats section for row layout */
.teamlist_stats {
    margin: 0;
    padding: 0;
    border: none;
    align-self: flex-start;
    margin-top: 4px;
}

.teamlist_stats ul {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.teamlist_stats li {
    text-align: center;
}



/* Total Row */
.Fixture.total {
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    font-weight: 700;
}

/* Team Header */
.team-section-title {
    margin: 0;
    color: var(--club-color-0);
    font-size: 18px;
    font-weight: 600;
}

/* Stats Header Row */
.stats-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    border: none !important;
    margin-bottom: 8px;
    margin-left: 40px;
    padding: 0 !important;
    min-height: unset !important;
}

.stats-header-row .teamlist_stats {
    background-color: #f3f4f6;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 0;
    border: none;
}

.stats-header-row .stats-list {
    gap: 12px;
    padding: 0;
    margin: 0;
}

.stats-header-badge {
    color: var(--club-color-0);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    text-align: center;
}

/* Player Rows - simple row-based layout */
.Fixture {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    padding: 5px;
    margin-bottom: 8px;
    margin-left: 40px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    position: relative;
    min-height: 60px;
}

.player-number-outside {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    background: #f3f4f6;
    color: #374151;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-name-link {
    text-decoration: none;
}

/* Consolidated player name styles - handles both regular and h2 elements */
.teamlist_name .player-name,
.teamlist_name a .player-name,
.teamlist_name a h2.player-name {
    color: var(--club-color-0);
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: inline;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 0.6;
    overflow: visible;
    text-overflow: unset;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

/* Row-based teamlist_name styling */
.teamlist_name {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-bottom: 0;
    margin-right: 12px;
}

.teamlist_name a {
    text-decoration: none;
    color: inherit;
}

/* Removed - consolidated into above rule */

.player-position {
    color: #6b7280;
    font-size: 16px;
    margin-top: 2px;
    font-weight: 700;
}

/* Stats Section */
.stats-list {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.stat-item {
    min-width: 30px;
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* Zero values styling - make them white (invisible) */
.stat-item.zero-value .stat-value {
    color: #fff;
}

/* Totals Row */
.totals-section {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-top: 16px;
    margin-left: 40px;
}

.totals-info {
    padding: 12px 16px;
}

.totals-title {
    margin: 0 !important;
    color: var(--club-color-0);
    font-size: 16px;
    font-weight: 600;
    padding: 0 !important;
}

.totals-subtitle {
    color: #6b7280;
    font-size: 14px;
}

.totals-list {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 8px 12px;
    align-items: center;
}

.total-value {
    font-size: 18px;
    font-weight: 700;
    margin: 0;

}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Mobile header adjustments */
    .team-section-title {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }
    
    .stats-header-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 4px !important;
        margin-left: 32px !important;
        padding: 0 !important;
        background-color: transparent !important;
    }
    
    .stats-header-row .teamlist_stats {
        background-color: #f3f4f6 !important;
        border-radius: 4px !important;
        padding: 6px 8px !important;
        margin: 0 !important;
    }
    
    .stats-header-row .stats-list {
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .stats-header-badge {
        font-size: 9px !important;
        color: var(--club-color-0) !important;
    }
    
    /* Mobile player row adjustments */
    .Fixture {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        padding: 4px 6px !important;
        margin-bottom: 2px !important;
        margin-left: 32px !important;
        min-height: 40px !important;
    }
    
    .player-number-outside {
        position: absolute !important;
        left: -32px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 10px !important;
        padding: 2px 4px !important;
        min-width: 20px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .teamlist_name {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        margin-right: 8px !important;
    }
    
    .teamlist_stats {
        align-self: flex-start !important;
        margin-top: 2px !important;
    }
    
    /* Mobile player name styles - more specific to override desktop */
    .teamlist_name .player-name,
    .teamlist_name a .player-name,
    .teamlist_name a h2.player-name {
        font-size: 13px !important;
        line-height: 0.6 !important;
        margin: 0 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
    }
    
    .player-position {
        font-size: 9px !important;
        line-height: 1 !important;
        margin-top: 1px !important;
        font-weight: 700 !important;
    }
    
    .stats-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 0 !important;
        align-items: center !important;
        list-style: none !important;
        margin: 0 !important;
    }
    
    .stat-item {
        min-width: 24px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .stat-value {
        font-size: 12px !important;
        font-weight: 700 !important;
    }
    
    /* Zero values styling for mobile */
    .stat-item.zero-value .stat-value {
        color: #fff !important;
    }
    
    /* Mobile totals adjustments */
    .totals-section {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 6px !important;
        padding: 4px 6px !important;
        margin-left: 32px !important;
    }
    
    .totals-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 2px 4px !important;
        align-items: center !important;
    }
    
    .totals-info {
        padding: 4px 6px !important;
    }
    
    .totals-title {
        font-size: 12px !important;
        margin: 0 0 1px 0 !important;
    }
    
    .totals-subtitle {
        font-size: 10px !important;
        margin: 0 !important;
    }
} 