

html {
  font-size: 12px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Data table row hover - the cream highlight, scoped to actual data tables only so it
   doesn't bleed into nav dropdowns (see .league-nav-menu/.site-navbar-user-menu below,
   which have their own dark-theme-appropriate hover). */
.table-hover {
    --bs-table-hover-bg: #a5a58c;
    --bs-table-hover-color: #4d4d4d;
}

html {
  position: relative;
  min-height: 100%;
}

/*body {
  margin-bottom: 60px;
}*/

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* Footer Overrides */
.footer {
    bottom: 0;
    position: static;
    white-space: nowrap;
    width: 100%;
}

/* Filter controls (page-level dropdowns/selects above tables) - the theme's default
   form-select/dropdown-toggle borders are nearly invisible against the dark background,
   so give every filter control on the site a consistent, visible treatment here rather
   than restyling per-page. */
.form-select,
.filter-dropdown-toggle {
    background-color: #16283f;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.form-select:hover,
.filter-dropdown-toggle:hover {
    border-color: rgba(255, 255, 255, 0.45);
}

.form-select:focus,
.filter-dropdown-toggle:focus {
    border-color: #c98a2e;
    box-shadow: 0 0 0 0.2rem rgba(201, 138, 46, 0.35);
}

.filter-dropdown-toggle {
    min-width: 9rem;
}

.filter-dropdown-toggle::after {
    margin-left: auto;
}

/* Sortable table headers */
.sortable-th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sortable-th:hover {
    text-decoration: underline;
}

.sortable-th.sort-asc::after {
    content: " \25B2";
}

.sortable-th.sort-desc::after {
    content: " \25BC";
}

/* Data table column separators - stat-heavy tables (Player Stats, Player Ratings, Team Stats)
   pack a lot of numeric columns edge-to-edge, which is hard to scan on narrow/mobile widths
   without a visual break between them. Applies site-wide instead of per-page. */
.table-responsive .table > :not(caption) > * > td,
.table-responsive .table > :not(caption) > * > th {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.table-responsive .table > :not(caption) > * > td:last-child,
.table-responsive .table > :not(caption) > * > th:last-child {
    border-right: 0;
}

/* Global navbar - kept compact, minimal vertical footprint */
.site-navbar {
    background: #0f1c2c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    --bs-navbar-padding-y: 0.35rem;
    --bs-navbar-brand-padding-y: 0;
    --bs-nav-link-padding-y: 0.3rem;
}

.site-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

@media (min-width: 576px) {
    .site-navbar-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 1rem;
    }

    .site-navbar-center {
        justify-self: center;
    }

    .site-navbar-end {
        justify-self: end;
    }
}

.site-brand {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: #fff !important;
}

.site-brand-accent {
    color: #c98a2e;
}

.site-navbar .nav-link {
    color: #cfd9e4 !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: #fff !important;
}

.site-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
}

/* User account dropdown */
.site-navbar-user {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.55rem !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.site-navbar-user:hover,
.site-navbar-user:focus {
    background: rgba(255, 255, 255, 0.12);
}

.site-navbar-user::after {
    margin-left: 0.2rem;
}

.site-navbar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #c98a2e;
    color: #16283f;
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
}

.site-navbar-username {
    color: #fff !important;
    font-weight: 600;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-navbar-user-menu {
    min-width: 14rem;
    padding: 0.5rem;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.45);
}

.site-navbar-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.site-navbar-user-menu .dropdown-item i {
    font-size: 1.05rem;
    width: 1.2rem;
    text-align: center;
    color: #c98a2e;
}

.site-navbar-user-menu .dropdown-item:hover,
.site-navbar-user-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.site-navbar-btn {
    font-weight: 600;
}

.site-navbar-end .navbar-nav {
    align-items: center;
    gap: 0.5rem;
}

/* League navigation - built on Bootstrap's navbar/collapse component */
.league-nav {
    background: #0a141f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    --bs-navbar-padding-y: 0.35rem;
    --bs-nav-link-padding-y: 0.5rem;
}

/* Own class (not "navbar-collapse") so the global navbar's toggler - which targets
   ".navbar-collapse" by class - doesn't also open/close this menu. */
@media (min-width: 576px) {
    .league-navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
}

.league-nav-brand {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: #fff !important;
}

.league-nav-link {
    color: #cfd9e4 !important;
    font-weight: 600;
    font-size: 0.85rem;
}

.league-nav-link:hover,
.league-nav-link:focus {
    color: #fff !important;
}

.league-nav-link.disabled {
    color: #55647a !important;
    cursor: not-allowed;
}

.league-nav-menu {
    min-width: 12rem;
    padding: 0.4rem;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.45);
}

.league-nav-menu .dropdown-item {
    padding: 0.65rem 0.7rem;
    border-radius: 6px;
    font-size: 0.88rem;
}

.league-nav-menu .dropdown-item:hover,
.league-nav-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.league-nav-menu .dropdown-item.disabled {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #adb5bd;
    cursor: not-allowed;
}

.league-nav-menu .dropdown-item.disabled::after {
    content: "soon";
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adb5bd;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 0.03rem 0.3rem;
    margin-left: 0.5rem;
}

/* League Home placeholder cards */
.home-feature-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-feature-card .card-header .bi {
    color: #c98a2e;
}

.home-feature-card .card-header .badge {
    font-weight: 600;
    font-size: 0.65rem;
}

/* Game of the Week mockup - mobile-first: teams stack vertically until there's room for a row */
.gotw-matchup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.gotw-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-align: center;
    max-width: 100%;
}

.gotw-team img {
    margin-bottom: 0.25rem;
}

.gotw-team-name {
    font-weight: 700;
}

.gotw-team-user {
    font-size: 0.75rem;
    font-weight: 600;
    color: #c98a2e;
}

.gotw-team-user.is-cpu {
    color: #6c757d;
    font-style: italic;
}

.gotw-team-record {
    color: #6c757d;
    font-size: 0.85rem;
}

.gotw-team-ovr {
    font-size: 0.75rem;
    font-weight: 700;
    color: #c98a2e;
}

.gotw-at {
    font-weight: 700;
    color: #adb5bd;
    font-size: 1.1rem;
}

@media (min-width: 480px) {
    .gotw-matchup {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Player of the Week mockup */
.potw-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
    .potw-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.potw-tile {
    background: #16283f;
    padding: 0.85rem 1rem 1rem;
}

.potw-tile-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.65rem;
}

.potw-tile-body {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.potw-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.potw-info {
    flex: 1 1 auto;
    min-width: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 0.85rem;
}

.potw-pos {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
}

.potw-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
}

.potw-stats {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    line-height: 1.5;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.potw-team-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Weekly Leaders */
.weekly-leaders-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.5rem;
}

.weekly-leaders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.weekly-leaders-table th {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
    text-align: right;
    padding: 0 0 0.35rem;
}

.weekly-leaders-table th:first-child,
.weekly-leaders-table td:first-child {
    text-align: left;
}

.weekly-leaders-table td {
    padding: 0.35rem 0;
    vertical-align: middle;
    text-align: right;
}

.weekly-leaders-table tr + tr td {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.weekly-leaders-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.weekly-leaders-player img {
    flex-shrink: 0;
}

.weekly-leaders-player-info {
    min-width: 0;
    overflow: hidden;
}

.weekly-leaders-team {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.weekly-leaders-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weekly-leaders-value {
    color: #c98a2e;
    font-weight: 700;
}

.weekly-leaders-card .card-body {
    padding-top: 0.75rem;
}

/* Team Schedule */
.team-schedule-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-schedule-team-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    min-width: 10rem;
    justify-content: center;
}
