/* =============================================================================
   Fantasy Leagues Styles
   MMR-based scoring with head-to-head matchups
   ============================================================================= */

/* =============================================================================
   Breadcrumb Navigation
   ============================================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #ffd700;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
    color: #ffd700;
    font-weight: 600;
}

/* =============================================================================
   League Sub-Navigation (Tabs)
   ============================================================================= */

.league-subnav {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.league-subnav::-webkit-scrollbar {
    display: none;
}

.subnav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.subnav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.subnav-link.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    color: #ffd700;
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.3);
}

.subnav-icon {
    font-size: 1rem;
}

/* Mobile subnav adjustments */
@media (max-width: 600px) {
    .league-subnav {
        padding: 6px;
        margin-bottom: 16px;
    }

    .subnav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .subnav-text {
        display: none;
    }

    .subnav-icon {
        font-size: 1.1rem;
    }
}

/* Containers */
.leagues-container,
.create-league-container,
.league-detail-container,
.draft-container,
.roster-container,
.matchups-container,
.standings-container,
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* =============================================================================
   Hero Section (Home Page)
   ============================================================================= */

.leagues-hero {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-bottom: 32px;
}

.hero-content h2 {
    font-size: 2rem;
    color: #ffd700;
    margin: 0 0 8px 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-weight: 600;
    color: #fff;
}

/* =============================================================================
   Scoring Explainer
   ============================================================================= */

.scoring-explainer {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.scoring-explainer h3 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 20px;
}

.scoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.scoring-card {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.scoring-example {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.scoring-example.positive { color: #22c55e; }
.scoring-example.negative { color: #ef4444; }
.scoring-example.zero { color: rgba(255, 255, 255, 0.5); }

.scoring-label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.scoring-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.scoring-note {
    text-align: center;
    color: #ffd700;
    font-weight: 600;
    margin: 0;
}

/* =============================================================================
   Sections
   ============================================================================= */

.section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.25rem;
    color: #ffd700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

/* =============================================================================
   League Cards & Lists
   ============================================================================= */

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.league-card {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.league-card:hover {
    border-color: #ffd700;
    transform: translateY(-2px);
}

.league-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.league-name {
    font-weight: 600;
    color: #fff;
}

.league-promotion {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.league-promotion.aew {
    background: #ffd700;
    color: #000;
}

.league-promotion.wwe {
    background: #e62020;
    color: #fff;
}

.league-card-status {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.status-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.status-badge.setup { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.status-badge.drafting { background: rgba(234, 179, 8, 0.2); color: #eab308; }
.status-badge.active { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-badge.playoffs { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.status-badge.completed { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5); }
.status-badge.live { background: rgba(239, 68, 68, 0.2); color: #ef4444; animation: pulse 2s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.keeper-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.league-card-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* League List (rows) */
.leagues-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.league-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.league-row-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.league-row-details {
    display: flex;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* =============================================================================
   Join Options
   ============================================================================= */

.join-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.join-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.join-card h4 {
    color: #fff;
    margin: 0 0 16px 0;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-row {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #ffd700;
}

.filter-btn.active {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}

/* =============================================================================
   Forms
   ============================================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.form-input.readonly {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-help {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Size selector buttons */
.size-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn,
.roster-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover,
.roster-btn:hover {
    border-color: #ffd700;
}

.size-btn.active,
.roster-btn.active {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}

/* Promotion selector */
.promotion-selector,
.draft-selector,
.visibility-toggle,
.keeper-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.promotion-option input,
.draft-option input,
.toggle-option input {
    display: none;
}

.promotion-card,
.draft-card,
.toggle-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.promotion-option input:checked + .promotion-card,
.draft-option input:checked + .draft-card,
.toggle-option input:checked + .toggle-card {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.promotion-name,
.draft-name,
.toggle-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.promotion-desc,
.draft-desc,
.toggle-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.toggle-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-primary {
    background: #ffd700;
    color: #000;
}

.btn-primary:hover {
    background: #ffed4a;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* =============================================================================
   League Detail Page
   ============================================================================= */

.league-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.league-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.league-meta {
    display: flex;
    gap: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.commissioner-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.join-code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.join-code {
    font-family: monospace;
    font-size: 1.2rem;
    color: #ffd700;
    letter-spacing: 2px;
}

.copy-btn {
    padding: 4px 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

/* League content grid */
.league-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .league-content {
        grid-template-columns: 1fr;
    }
}

/* Standings table */
.standings-section,
.matchups-section,
.my-roster-section,
.activity-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

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

.standings-table th,
.standings-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.standings-table th {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.standings-table .rank {
    color: #ffd700;
    font-weight: 600;
    width: 30px;
}

.standings-table .team-name a {
    color: #fff;
    text-decoration: none;
}

.standings-table .team-name a:hover {
    color: #ffd700;
}

.standings-table .my-team {
    background: rgba(255, 215, 0, 0.1);
}

.commissioner-badge {
    font-size: 0.8rem;
}

/* Matchups */
.matchups-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.matchup-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.matchup-team {
    text-align: center;
    flex: 1;
}

.matchup-team.winner .team-name {
    color: #22c55e;
}

.matchup-vs {
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.team-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
}

/* Activity feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 0.9rem;
}

.activity-icon {
    font-size: 1rem;
}

.activity-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
}

.activity-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* =============================================================================
   Draft Room
   ============================================================================= */

.draft-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.draft-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.draft-info h2 {
    margin: 0;
    color: #fff;
}

.draft-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.pick-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pick-num {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
}

.on-the-clock {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.on-the-clock.my-turn {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
    animation: pulse 1.5s infinite;
}

.clock-team {
    font-weight: 600;
    color: #fff;
}

/* Draft grid */
.draft-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: auto auto;
    gap: 20px;
}

.available-section {
    grid-row: span 2;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.search-input {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    width: 200px;
}

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

.wrestlers-table th,
.wrestlers-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wrestlers-table th {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.wrestler-row:hover {
    background: rgba(255, 215, 0, 0.1);
}

.draft-board-section,
.recent-picks-section,
.my-roster-draft {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
}

.recent-picks,
.draft-roster {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pick-item {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
}

.pick-number {
    color: #ffd700;
    font-weight: 600;
}

.pick-team {
    color: rgba(255, 255, 255, 0.6);
}

.pick-wrestler {
    color: #fff;
    font-weight: 500;
}

@media (max-width: 900px) {
    .draft-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   Roster Page
   ============================================================================= */

.team-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.back-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: #ffd700;
}

.team-record {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.record {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.total-points {
    font-size: 1.2rem;
    color: #ffd700;
}

.roster-section,
.weekly-section,
.scoring-help {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

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

.roster-table th,
.roster-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.roster-table th {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.roster-table .wrestler-name a {
    color: #fff;
    text-decoration: none;
}

.roster-table .wrestler-name a:hover {
    color: #ffd700;
}

.keeper-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border-radius: 4px;
    margin-left: 8px;
}

/* Point colors */
.positive { color: #22c55e; }
.negative { color: #ef4444; }

/* Simple chart */
.simple-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 120px;
    padding: 16px 0;
}

.chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.chart-bar {
    width: 30px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}

.chart-bar.positive { background: #22c55e; }
.chart-bar.negative { background: #ef4444; }

.chart-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Scoring help */
.scoring-help h4 {
    color: #ffd700;
    margin-bottom: 12px;
}

.scoring-help ul {
    margin: 12px 0;
    padding-left: 20px;
}

.scoring-help li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.tip {
    color: #ffd700;
    font-style: italic;
}

/* =============================================================================
   Matchups Page
   ============================================================================= */

.matchups-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 16px;
}

.week-nav-btn {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.week-nav-btn:hover {
    border-color: #ffd700;
    color: #ffd700;
}

.current-week {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.matchups-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.matchup-detail {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
}

.matchup-team-detail {
    text-align: center;
}

.matchup-team-detail.winner {
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.1);
}

.team-link {
    text-decoration: none;
}

.team-link .team-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.team-link .team-record {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.team-score-box {
    margin: 16px 0;
}

.team-score-box .score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
}

.team-roster-preview {
    text-align: left;
}

.roster-preview-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.roster-preview-item .wrestler {
    color: rgba(255, 255, 255, 0.8);
}

.roster-preview-item .pts {
    font-weight: 600;
}

.matchup-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vs-badge {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
}

.result-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.result-badge.tie {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

/* =============================================================================
   Settings Page
   ============================================================================= */

.settings-form {
    max-width: 600px;
}

.settings-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.settings-section h3 {
    color: #ffd700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-text {
    color: #fff;
}

.code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-top: 8px;
}

.code-box code {
    font-family: monospace;
    font-size: 1.2rem;
    color: #ffd700;
    letter-spacing: 2px;
}

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

.members-table th,
.members-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.members-table th {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.waiting-notice {
    padding: 16px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 8px;
    color: #eab308;
}

.danger-zone {
    border-color: rgba(239, 68, 68, 0.3);
}

.danger-zone h3 {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.danger-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.danger-action strong {
    color: #fff;
}

.danger-action p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 4px 0 0 0;
}

/* =============================================================================
   Modal
   ============================================================================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
}

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

.modal-header h3 {
    margin: 0;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.pick-modal .pick-confirmation {
    text-align: center;
    padding: 20px 0;
}

.pick-wrestler {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    margin: 12px 0;
}

.pick-warning {
    color: #ef4444;
    font-size: 0.85rem;
}

/* =============================================================================
   Utilities
   ============================================================================= */

.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 24px;
}

.loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
}

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #ffd700;
    text-decoration: none;
    font-size: 0.9rem;
}

.view-all-link:hover {
    text-decoration: underline;
}

.login-prompt {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.login-prompt a {
    color: #ffd700;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 600px) {
    .leagues-hero {
        padding: 24px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 16px;
    }

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

    .promotion-selector,
    .draft-selector,
    .visibility-toggle,
    .keeper-toggle {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .matchup-detail {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .matchup-center {
        flex-direction: row;
        justify-content: center;
    }
}

/* =============================================================================
   Full Standings Page
   ============================================================================= */

.standings-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.standings-header .league-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.standings-header .week-info {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Full standings table */
.full-standings {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.standings-table-full {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.standings-table-full th,
.standings-table-full td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.standings-table-full th {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.standings-table-full th.rank { width: 50px; }
.standings-table-full th.team { min-width: 150px; }
.standings-table-full th.record { width: 80px; }
.standings-table-full th.pct { width: 70px; }
.standings-table-full th.pf,
.standings-table-full th.pa,
.standings-table-full th.diff { width: 80px; }
.standings-table-full th.streak { width: 70px; }

.standings-table-full td.rank {
    color: #ffd700;
    font-weight: 600;
    font-size: 1.1rem;
}

.standings-table-full td.team a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.standings-table-full td.team a:hover {
    color: #ffd700;
}

.standings-table-full tr.playoff-team {
    background: rgba(34, 197, 94, 0.08);
}

.standings-table-full tr.eliminated {
    opacity: 0.5;
}

.standings-table-full tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playoff-indicator {
    margin-left: 6px;
    font-size: 0.9rem;
}

/* Playoff Picture Section */
.playoff-picture {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.playoff-picture h3 {
    color: #ffd700;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.playoff-info p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 16px 0;
}

.playoff-teams {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.playoff-team-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
}

.playoff-team-card .seed {
    font-size: 1.2rem;
    font-weight: 700;
    color: #22c55e;
    min-width: 30px;
}

.playoff-team-card .team-name {
    flex: 1;
    color: #fff;
    font-weight: 500;
}

.playoff-team-card .record {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Bubble teams */
.bubble-teams {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bubble-teams h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0 0 12px 0;
}

.bubble-team {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 8px;
    margin-bottom: 8px;
}

.bubble-team .rank {
    font-weight: 600;
    color: #eab308;
    min-width: 30px;
}

.bubble-team .team-name {
    flex: 1;
    color: #fff;
}

.bubble-team .record {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Weekly/Season Leaders */
.weekly-leaders {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.weekly-leaders h3 {
    color: #ffd700;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.leader-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: center;
}

.leader-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.leader-team {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 4px;
}

.leader-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffd700;
}

/* Scoring Summary section on matchups page */
.scoring-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.scoring-summary h3 {
    color: #ffd700;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.scoring-leaders {
    min-height: 60px;
}

/* Weekly table */
.weekly-table-container {
    overflow-x: auto;
}

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

.weekly-table th,
.weekly-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.weekly-table th {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ===== Playoff Bracket Styles ===== */
.playoff-bracket {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.playoff-bracket h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.playoff-matchups-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.playoff-matchup-card {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.playoff-matchup-card .matchup-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.playoff-matchup-card .matchup-team.winner {
    background: rgba(34, 197, 94, 0.15);
    border-radius: 4px;
}

.playoff-matchup-card .matchup-team.loser {
    opacity: 0.5;
}

.playoff-matchup-card .seed {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 2rem;
}

.playoff-matchup-card .team-name {
    flex: 1;
    font-weight: 500;
}

.playoff-matchup-card .points {
    font-family: var(--font-mono);
    font-weight: 600;
}

.playoff-matchup-card .vs {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.playoff-matchup-card .matchup-status {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

/* ===== Champion Banner Styles ===== */
.champion-banner {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 50%, #ffd700 100%);
    border-radius: 12px;
    text-align: center;
}

.champion-banner h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.champion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.champion-card .trophy {
    font-size: 4rem;
    animation: trophy-glow 2s ease-in-out infinite;
}

@keyframes trophy-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.champion-card .champion-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.champion-card .champion-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
