@charset "UTF-8";

/* ========================================================================================== TEAM PAGE STYLES

   Each team page supplies its own values in a small :root block in the HTML.

   Example:

   :root {
       --team-primary: #002244;
       --team-secondary: #C60C30;
       --team-accent: #B0B7BC;
   } */


/* ========================================================================================== TEAM COLOR BOXES */

.team-color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .2);
    margin: 0 3px;
}

.team-color-box.primary {
    background-color: var(--team-primary);
}

.team-color-box.secondary {
    background-color: var(--team-secondary);
}

.team-color-box.accent {
    background-color: var(--team-accent);
}


/* ========================================================================================== CONTROLS */

.controls {
    text-align: center;
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

select,
input[type="text"] {
    padding: 8px 10px;
    font-size: 14px;
}


/* ========================================================================================== SUMMARY */

.summary {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}


/* ========================================================================================== WINNER HIGHLIGHT */

.h2h td.winner,
.divisions-table td.winner,
#matchTable td.winner,
.table-wrap td.winner {
    font-weight: 700 !important;
    background: var(--cream-city-brick) !important;
    color: var(--team-primary) !important;
    position: relative;
    z-index: 2;
}


/* ========================================================================================== LOADING / NO DATA */

.no-data,
.loading {
    text-align: center;
    margin-top: 14px;
    color: #666;
}


/* ========================================================================================== TABLE WRAPPER */

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    width: 100%;
    min-width: 600px;
}


/* ========================================================================================== TEAM HERO CARD */

.team-hero-card {
    max-width: 1200px;
    margin: 20px auto 30px auto;
    background: var(--bright-white, #ffffff);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 25px;
    display: flex;
    gap: 30px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-hero-logo {
    width: 160px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.team-hero-details {
    flex: 1;
}

.team-hero-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.team-title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--team-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.division-badge {
    background-color: var(--team-secondary);
    color: var(--bright-white, #ffffff);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.team-meta {
    margin: 0 0 15px 0;
    font-size: 0.88rem;
    color: var(--team-secondary);
}

.team-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #edf2f7;
}

.hero-stat-box {
    display: flex;
    flex-direction: column;
}

.hero-stat-box .stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--team-secondary);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.hero-stat-box .stat-value {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--team-primary);
}


/* ========================================================================================== TEAM INFOBOX */

.team-infobox-container {
    max-width: 320px;
    margin: 0 0 20px 20px;
    float: right;
}

.team-infobox {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bright-white, #ffffff);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
}

.team-infobox .infobox-header {
    background-color: var(--team-primary);
    color: var(--bright-white, #ffffff);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px;
    text-align: center;
}

.team-infobox .infobox-section-title th {
    background-color: #f1f5f9;
    color: var(--team-primary);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.team-infobox td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.team-infobox tr:last-child td {
    border-bottom: none;
}

.infobox-label {
    font-weight: 600;
    color: var(--team-primary);
    width: 45%;
}

.infobox-value {
    color: var(--team-primary);
}

.color-swatches {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}


/* ========================================================================================== TROPHY CASE */

.trophy-case-container {
    max-width: 1200px;
    margin: 0 auto 25px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.trophy-card {
    background: var(--bright-white, #ffffff);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trophy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.trophy-card.championship {
    border-left: 4px solid #eab308;
    background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
}

.trophy-card.conference {
    border-left: 4px solid var(--team-primary);
}

.trophy-card.division {
    border-left: 4px solid var(--team-secondary);
}

.trophy-card.playoffs {
    border-left: 4px solid var(--team-accent);
}

.trophy-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.trophy-details {
    display: flex;
    flex-direction: column;
}

.trophy-count {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--team-primary);
    line-height: 1.1;
}

.trophy-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--team-primary);
    letter-spacing: 0.4px;
}

.trophy-years {
    font-size: 0.72rem;
    color: var(--team-secondary);
    margin-top: 2px;
}


/* ========================================================================================== ROSTER TABLES */

.roster-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    align-items: start;
}

.roster-table {
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
    background: var(--bright-white);
    border: 1px solid var(--industrial-gray);
    table-layout: fixed;
}

.roster-table th,
.roster-table td {
    border: 1px solid var(--industrial-gray);
    padding: 10px;
    vertical-align: middle;
    font-size: 15px;
}

/* Player Number */
.roster-table th:first-child,
.roster-table td:first-child {
    width: 60px;
    text-align: center;
}

/* Player Name */
.roster-table th:nth-child(2),
.roster-table td:nth-child(2) {
    width: auto;
    text-align: left;
}

/* Position */
.roster-table th:last-child,
.roster-table td:last-child {
    width: 70px;
    text-align: center;
}

/* Position text */
.roster-pos-badge {
    background: transparent;
    border: none;
    padding: 0;
    font-weight: normal;
    color: inherit;
}

.roster-position-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--team-primary);
    border-bottom: 2px solid var(--team-secondary);
    padding-bottom: 5px;
}

