/* Player View Modern Design */

/* Player Selection Form */
.player-selection-container {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 20px;
    font-family: 'Roboto', Arial, sans-serif;
    color: #333;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.player-selection-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.player-selection-form .form-group {
    flex: 1;
    min-width: 250px;
}

.player-selection-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.player-selection-form select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    font-size: 16px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.player-selection-form select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.player-selection-form select:hover {
    border-color: #bbb;
}

.player-view-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Roboto', Arial, sans-serif;
    color: #333;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Player Header Section */
.player-header {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.player-photo {
    flex: 0 0 200px;
    margin-right: 30px;
    margin-bottom: 20px;
}

.player-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.player-no-photo {
    width: 200px;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-no-photo i {
    font-size: 80px;
    color: #ccc;
}

.player-info {
    flex: 1;
    min-width: 300px;
}

.player-info h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
}

.player-info div {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
}

.player-info strong {
    font-weight: 600;
    color: #555;
    margin-right: 5px;
}

.player-team a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #3498db;
    transition: color 0.2s;
}

.player-team a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.team-logo-small {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
}

/* Player Stats Section */
.player-stats-container {
    margin-top: 30px;
}

.player-stats-container h2 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.player-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-box {
    flex: 0 0 150px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Basketball Statistics Styles */
.basketball-player-tabs {
    margin-top: 30px;
}

.basketball-player-tabs__content {
    padding-top: 1px;
}

.basketball-player-matches {
    margin-top: 30px;
}

.basketball-player-matches__scroll {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.basketball-player-matches__scroll:focus-visible {
    outline: 3px solid rgba(52, 152, 219, 0.35);
    outline-offset: 2px;
}

.basketball-player-matches__table.table {
    min-width: 620px;
    margin-bottom: 0;
}

.basketball-player-matches__table.table th,
.basketball-player-matches__table.table td {
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.basketball-player-matches__table.table .basketball-player-matches__match-heading,
.basketball-player-matches__table.table .basketball-player-matches__match {
    min-width: 220px;
    text-align: left;
    white-space: normal;
}

.basketball-player-matches__table abbr[title] {
    border-bottom: 0;
    cursor: help;
    text-decoration: none;
}

.basketball-player-matches__date {
    display: block;
    margin-top: 3px;
    color: #7f8c8d;
    font-size: 12px;
    font-weight: 400;
}

.basketball-player-matches__empty {
    margin-top: 30px;
}

.player-stats-summary {
    margin-top: 20px;
}

.player-stats-summary h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.player-stats-summary .table {
    width: 100%;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.player-stats-summary .table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    width: 50%;
}

.player-stats-summary .table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: 500;
}

.player-stats-summary .table tr:last-child th,
.player-stats-summary .table tr:last-child td {
    border-bottom: none;
}

.player-stats-summary .table tr:hover {
    background-color: #f9f9f9;
}

.player-stats-summary .row {
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .player-header {
        flex-direction: column;
    }

    .player-photo {
        margin-right: 0;
        margin-bottom: 20px;
        align-self: center;
    }

    .player-info h1 {
        text-align: center;
    }

    .stat-box {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .stat-box {
        flex: 0 0 100%;
    }
}
