/* Nu Choate League - Dark Mode Theme */

/* JetBrains Mono Nerd Font - Local Font Faces */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMonoNerdFont-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMonoNerdFont-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMonoNerdFont-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMonoNerdFont-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMonoNerdFont-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMonoNerdFont-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMonoNerdFont-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMonoNerdFont-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'JetBrainsMono Nerd Font', 'Courier New', monospace;
    line-height: 1.6;
    color: #e4e4e7;
    background-color: #0f1419;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #1a1f2e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid #2d3748;
}

h1 {
    color: #60a5fa;
    margin-bottom: 20px;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 10px;
}

h2 {
    color: #93c5fd;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #2d3748;
    padding-bottom: 8px;
}

h3 {
    color: #9ca3af;
    margin-top: 20px;
    margin-bottom: 10px;
}

.nav {
    background: #2d3748;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #374151;
}

.nav a {
    color: #e4e4e7;
    text-decoration: none;
    margin-right: 15px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s;
}

.nav a:hover {
    background: #374151;
    color: #60a5fa;
}

.sub-nav {
    background: #1e293b;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #2d3748;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sub-nav a {
    color: #60a5fa;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s;
    font-size: 0.9em;
}

.sub-nav a:hover {
    background: #2d3748;
}

.current-location {
    color: #9ca3af;
    font-size: 0.9em;
    margin-right: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #1e293b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #2d3748;
}

th {
    background: #1e40af;
    color: #e4e4e7;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #2d3748;
    color: #d1d5db;
}

tr:hover {
    background: #2d3748;
}

.winner {
    background: #1e3a28 !important;
    font-weight: 600;
    color: #86efac !important;
}

.loser {
    background: #3a1e1e !important;
    color: #fca5a5 !important;
}

.tie {
    background: #3a3020 !important;
    color: #fde047 !important;
}

.award-box {
    background: #1e293b;
    border-left: 4px solid #3b82f6;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.award-box h4 {
    color: #60a5fa;
    margin-bottom: 8px;
}

.team-highlight {
    background: #1e3a5f;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 4px solid #3b82f6;
}

.player-list {
    list-style: none;
    padding: 0;
}

.player-list li {
    padding: 8px;
    border-bottom: 1px solid #2d3748;
}

.player-list li:last-child {
    border-bottom: none;
}

.player-name {
    font-weight: 600;
    color: #e4e4e7;
}

.player-points {
    color: #86efac;
    font-weight: 600;
    float: right;
}

.player-position {
    color: #9ca3af;
    font-size: 0.9em;
    margin-left: 10px;
}

.standings-table {
    margin-top: 20px;
}

.rank {
    font-weight: 700;
    color: #60a5fa;
    width: 50px;
}

.week-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.week-link {
    display: inline-block;
    padding: 8px 15px;
    background: #1e40af;
    color: #e4e4e7;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid #2563eb;
}

.week-link:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.season-list {
    list-style: none;
    padding: 0;
}

.season-list li {
    padding: 15px;
    margin: 10px 0;
    background: #1e293b;
    border-radius: 5px;
    border-left: 4px solid #3b82f6;
    border: 1px solid #2d3748;
}

.season-list a {
    color: #e4e4e7;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
}

.season-list a:hover {
    color: #60a5fa;
}

.breadcrumb {
    color: #9ca3af;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #60a5fa;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #93c5fd;
}

.bracket-container {
    overflow-x: auto;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #1e40af 0%, #6366f1 100%);
    border-radius: 8px;
    position: relative;
    min-height: 500px;
    border: 1px solid #2563eb;
}

.bracket-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-width: 1200px;
    position: relative;
    padding: 20px 0;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    position: relative;
    min-width: 200px;
}

.bracket-round:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 0;
}

.bracket-matchup {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    position: relative;
    min-height: 80px;
}

.bracket-matchup:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.bracket-team {
    background: #1e293b;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 4px 0;
    min-width: 180px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    text-align: center;
    color: #e4e4e7;
}

.bracket-team:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    background: #2d3748;
}