/* ========================================================================================== TEAM PAGE SECTIONS */

.team-section {
    margin-top: 35px;
}


/* Main Section Title */

.team-section .section-title {
    color: var(--team-primary);
    font-size: 1.8rem;
    margin-bottom: 25px;
}


/* Category Sections */

.figure-category {
    margin-bottom: 30px;
}


.figure-category h3 {
    color: var(--team-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}


/* Card Grid */

.figure-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 20px;
}

/* Cards */

.figure-card {
    background: var(--bright-white, #ffffff);
    border: 1px solid #d9e2ec;
    border-top: 3px solid var(--team-secondary);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}


/* Images */

.figure-photo img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--team-primary);
    margin-bottom: 2px;
}


/* Player Info */

.figure-info h4 {
    margin: 0 0 2px 0;
    color: var(--team-primary);
    font-size: 1.1rem;
    font-weight: 800;
}


.figure-role {
    display: block;
    color: var(--team-secondary);
    font-size: .8rem;
    font-weight: bold;
    text-transform: uppercase;
	margin-bottom: 2px;
}


/* Badges */

.figure-badges {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 1.25rem;
}


.figure-stats {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.figure-stat {
    text-align: center;
    font-size: 0.75rem;
    color: var(--team-primary);
}

.figure-stat-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--industrial-gray);
    letter-spacing: .05em;
}

.figure-stat-value {
    display: block;
    font-weight: 700;
    margin-top: 2px;
}

/* Mobile */

@media (max-width: 768px) {

    .figure-grid {
        grid-template-columns: 1fr;
    }

}

/* ========================================================================================== TABLE HEADERS */

table th,
.table-wrap table th,
.roster-table th,
.scrolling-table th,
.h2h th,
.divisions-table th {
    background-color: var(--team-primary);
    color: var(--bright-white, #ffffff);
    text-align: center;
    padding: 12px 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ========================================================================================== TABLE WIDTH / LAYOUT */
/* Standard data tables fill the available page width */
.scrolling-table,
.h2h,
.divisions-table,
#gmTable,
#awardsTable,
#matchTable {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Table wrappers allow horizontal scrolling when needed */
.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Standard table alignment */
.table-wrap table th,
.table-wrap table td,
#gmTable th,
#gmTable td,
#awardsTable th,
#awardsTable td {
    text-align: center;
    vertical-align: middle;
}


/* ==========================================================================================
TEAM PAGE NAVIGATION
========================================================================================== */

.team-page-nav {

    background: var(--team-primary);
    border-radius: 8px;
    padding: 10px 15px;
    margin: 25px auto 35px auto;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    max-width: 1200px;

    box-shadow: 0 2px 6px rgba(0,0,0,.08);
	
	position: sticky;
	top: 60px;
	z-index: 50;

}


.team-page-nav-title {

    color: var(--bright-white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;

    margin-right: 10px;

}


.team-page-nav a {

    color: var(--bright-white);
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;

}


.team-page-nav a:hover {

    color: var(--team-accent);

}


/* ========================================================================================== MOBILE TEAM PAGE */

@media (max-width: 768px) {

    .team-hero-card {
        flex-direction: column;
        text-align: center;
    }

    .team-hero-header {
        justify-content: center;
    }

    .team-infobox-container {
        max-width: 100%;
        float: none;
        margin: 0 0 20px 0;
    }

    .table-wrap {
        overflow-x: auto;
    }

    .roster-container {
        grid-template-columns: 1fr;
    }
	
	.team-page-nav {
    justify-content:flex-start;
    overflow-x:auto;
}

.team-page-nav a {
    white-space:nowrap;
}

}