/* Estilos base y reset */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
}

body {
    background-color: #edeff4;
    font-family: 'Poppins', serif;
}

.container {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
}

a {
    text-decoration: none !important;
}

/* Tipografía y colores */
.bg-bbinvernal {
    color: #fff !important;
    background-color: #041e42 !important;
    border-color: #041e42 !important;
}

.team-header {
    font-size: 30px;
    font-weight: 600;
}

.team-nombre {
    font-size: 20px;
    font-weight: 600;
}

.widget {
    border-bottom: solid 1px #a80523;
    color: #041e42;
    font-weight: 600;
    font-size: 1.4rem;
    text-transform: uppercase;
}

/* Componentes reutilizables */
.team-logo {
    width: 30px;
    height: 30px;
    margin: 0 5px;
}

.game-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.game-card h5 {
    margin-bottom: 10px;
}

.game-card .team-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.game-card .team-info img {
    margin-right: 10px;
}

.scoreboard {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Navegación por fechas */
.date-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.date-navigation-inner {
    display: flex;
    justify-content: space-between;
    width: 400px;
    max-width: 100%;
}

.date-button {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.date-button:hover {
    background-color: #0056b3;
}

.current-date {
    font-weight: bold;
    padding: 5px 10px;
    font-size: 16px;
}

.disabled-button {
    padding: 5px 10px;
    background-color: #cccccc;
    color: #666666;
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
    text-decoration: none;
    font-size: 14px;
}

/* Tablas */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th, .table td {
    white-space: nowrap;
    padding: 8px;
}


.table-dark {
    --bs-table-color: #fff;
    --bs-table-bg: #041e42 !important;
    --bs-table-border-color: #041e42;
    --bs-table-striped-bg: #041e42;
    --bs-table-striped-color: #fff;
    --bs-table-active-bg: #041e42;
    --bs-table-active-color: #fff;
    --bs-table-hover-bg: #041e42;
    --bs-table-hover-color: #fff;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-danger {
    --bs-table-color: #fffefe;
    --bs-table-bg: #a80523;
    --bs-table-border-color: #dfc2c4;
    --bs-table-striped-bg: #eccccf;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #dfc2c4;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #e5c7ca;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.estadio th {
    font-size: 12px;
    font-weight: 600;
}

/* Tarjetas y artículos */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-img-left {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-title h3 {
    color: #041e42;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.2rem !important;
    text-transform: uppercase;
}

.card-title a {
    color: inherit;
    font-weight: 600;
}

.card-title a:hover {
    text-decoration: underline;
    color: #a80523;
}

.card-title p {
    color: #041e42;
    text-decoration: none;
    font-size: 14px;
}

.text-truncate-line-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Badges y avatares */
.badge {
    font-size: 0.7em;
    text-decoration: none;
}

.avatar-sm, .avatar-xs {
    width: 32px;
    height: 32px;
}

/* Estado de juegos */
.status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-scheduled {
    background-color: #e9ecef;
    color: #495057;
}

.status-in-progress {
    background-color: #d4edda;
    color: #155724;
}

.status-final {
    background-color: #f8d7da;
    color: #721c24;
}

.status-delayed {
    background-color: #fff3cd;
    color: #856404;
}

/* Redes sociales */
.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.8;
}

.social-icons .facebook {
    background-color: #1877f2;
    border: 2px solid #1877f2;
}

.social-icons .instagram {
    background-color: #e4405f;
    border: 2px solid #e4405f;
}

.social-icons .youtube {
    background-color: #cd201f;
    border: 2px solid #cd201f;
}

.social-icons .twitter {
    background-color: #000000;
    border: 2px solid #000000;
}

/* Navbar */
.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-toggler {
    border: 2px solid white;
    border-radius: 5px;
    padding: 0.5rem;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
}

.navbar-nav .nav-link.active {
    color: white !important;
}

.navbar-nav .nav-link.disabled {
    color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-nav .dropdown-menu .dropdown-item {
    color: black;
    text-transform: uppercase;
    font-weight: 600;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
}

.nav-tabs {
    margin-left: 12px;
}

.nav-tabs .nav-link, .nav-tabs {
    isolation: isolate;
    color: #081334 !important;
}

.nav-link:focus, .nav-link:hover {
    color: #a80523 !important;
}

/* Clases utilitarias */
.fs-6 {
    font-size: 0.8rem !important;
    opacity: 0.8;
}

.team {
    font-weight: 600;
}

.runs {
    font-weight: bold;
}

.entrada {
    font-weight: 600;
    font-size: 12px;
}

.leyenda {
    font-size: 13px;
    font-weight: 500;
}

.estadio {
    font-weight: 600;
    font-size: 13px;
}

.info {
    font-size: 12px !important;
}

.batter-name {
    font-weight: 600;
    font-size: 14px;
}

.bases-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.boxscore-info, .game-info {
    background-color: #fff;
    padding: 15px;
    font-size: 13px;
}

.boxscore-info h5, .game-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.boxscore-info ul, .game-info ul {
    list-style-type: none;
    padding-left: 0;
}

.boxscore-info ul li, .game-info ul li {
    margin-bottom: 5px;
}

/* Carousel */
.carousel-caption {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: white !important;
    color: #000 !important;
    padding: 20px !important;
    text-align: left !important;
    border-top: 1px solid #ddd !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Layout responsive */
@media (max-width: 767.98px) {
    .col-sm-6, .col-sm-3.right-column {
        display: none !important;
    }
    
    .col-sm-3.left-column {
        width: 100% !important;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (min-width: 768px) {
    .col-sm-3 {
        flex: 0 0 auto;
        width: 28% !important;
    }
    
    .col-sm-6 {
        flex: 0 0 auto;
        width: 44% !important;
    }
    
    .card-img-left {
        height: 100%;
    }
}

@media (max-width: 991.98px) {
    .right-column {
        display: none !important;
    }
}

@media (min-width: 1200px) {
  .h4, h4 {
    font-size: 1.2rem!important;
  }
}