/* NBA Liga - Estilos Principais */

/* Variáveis de cores */
:root {
    --nba-blue: #1d428a;
    --nba-red: #c8102e;
    --nba-dark: #13203b;
    --nba-gray: #6b7280;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* jQuery UI Autocomplete */
.ui-widget {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.ui-menu-item {
    padding: 0.5rem 1rem;
}

.ui-menu .ui-menu-item-wrapper {
    transition: background-color 0.2s;
}

.ui-menu .ui-menu-item-wrapper:hover {
    background-color: var(--nba-blue);
    color: white;
    border: none;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Tabela de classificação customizada */
.standings-table tbody tr {
    transition: all 0.2s ease;
}

.standings-table tbody tr:hover {
    background-color: #eff6ff !important;
    transform: scale(1.01);
}

/* Logo dos times */
.team-logo {
    transition: transform 0.2s;
}

.team-logo:hover {
    transform: scale(1.1);
}

/* Badges personalizados */
.badge-win {
    background-color: var(--nba-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-loss {
    background-color: var(--nba-red);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .standings-table {
        font-size: 0.75rem;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* ===== ESTILOS PARA SCORES.PHP ===== */

/* Reset das tabelas antigas */
.middle3, .maintop, .middle2 {
    background: transparent !important;
    border: none !important;
    width: 100% !important;
}

/* Navegação semanal moderna */
.week-nav {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0) !important;
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    border: 1px solid #e2e8f0 !important;
}

.day-cell {
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    margin: 0.25rem !important;
}

.day-cell:hover {
    background: #f0f9ff !important;
    border-color: #1d428a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(29, 66, 138, 0.15) !important;
}

.day-cell.active {
    background: linear-gradient(135deg, #1d428a, #2563eb) !important;
    color: white !important;
    border-color: #1d428a !important;
    box-shadow: 0 4px 12px rgba(29, 66, 138, 0.3) !important;
}

.day-cell.active:hover {
    background: linear-gradient(135deg, #c8102e, #dc2626) !important;
    transform: translateY(-2px) !important;
}

/* Tabelas de jogos modernas */
.game-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 2rem !important;
    background: white !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e5e7eb !important;
}

.game-table th {
    background: linear-gradient(135deg, #374151, #1f2937) !important;
    color: white !important;
    padding: 1rem !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.game-table td {
    padding: 1rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: middle !important;
    transition: all 0.2s ease !important;
}

.game-table tr:hover {
    background: #f8fafc !important;
}

.game-table tr:hover td {
    transform: scale(1.01) !important;
}

/* Células específicas melhoradas */
#final {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb) !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
}

#logos img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e5e7eb !important;
    padding: 2px !important;
}

#logos img:hover {
    transform: scale(1.15) rotate(5deg) !important;
    border-color: #1d428a !important;
    box-shadow: 0 4px 12px rgba(29, 66, 138, 0.2) !important;
}

#teams {
    font-weight: 700 !important;
    color: #1e40af !important;
    font-size: 0.9rem !important;
}

#teams a {
    color: #1e40af !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
}

#teams a:hover {
    color: #dc2626 !important;
    background: #fef2f2 !important;
    transform: translateX(2px) !important;
}

#scores {
    text-align: center !important;
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 0.9rem !important;
}

/* Links de jogadores modernos */
.topplayers {
    color: #1d428a !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    display: inline-block !important;
}

.topplayers:hover {
    color: #dc2626 !important;
    background: #fef2f2 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15) !important;
}

/* Seção de preview moderna */
#pitchers {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0) !important;
    padding: 1rem !important;
    text-align: center !important;
    border-top: 2px solid #e5e7eb !important;
}

#pitchers a {
    color: white !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 0.75rem 1.5rem !important;
    background: linear-gradient(135deg, #1d428a, #2563eb) !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 4px 12px rgba(29, 66, 138, 0.2) !important;
}

#pitchers a:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3) !important;
}

/* Tabelas de estatísticas modernas */
.stats-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 0.75rem !important;
    background: white !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.stats-table td {
    padding: 0.75rem !important;
    font-size: 0.875rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: all 0.2s ease !important;
}

.stats-table tr:hover td {
    background: #f8fafc !important;
}

.stats-table td:first-child {
    font-weight: 700 !important;
    color: #374151 !important;
    width: 30px !important;
    background: #f3f4f6 !important;
}

.stats-table td:nth-child(2) {
    color: #1d428a !important;
    font-weight: 500 !important;
}

.stats-table td:nth-child(3) {
    text-align: right !important;
    font-weight: 700 !important;
    color: #059669 !important;
}

