/* Player page specific styles */

/* Navigation */
.main-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-nav a {
    color: #aaa;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 25px;
    background: #0f3460;
    transition: all 0.3s;
    font-weight: 600;
}

.main-nav a:hover {
    background: #1a4a7a;
    color: #fff;
}

.main-nav a.active {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #1a1a2e;
}

/* Search Section */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#player-search {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    background: #0f3460;
    border: 2px solid #00d4ff;
    border-radius: 30px;
    color: #fff;
    outline: none;
}

#player-search:focus {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

#player-search::placeholder {
    color: #777;
}

/* Search Results Dropdown */
#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #16213e;
    border: 1px solid #00d4ff;
    border-radius: 8px;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #0f3460;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #1e2a47;
}

.search-result-item img.result-headshot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #0f3460;
}

.search-result-item img.result-team-logo {
    width: 60px;
    height: 60px;
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.result-team {
    color: #888;
    font-size: 0.85rem;
}

.result-stats {
    color: #00d4ff;
    font-size: 0.8rem;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #888;
}

/* Player Header */
.player-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.player-headshot {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    border: 4px solid #00d4ff;
    object-fit: cover;
    background: #0f3460;
}

.player-info h2 {
    margin-bottom: 10px;
}

.player-team {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.team-logo {
    width: 40px;
    height: 40px;
}

#player-team-name {
    font-size: 1.2rem;
    color: #aaa;
}

.player-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.player-stats .stat {
    background: #0f3460;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
}

.player-stats .stat strong {
    color: #00d4ff;
}

/* Filter Section */
.filter-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #0f3460;
    border-radius: 8px;
}

.filter-section h3 {
    margin-bottom: 15px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    width: auto;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #16213e;
    color: #aaa;
    border: 2px solid #16213e;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0;
}

.filter-tab:hover {
    background: #1a4a7a;
    color: #fff;
    transform: none;
}

.filter-tab.active {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #1a1a2e;
    border-color: #00d4ff;
}

.filter-content {
    margin-top: 15px;
}

.filter-content label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
}

.filter-content select {
    max-width: 400px;
}

/* Display Options */
.display-options {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.option-group {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
}

/* Heatmap Container */
#player-heatmap-container h3 {
    margin-bottom: 15px;
}

.filter-label {
    margin-top: 15px;
    text-align: center;
    color: #00d4ff;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .player-header {
        flex-direction: column;
        text-align: center;
    }

    .player-team {
        justify-content: center;
    }

    .player-stats {
        justify-content: center;
    }

    .main-nav {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav a {
        text-align: center;
    }
}