.bracket-team.winner {
    background: #1e3a28;
    border-color: #22c55e;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.bracket-team.tbd {
    background: #1a202c;
    border-color: #4b5563;
    color: #9ca3af;
    font-style: italic;
}

.bracket-round-label {
    text-align: center;
    color: white;
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 1.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    padding: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
}

.bracket-final {
    background: #422006 !important;
    border: 3px solid #eab308 !important;
    font-size: 1.15em;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.5) !important;
    color: #fde047 !important;
}

.bracket-round:first-child .bracket-matchup {
    margin-top: 0;
}

.bracket-round:last-child {
    flex: 0.8;
}

.bracket-round:last-child .bracket-matchup {
    margin: 0;
}

.matchup-row {
    cursor: pointer;
    transition: background 0.2s;
}

.matchup-row:hover {
    background: #2d3748 !important;
}

.matchup-details {
    display: none;
    background: #0f1419;
    padding: 0;
}

.matchup-details.expanded {
    display: table-row;
}

.matchup-details td {
    padding: 0;
    border: none;
}

.matchup-details-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.team-details {
    background: #1e293b;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #2d3748;
}

.team-details h4 {
    margin-bottom: 15px;
    color: #60a5fa;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 8px;
}

.player-section {
    margin-bottom: 20px;
}

.player-section h5 {
    color: #93c5fd;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.player-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    margin: 4px 0;
    background: #0f1419;
    border-radius: 4px;
    border-left: 3px solid #3b82f6;
}

.player-item.bench {
    border-left-color: #6b7280;
    background: #1a202c;
}

.player-name {
    font-weight: 500;
    color: #e4e4e7;
}

.player-position {
    color: #9ca3af;
    font-size: 0.85em;
    margin-left: 8px;
}

.player-points {
    font-weight: 600;
    color: #86efac;
}

.expand-icon {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s;
}

.matchup-row.expanded .expand-icon {
    transform: rotate(90deg);
}

.draft-container {
    margin: 30px 0;
}

.draft-team {
    margin-bottom: 30px;
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #2d3748;
}

.draft-team h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #60a5fa;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 8px;
}

.draft-picks-table {
    width: 100%;
    border-collapse: collapse;
}

.draft-picks-table th {
    background: #0f1419;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    color: #e4e4e7;
    border: 1px solid #2d3748;
}

.draft-picks-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #2d3748;
}

.draft-picks-table tr:hover {
    background: #2d3748;
}

.transaction-row {
    cursor: pointer;
    transition: background 0.2s;
}

.transaction-row:hover {
    background: #2d3748 !important;
}

.transaction-row.has-failed-claims {
    cursor: pointer;
}

.transaction-details {
    display: none;
    background: #0f1419;
    padding: 0;
}

.transaction-details.expanded {
    display: table-row;
}

.transaction-details td {
    padding: 0;
    border: none;
}

.transaction-details-content {
    padding: 20px;
    background: #1e293b;
    margin: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #2d3748;
}

.transaction-details-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #60a5fa;
}

.failed-claims-group {
    margin-bottom: 20px;
}

.failed-claims-group h5 {
    color: #f87171;
    margin-bottom: 10px;
    font-size: 1em;
}

.failed-claims-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.failed-claims-list li {
    padding: 8px 12px;
    margin: 5px 0;
    background: #422006;
    border-left: 3px solid #fbbf24;
    border-radius: 4px;
    color: #fde047;
}

.transaction-row.expanded .expand-icon {
    transform: rotate(90deg);
}

.time-cell {
    font-size: 0.9em;
    color: #9ca3af;
    white-space: nowrap;
}

h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #93c5fd;
    font-size: 1.3em;
}

h3:first-of-type {
    margin-top: 0;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    table {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 8px;
    }
    
    .nav {
        text-align: center;
    }
    
    .nav a {
        display: inline-block;
        margin: 5px;
    }
    
    .bracket-container {
        padding: 10px;
    }
    
    .bracket-wrapper {
        min-width: 800px;
    }
    
    .bracket-team {
        min-width: 150px;
        padding: 8px 12px;
        font-size: 0.9em;
    }
}
