/* LNH API - Styles principaux */

/* Conteneurs */
.lnh-games-list,
.lnh-games-grid {
	font-family: "Tomorrow", Sans-serif;
    margin: 20px 0;
}

.lnh-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Carte de match */
.lnh-game-card {
    padding: 0px;
    margin-bottom: 15px;
	display: flex;
    gap: 20px;
    align-items: center;
}

.lnh-game-card.compact {
    padding: 15px;
}

.lnh-game-date {
    font-size: 1.4em;
    color: #fff;
	text-align:center; 
    font-weight: normal;
	padding:10px 50px;
	box-shadow: 7px 1px 10px 4px rgba(0, 0, 0, 0.5);
}

.lnh-game-date .lnh-game-date-formatted {
	color: #ffcc00;
	font-size: 1.5rem;
	font-weight: bold;
}

.lnh-game-date .lnh-game-hour {
	margin: 0px;
}

.lnh-game-teams {
	width: 60%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
}

.lnh-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.lnh-team .team-logo {
	width: 100px;
}

.lnh-team .team-name {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
    text-align: center;
}

.lnh-team .team-name-label {
    font-size: 1em;
    font-weight: 700;
    color: #ffffff;
	text-transform: uppercase;
	text-align: center;
}
.lnh-team .team-name-label .score {
	font-size: 1.6em;
}

.lastGame {
	background-color:#071181;
	padding: 10px 0px;
}
.lastGame .lnh-game-card {
	display: block;
}
.lastGame .lnh-game-card .lnh-game-teams {
	margin-left:auto;
	margin-right:auto;
}
.lnh-vs {
    font-family: "Tomorrow", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
}

.lnh-game-status {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85em;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

/* Tableau */
.lnh-games-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
}

.lnh-games-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.lnh-games-table thead {
    background: #1e3a8a;
    color: #fff;
}

.lnh-games-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.lnh-games-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.lnh-games-table tr:last-child td {
    border-bottom: none;
}

.lnh-games-table tr:hover {
    background: #f9fafb;
}

.lnh-games-table .score {
    font-weight: 700;
    font-size: 1.1em;
    color: #1e3a8a;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e5e7eb;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
}

/* Classement */
/* Container principal */
.lnh-classement {
    width: 100%;
}

/* Toutes les lignes (header + équipes) */
.lnh-classement-equipe {
    display: grid;
    grid-template-columns: 44px 70px 133px repeat(6, 56px);
    align-items: center;
    gap: 10px;
	margin-bottom: 10px;
}

.lnh-classement-equipe.massy {
	background-color:#ffd71a;
	color:#071181;
}

/* Header spécifique */
#firstline {
	background-color:#071181;
	color:#FFFFFF !important;
	margin-bottom: 10px;
	font-weight: bold;
    padding: 10px 0;
}

/* Le colspan3 prend les 3 premières colonnes */
#colspan3 {
	padding-left:10px;
    grid-column: 1 / 4;
    width: auto !important; /* Override le style inline */
}

/* Position */
.lnh-classement-equipe-position {
    text-align: center;
}

/* Logo */
.lnh-classement-equipe-logo {
    text-align: center;
    display: grid;
    place-items: center;
}

.lnh-classement-equipe-logo img {
    width: 50px;
    height: auto;
}

/* Nom équipe */
.lnh-classement-equipe-name {
    text-align: left;
}

/* Tous les chiffres centrés */
.lnh-classement-chiffre {
    text-align: center;
}

.lnh-classement-equipe-position {
	padding: 0 20px;
	text-align: center;
    font-size: 1.8rem;
    font-family: "Great Vibes", Sans-serif;
    font-weight: bold;
}

.lnh-classement-equipe-name {
	padding: 0px 20px;
    font-size: 1rem;
    font-weight: normal;
}

.lnh-classement-equipe-resultats .matchsPerdus {
	color:#e30303;
	font-weight: bold;
}

.lnh-classement-equipe-resultats .matchsGagnes {
	color:#038703;
	font-weight: bold;
}

.lnh-classement-chiffre {
	width: 60px;
	text-align: center;
}

/* Prochain match */
.lnh-next-game {
    margin: 0;
}

.lnh-next-game h3 {
    margin-bottom: 15px;
    color: #1e3a8a;
    font-size: 1.3em;
}

/* Messages */
.lnh-api-notice,
.lnh-api-error {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.lnh-api-notice {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.lnh-api-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .lnh-classement {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    #firstline {
        position: sticky;
        top: 0;
        z-index: 10;
        min-width: 700px;
        grid-template-columns: 50px 50px 120px repeat(6, 70px);
    }
    
    .lnh-classement-equipe {
        min-width: 700px;
        grid-template-columns: 50px 50px 120px repeat(6, 70px);
        gap: 5px;
        font-size: 0.85em;
    }
	.lnh-game-card {
		display: block;
		padding: 0px; 
	}
    .lnh-games-grid {
        grid-template-columns: 1fr;
    }
    
    .lnh-game-teams {
        flex-direction: row;
        width: 100%;
        gap: 15px;
	}
    
    .lnh-vs {
        padding: 10px 0;
    }
    
    .lnh-games-table {
        font-size: 0.9em;
    }
    
    .lnh-games-table th,
    .lnh-games-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .lnh-game-card {
        padding: 0px;
    }
    
    .lnh-team .team-name {
        font-size: 1em;
    }
    
    .lnh-team .team-score {
        font-size: 1.3em;
    }
}
