/* Player Comparison Page Styles */
/* Note: Header, search, and footer styles are in the inline styles in player-compare.html */

/* Main Content - override inline style max-width */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Comparison Header */
.comparison-header {
    margin-bottom: 40px;
    text-align: center;
}

.comparison-header h1 {
    color: #cc0000;
    font-size: 32px;
    margin-bottom: 30px;
}

.player-selectors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.player-selector {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    position: relative;
}

.player-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.player-search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 16px;
    border-radius: 0;
}

.player-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.player-search-results.active {
    display: block;
}

.player-search-result {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.player-search-result:hover {
    background-color: #f8f8f8;
}

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

.player-search-result-name {
    font-weight: 600;
    color: #333;
}

.player-search-result-details {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

.vs-divider {
    font-size: 24px;
    font-weight: bold;
    color: #cc0000;
    padding: 0 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state h2 {
    color: #333;
    margin-bottom: 10px;
}

/* Comparison Container */
.comparison-container {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Player Profiles Section */
.player-profiles-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f8f8;
    border-radius: 0;
}

.player-profile {
    text-align: center;
}

.player-photo {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.player-name {
    font-size: 28px;
    color: #cc0000;
    margin-bottom: 15px;
}

.player-name a {
    color: #cc0000;
    text-decoration: none;
}

.player-name a:hover {
    text-decoration: underline;
}

.player-info {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* Comparison Section */
.comparison-section {
    margin-bottom: 50px;
}

.section-title {
    color: #cc0000;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #cc0000;
    padding-bottom: 10px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.stats-nav {
    display: flex;
    gap: 10px;
}

.stats-tab,
.stats-tab-totals {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    cursor: pointer;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.2s;
}

.stats-tab:hover,
.stats-tab-totals:hover {
    background-color: #f0f0f0;
}

.stats-tab.active,
.stats-tab-totals.active {
    background-color: #cc0000;
    color: white;
    border-color: #cc0000;
}

/* Comparison Tables */
.table-container {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 0;
    background: white;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 12px;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.comparison-table th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table th.player-header {
    background-color: #cc0000;
    color: white;
    font-size: 14px;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8f8f8;
}

.comparison-table tr:hover {
    background-color: #f0f0f0;
}

.comparison-table td:nth-child(2) {
    text-align: center;
    font-weight: bold;
    background-color: #f8f8f8;
}

.comparison-table th:nth-child(2) {
    text-align: center;
    background-color: #f8f8f8;
    color: #333;
}

/* Winner highlighting */
.comparison-table td.winner {
    font-weight: bold;
    color: #cc0000;
    background-color: #fff5f5;
}

.comparison-table td.tie {
    background-color: #fff9e6;
}

.no-data {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 30px;
}

/* Awards Comparison */
.awards-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.player-awards h3 {
    color: #cc0000;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.achievement-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.achievement-badge {
    background-color: #cc0000;
    color: white;
    padding: 8px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.achievement-badge.hall-of-fame {
    background-color: #fbbf24;
    color: #92400e;
    border: 2px solid #f59e0b;
}

.achievement-badge.all-star {
    background-color: #6b7280;
    color: white;
    border: 2px solid #4b5563;
}

.achievement-badge.mvp,
.achievement-badge.dpoy,
.achievement-badge.roy,
.achievement-badge.sixth-man,
.achievement-badge.mip,
.achievement-badge.all-nba,
.achievement-badge.all-defense,
.achievement-badge.all-rookie,
.achievement-badge.nba-champ,
.achievement-badge.finals-mvp {
    background-color: #f97316;
    color: white;
    border: 2px solid #ea580c;
}

/* Footer styles are in inline styles in player-compare.html */

/* Responsive Design */
@media (max-width: 768px) {
    .player-selectors {
        flex-direction: column;
        gap: 20px;
    }

    .vs-divider {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .player-profiles-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .stats-header {
        flex-direction: column;
        align-items: stretch;
    }

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

    .awards-comparison {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .comparison-table {
        font-size: 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
    }

    .table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