/* Navegação moderna */
.nav-arrows {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1.5rem !important;
}

.nav-arrows a {
    background: linear-gradient(135deg, #1d428a, #2563eb) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(29, 66, 138, 0.2) !important;
}

.nav-arrows a:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3) !important;
}

.nav-arrows img {
    width: 24px !important;
    height: 24px !important;
    filter: brightness(0) invert(1) !important;
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .game-table {
        font-size: 0.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .game-table th,
    .game-table td {
        padding: 0.75rem 0.5rem !important;
    }
    
    .day-cell {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    .stats-table td {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
    }
}

/* Melhorias gerais para scores */
.score_day {
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    color: inherit !important;
}

.score_date {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

.score_num {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
    font-weight: 600 !important;
}

/* Animações suaves globais */
* {
    transition: all 0.3s ease !important;
}

/* ===== ESTILOS PARA HOOPS_STATS.PHP ===== */

#stats_contain, #stats_filter {
	margin: 10px auto;
	width: 100%;
	font-size: 13px;
	text-align: center;
}

@media (max-width: 768px) {
	#stats_contain, #stats_filter {
		min-width: auto;
	}
}

#stats_contain a {
	color: #007aff;
	text-decoration: none;
}

#stats_contain a:hover {
	text-decoration: underline;
}

.stat_div {
	padding: 10px;
	display: inline-block;
	cursor: pointer;
}

.stat_drop_content {
	min-width: 150px;
	display: none;
	position: absolute;
	text-align: left;
}

.stat_drop, .stat_drop2, .stat_drop4, .stat_drop5, .stat_drop6 {
	min-width: 100px;
	max-height: 171px;
	overflow-y: scroll;
	display: inline-block;
	vertical-align: top;
	text-align: left;
	background-color: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.stat_drop1, .stat_drop3, .stat_drop7 {
	min-width: 100px;
	display: inline-block;
	vertical-align: top;
	text-align: left;
	background-color: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.stat_type {
	background-color: #fff;
	color: #0090F0;
	border: 1px solid #007aff;
	border-radius: 4px;
	padding: 6px 14px;
}

.stat_div:hover .stat_type {
	background-color: #007aff;
	color: #fff;
}

.stat_div:hover .stat_drop_content {
	display: block;
}

.stat_drop1 ul, .stat_drop2 ul, .stat_drop3 ul, .stat_drop4 ul, .stat_drop5 ul, .stat_drop6 ul, .stat_drop7 ul {
	margin-top: 0;
	margin-bottom: 0;
	padding: 6px;
}

.stat_drop1 li, .stat_drop2 li, .stat_drop3 li, .stat_drop4 li, .stat_drop5 li, .stat_drop6 li, .stat_drop7 li {
	background-color: #fff;
	color: #444;
	display: block;
	padding: 4px;
	border-radius: 4px;
}

.stat_drop1 li:hover, .stat_drop2 li:hover, .stat_drop3 li:hover, .stat_drop4 li:hover, .stat_drop5 li:hover, .stat_drop6 li:hover, .stat_drop7 li:hover {
	background-color: #f6f6f6;
	cursor: pointer;
}

#stats_table_contain {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}

#stats_table_contain table {
	margin: 10px auto;
	min-width: 650px;
	font-size: 12px;
	border: 0;
	border-spacing: 0;
	border-collapse: collapse;
	width: 100%;
}

@media (max-width: 768px) {
	#stats_table_contain table {
		min-width: 900px;
		font-size: 11px;
	}
	
	#stats_table_contain td {
		padding: 4px 6px;
		font-size: 11px;
	}
}

#stats_table_contain td {
	text-align: right;
	padding: 5px 10px;
}

#stats_table_contain td:nth-child(2), #stats_table_contain td:nth-child(4) {
	text-align: center;
}

#stats_table_contain td:nth-child(3) {
	text-align: left;
}

#stats_table_contain table tr:nth-child(odd) {
	background-color: #fff;
}

#stats_table_contain table tr:nth-child(even) {
	background-color: #f2f2f2;
}

