/* ==========================================
   Buffalo eXtreme Player Profile Styles
   NHL-Inspired Design
   ========================================== */

.be-player-profile {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ==========================================
   Top Bar
   ========================================== */
.be-player-topbar {
    background: #ffffff;
    border-bottom: 3px solid #ab0f27;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.be-player-topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.be-player-logo {
    max-height: 120px;
    width: auto;
    height: auto;
}

.be-player-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #000;
    text-transform: uppercase;
}

.be-player-topbar-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 5px;
}

.be-player-number {
    font-size: 18px;
    font-weight: 700;
    color: #ab0f27;
}

.be-player-position-label {
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.be-player-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.be-player-topbar-right label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
}

.be-player-topbar-right select {
    padding: 10px 15px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    min-width: 200px;
}

.be-player-topbar-right select:hover {
    border-color: #ab0f27;
}

/* ==========================================
   Hero Section with Background Image
   ========================================== */
.be-player-hero {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding-top: 100px;
}

.be-player-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: flex-end;
    padding: 60px 40px 40px;
}

.be-player-hero-overlay::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.be-player-hero-content {
    position: relative;
    z-index: 2;
}

.be-player-hero-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Side: Headshot + Info */
.be-player-hero-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.be-player-headshot {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    object-fit: cover;
    background: #fff;
    position: relative;
    z-index: 3;
}

.be-player-headshot-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    background: linear-gradient(135deg, #333, #666);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.be-player-jersey-large {
    font-size: 80px;
    font-weight: 900;
    color: #ab0f27;
}

.be-player-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.be-player-info-item {
    display: flex;
    flex-direction: column;
}

.be-player-info-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.be-player-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* Right Side: Season Stats */
.be-player-hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.be-player-stats-heading {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 30px 0;
    letter-spacing: 2px;
}

.be-player-season-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.be-stat-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.be-stat-value {
    font-size: 48px;
    font-weight: 900;
    color: #ab0f27;
    line-height: 1;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    border-radius: 12px;
    min-width: 100px;
    display: inline-block;
}

.be-stat-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 1px;
}

.be-player-detailed-stats {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
}

.be-player-detailed-stats tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.be-player-detailed-stats td {
    padding: 12px 0;
    color: #ffffff;
    font-size: 16px;
}

.be-player-detailed-stats td:first-child {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.be-player-detailed-stats td:last-child {
    text-align: right;
    font-weight: 700;
}

/* ==========================================
   Sections (Last 5, Stats, Bio)
   ========================================== */
.be-player-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.be-player-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 30px 0;
    color: #000;
    letter-spacing: 2px;
}

/* Table Styles */
.be-table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.be-stats-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.be-stats-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #ab0f27;
}

.be-stats-table th {
    padding: 16px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.be-stats-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.be-stats-table tbody tr:hover {
    background: #f8f9fa;
}

.be-stats-table td {
    padding: 14px 12px;
    font-size: 14px;
    color: #333;
}

.be-stats-table td:first-child {
    font-weight: 600;
}

.be-result-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.be-result-win {
    background: #d4edda;
    color: #155724;
}

.be-result-loss {
    background: #f8d7da;
    color: #721c24;
}

/* Tabs */
.be-stats-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.be-stats-tab {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.be-stats-tab:hover {
    color: #ab0f27;
}

.be-stats-tab.active {
    color: #ab0f27;
    border-bottom-color: #ab0f27;
}

.be-stats-tab-content {
    display: none;
}

.be-stats-tab-content.active {
    display: block;
}

/* Bio */
.be-player-bio-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 900px;
}

.be-player-bio-content p {
    margin-bottom: 20px;
}

/* ==========================================
   Responsive Design
   ========================================== */
/* Tablet landscape - adjust topbar layout */
@media (min-width: 1025px) and (max-width: 2000px) {
    .be-player-topbar {
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    
    .be-player-topbar-left {
        gap: 15px;
    }
    
    .be-player-topbar-right {
        width: auto;
    }
}

@media (max-width: 1024px) {
    .be-player-hero {
        min-height: 600px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 0;
    }
    
    .be-player-hero-overlay {
        position: relative;
        padding: 40px 20px;
    }
    
    .be-player-hero-overlay::before {
        background: rgba(0, 0, 0, 0.75);
        height: 100%;
    }
    
    .be-player-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .be-player-hero-left {
        align-items: center;
        text-align: center;
    }
    
    .be-player-info-grid {
        max-width: 400px;
    }
    
    .be-player-season-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .be-player-topbar {
        position: relative;
        z-index: 1000;
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .be-player-topbar-left {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 10px;
    }
    
    .be-player-topbar-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .be-player-topbar-meta {
        justify-content: center;
    }
    
    .be-player-logo {
        max-height: 80px;
    }
    
    .be-player-topbar-right {
        width: 100%;
    }
    
    .be-player-topbar-right select {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
    
    /* Mobile Hero Layout */
    .be-player-hero {
        min-height: auto;
        position: relative;
        padding: 0;
    }
    
    .be-player-hero-overlay {
        position: relative;
        background: transparent;
        padding: 0;
    }
    
    .be-player-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    /* Mobile: Show name/logo/number above headshot */
    .be-player-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 250px;
        background-size: cover;
        background-position: center;
        z-index: 1;
    }
    
    .be-player-hero-left {
        position: relative;
        z-index: 2;
        background: rgba(0, 0, 0, 0.85);
        width: 100%;
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 180px;
    }
    
    .be-player-headshot,
    .be-player-headshot-placeholder {
        width: 180px;
        height: 180px;
        margin-top: -120px;
    }
    
    .be-player-info-grid {
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .be-player-hero-right {
        width: 100%;
        background: rgba(0, 0, 0, 0.85);
        padding: 30px 20px;
    }
    
    .be-player-stats-heading {
        font-size: 20px;
    }
    
    .be-player-name {
        font-size: 24px;
    }
    
    .be-player-hero-overlay {
        padding: 40px 20px 30px;
    }
    
    .be-player-section {
        padding: 40px 20px;
    }
    
    .be-player-section h2 {
        font-size: 24px;
    }
    
    .be-player-headshot,
    .be-player-headshot-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .be-player-season-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .be-stat-value {
        font-size: 36px;
    }
    
    .be-stats-table {
        font-size: 12px;
    }
    
    .be-stats-table th,
    .be-stats-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .be-player-info-grid {
        grid-template-columns: 1fr;
    }
    
    .be-player-season-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

