/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* BIH League Table - FIBA Style Dark Theme */
.bih-league-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 20px 0 !important;
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    font-family: 'Roboto', sans-serif !important;
}

.bih-league-table th,
.bih-league-table td {
    padding: 18px 12px !important;
    text-align: center !important;
    border: none !important;
    border-bottom: 1px solid #333 !important;
    font-family: 'Roboto', sans-serif !important;
}

.bih-league-table th {
    background: #2a2a2a !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid #444 !important;
}

.bih-league-table tbody tr {
    transition: background-color 0.2s ease !important;
    background: #1a1a1a !important;
}

.bih-league-table tbody tr:hover {
    background: #252525 !important;
}

.bih-league-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Rank column styling */
.bih-league-table td:first-child {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    background: #252525 !important;
    width: 60px !important;
}

/* Highlight top 3 teams with brand color */
.bih-league-table tbody tr:nth-child(1) td:first-child,
.bih-league-table tbody tr:nth-child(2) td:first-child,
.bih-league-table tbody tr:nth-child(3) td:first-child {
    background: #ed1c24 !important;
    color: #fff !important;
}

/* Team name column */
.bih-league-table td:nth-child(2) {
    text-align: left !important;
    min-width: 200px !important;
    padding-left: 20px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #ffffff !important;
}

.bih-league-table td:nth-child(2) img {
    width: 28px !important;
    height: 28px !important;
    margin-right: 12px !important;
    vertical-align: middle !important;
    border-radius: 4px !important;
    object-fit: contain !important;
}

/* Statistics columns */
.bih-league-table td {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #e0e0e0 !important;
}

/* Wins/Losses columns emphasis */
.bih-league-table td:nth-child(4),
.bih-league-table td:nth-child(5) {
    font-weight: 600 !important;
    color: #ffffff !important;
}

/* Remove old alternating background */
.bih-league-table tbody tr:nth-child(even) {
    background: #1a1a1a !important;
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

/* Mobile Bottom Navigation Bar (like FIBA app) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888;
    font-size: 11px;
    padding: 5px 10px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item.active {
    color: #fff;
}

.mobile-bottom-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
    fill: currentColor;
}

/* Add padding to body to prevent content being hidden behind bottom nav */
body {
    padding-bottom: 70px !important;
}

/* Hide default mobile menu when bottom nav is active */
.mobile-bottom-nav ~ .mobile-nav {
    display: none;
}

}

/* Hide mobile bottom nav on desktop */
@media only screen and (min-width: 48.0625em) {
    .mobile-bottom-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0 !important;
    }
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.stat-box {
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    padding: 15px 20px;
    width: 130px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.stat-label {
    font-size: 13px;
    opacity: 0.8;
}

.season-selector{
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.season_select{
    color: #0a0b0e;
}
.season_select_box{
    margin-left:10px; padding:5px 10px; border-radius:8px;
}