.stat_title {
	background: linear-gradient(135deg, #13203b, #1d428a) !important;
}

.stat_title td {
	font-size: 18px;
	text-align: center !important;
	padding: 16px;
	border-bottom: none;
	color: white !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
}

.stat_header {
	background: linear-gradient(135deg, #f8fafc, #e2e8f0) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
}

.stat_header td {
	text-align: right;
	padding: 12px 10px;
	border-bottom: 2px solid #cbd5e1;
	color: #475569;
	transition: all 0.2s ease;
}

.stat_header td:hover {
	cursor: pointer;
	color: #1d428a;
	background-color: #e0e7ff;
}

.stat_header td:nth-child(2) {
	text-align: left !important;
	min-width: 50px;
}

.stat_header td:nth-child(3) {
	text-align: left !important;
	min-width: 115px;
}

.stat_header td:nth-child(4) {
	text-align: center !important;
}

.stat_header td:nth-child(2):hover, .stat_header td:nth-child(3):hover, .stat_header td:nth-child(4):hover {
	cursor: default !important;
	color: #475569 !important;
	background-color: transparent !important;
}

#stats_filter div {
	display: inline-block;
	margin: 0 5px;
	margin-bottom: 10px;
	background-color: #f2f2f2;
	padding: 4px;
	border-radius: 4px;
	font-size: 9px;
	cursor: pointer;
}

/* Estilos para imagens de jogadores em hoops_stats */
#player_img2 .img_crop2 {
	width: 45px;
	height: 30px;
	background-size: 45px 30px !important;
}

#player_img2 .crop2 {
	max-width: 100%;
	height: auto;
}

/* Scroll horizontal suave para tabelas no mobile */
.overflow-x-auto {
	overflow-x: auto !important;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 #f1f5f9;
	max-width: 100%;
}

.overflow-x-auto::-webkit-scrollbar {
	height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* Garantir que tabelas grandes tenham scroll no mobile */
@media (max-width: 768px) {
	.overflow-x-auto {
		overflow-x: scroll !important;
	}
	
	.overflow-x-auto table {
		min-width: 900px !important;
	}
	
	.overflow-x-auto table td,
	.overflow-x-auto table th {
		white-space: nowrap;
		font-size: 11px !important;
		padding: 8px 6px !important;
	}
}

/* Garantir scroll no mobile para max-width 480px */
@media (max-width: 480px) {
	.overflow-x-auto table {
		min-width: 1000px !important;
	}
	
	.overflow-x-auto table td,
	.overflow-x-auto table th {
		font-size: 10px !important;
		padding: 6px 4px !important;
	}
}

/* Estilos para posições e logos de times */
.player-position {
	color: #909090;
	font-size: 10px;
}

.team-logo-small {
	width: 20px;
	height: 20px;
}

.season-year {
	font-size: 10px;
	color: #909090;
	margin-right: 5px;
}

/* ===== ESTILOS PARA HOOPS_PLAYERS.PHP ===== */

.spot_pic {
	display: block;
	width: 30px;
	height: 30px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
	border: 1px solid #e5e5e5;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.spot_pic:hover {
	border-color: #1d428a;
	transform: scale(1.05);
}

.spot_pic img {
	display: block;
	margin: 0 auto;
	width: 100%;
	height: auto;
	border-radius: 50%;
}

.bio {
	font-size: 9px;
	color: #909090;
	font-style: italic;
}

/* Tabela de jogadores */
.players-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 10px;
}

.players-table th,
.players-table td {
	padding: 8px 4px;
	text-align: center;
	border-bottom: 1px solid #e5e7eb;
	white-space: nowrap;
}

.players-table thead th {
	background: linear-gradient(135deg, #f8fafc, #e2e8f0);
	font-weight: 600;
	color: #475569;
	position: sticky;
	top: 0;
	z-index: 10;
	padding: 10px 5px;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border-bottom: 2px solid #cbd5e1;
}

.players-table thead td {
	background: linear-gradient(135deg, #f8fafc, #e2e8f0);
	color: #475569;
	font-weight: 600;
	padding: 10px 5px;
	font-size: 9px;
	text-transform: uppercase;
	border-bottom: 2px solid #cbd5e1;
}

.players-table tr:hover {
	background-color: #f8fafc;
}

.players-table .head_link {
	cursor: pointer;
	transition: all 0.2s ease;
	display: block;
}

.players-table .head_link:hover {
	color: #1d428a;
	background-color: #e0e7ff;
}

.players-table .highlight {
	background-color: #fef3c7 !important;
	font-weight: bold;
}

.players-table a {
	color: #1d428a;
	text-decoration: none;
	transition: all 0.2s ease;
}

.players-table a:hover {
	color: #c8102e;
	text-decoration: underline;
}

.players-table tbody th,
.players-table tbody td {
	background-color: white;
	color: #374151;
}

.players-table tbody tr:nth-child(even) {
	background-color: #f9fafb;
}

.position {
	display: inline-block;
	padding: 2px 8px;
	background-color: #e5e7eb;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	color: #374151;
}

