/* ==========================================
   Mais Bola Plugin - Estilos do Frontend
   ========================================== */

/* import font Krub */
@import url('https://fonts.googleapis.com/css2?family=Krub:wght@400;700;900&display=swap');

:root {
	--mais-bola-text: #849BC3;
	--mais-bola-bg-card: #0D1316;
	--mais-bola-bg-green: #1F9753;
	--mais-bola-bg-yellow: #FED229;
	--mais-bola-font: 'Lato', sans-serif;
}

* {
	font-family: var(--mais-bola-font);
}

[type="button"].nav-button:focus, button.nav-button:focus {
    background-color: transparent!important;
}

#mais-bola-single-post .mais-bola-content a {
    text-decoration: none;
    color: var(--mais-bola-bg-green);

    &:hover {
        text-decoration: underline;
    }
}


.nav-button {
    background: #162025;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-block;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    position: relative;
}

.nav-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    vertical-align: middle;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav-button:hover {
    background: #1F9753;
}

.nav-button.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


/* Container principal */
.mais-bola-widget {
	color: var(--mais-bola-text);
	background: var(--mais-bola-bg-card);
	border-radius: 12px;
	
	/* margin: 20px 0; */
	border: 1px solid rgba(132, 155, 195, 0.2);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mais-bola-widget .campeonato-header {
    padding: 20px;
}


/* Títulos */
.mais-bola-widget h1,
.mais-bola-widget h2,
.mais-bola-widget h3 {
	color: var(--mais-bola-text);
	font-family: var(--mais-bola-font);
	font-weight: 700;
	margin: 0;
}

/* Cards */
.mais-bola-card {
	background: rgba(13, 19, 22, 0.8);
	border: 1px solid rgba(132, 155, 195, 0.2);
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 15px;
	transition: all 0.3s ease;
}

.mais-bola-card:hover {
	border-color: rgba(132, 155, 195, 0.5);
	box-shadow: 0 6px 16px rgba(31, 151, 83, 0.1);
}

/* Badges e status */
.mais-bola-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mais-bola-badge-success {
	background: rgba(31, 151, 83, 0.2);
	color: var(--mais-bola-bg-green);
}

.mais-bola-badge-warning {
	background: rgba(254, 210, 41, 0.2);
	color: var(--mais-bola-bg-yellow);
}

.mais-bola-badge-info {
	background: rgba(132, 155, 195, 0.2);
	color: var(--mais-bola-text);
}

/* Grid */
.mais-bola-grid {
	display: grid;
	gap: 20px;
	margin: 20px 0;
}

.mais-bola-grid-2 {
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.mais-bola-grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Botões */
.mais-bola-btn {
	display: inline-block;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-family: var(--mais-bola-font);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	text-align: center;
}

.mais-bola-btn-primary {
	background: var(--mais-bola-bg-green);
	color: white;
}

.mais-bola-btn-primary:hover {
	background: #17742a;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(31, 151, 83, 0.3);
}

.mais-bola-btn-secondary {
	background: transparent;
	color: var(--mais-bola-text);
	border: 2px solid var(--mais-bola-text);
}

.mais-bola-btn-secondary:hover {
	border-color: var(--mais-bola-bg-green);
	color: var(--mais-bola-bg-green);
}

/* Tabela de classificação */
.mais-bola-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}

.mais-bola-table thead {
	background: rgba(31, 151, 83, 0.1);
	border-bottom: 2px solid var(--mais-bola-bg-green);
}

.mais-bola-table th {
	color: var(--mais-bola-bg-green);
	font-weight: 700;
	padding: 12px;
	text-align: left;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mais-bola-table td {
	color: var(--mais-bola-text);
	padding: 12px;
	border-bottom: 1px solid rgba(132, 155, 195, 0.1);
}

.mais-bola-table tbody tr:hover {
	background: rgba(31, 151, 83, 0.05);
}

/* Placar */
.mais-bola-score {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 20px;
	background: rgba(31, 151, 83, 0.05);
	border-radius: 8px;
	margin: 15px 0;
}

.mais-bola-score-team {
	text-align: center;
	flex: 1;
}

.mais-bola-score-value {
	font-size: 48px;
	font-weight: 700;
	color: var(--mais-bola-bg-green);
	margin: 0;
}

.mais-bola-score-name {
	color: var(--mais-bola-text);
	font-size: 14px;
	margin-top: 5px;
}

.mais-bola-vs {
	color: var(--mais-bola-text);
	font-weight: 700;
	opacity: 0.5;
}

/* Loading */
.mais-bola-loading {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 200px;
}

.mais-bola-loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(132, 155, 195, 0.2);
	border-top: 4px solid var(--mais-bola-bg-green);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Alert */
.mais-bola-alert {
	padding: 15px;
	border-radius: 8px;
	margin: 15px 0;
	border-left: 4px solid;
}

.mais-bola-alert-success {
	background: rgba(31, 151, 83, 0.1);
	border-color: var(--mais-bola-bg-green);
	color: var(--mais-bola-bg-green);
}

.mais-bola-alert-error {
	background: rgba(231, 76, 60, 0.1);
	border-color: #e74c3c;
	color: #e74c3c;
}

.mais-bola-alert-warning {
	background: rgba(254, 210, 41, 0.1);
	border-color: var(--mais-bola-bg-yellow);
	color: var(--mais-bola-bg-yellow);
}

.mais-bola-alert-info {
	background: rgba(132, 155, 195, 0.1);
	border-color: var(--mais-bola-text);
	color: var(--mais-bola-text);
}


/* Responsividade */
@media (max-width: 768px) {
	.mais-bola-grid-2,#mais-bola-single-post .mais-bola-content a
	.mais-bola-grid-3 {
		grid-template-columns: 1fr;
	}

	.mais-bola-score {
		flex-direction: column;
		gap: 10px;
	}

	.mais-bola-score-value {
		font-size: 36px;
	}

	.mais-bola-table {
		font-size: 12px;
	}

	.mais-bola-table th,
	.mais-bola-table td {
		padding: 8px;
	}
}



/* Container Principal */
.jogos-hoje-container {
    background: var(--mais-bola-bg-card, #0D1316);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Cabeçalho do Campeonato */
.campeonato-header {
    padding: 0 0 20px 0;
    border-bottom: 1px solid rgba(132, 155, 195, 0.1);
}

.campeonato-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.campeonato-icone {
    /* width: 36px; */
    height: 30px!important;
    object-fit: contain;
    border-radius: 8px;
}

.campeonato-icone-placeholder {
    width: 36px;
    height: 36px;
    background: rgba(31, 151, 83, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.campeonato-titulo {
    color: #849BC3;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.campeonato-subtitulo {
    color: var(--mais-bola-bg-yellow, #FFD700);
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    margin: 4px 0 0 0;
    opacity: 0.7;
}

/* Lista de Partidas */
.partidas-lista {
    padding: 0;
}

.partidas-lista footer {
    padding: 12px 20px 20px 20px;
    text-align: center;
}

.partidas-lista a.link-ver-tabela {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--mais-bola-text);
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;

    &:hover {
        color: var(--mais-bola-bg-yellow, #FFD700);
    }
}

/* Card da Partida */
.partida-card {
    background: #0D1316;
    border-bottom: 1px solid rgba(132, 155, 195, 0.1);
    padding: 10px 20px;
    transition: background 0.3s ease;
}

.partida-card:hover {
    background: rgba(31, 151, 83, 0.03);
}

.partida-card:last-child {
    border-bottom: none;
}

/* Info da Partida */
.partida-info {
    margin-bottom: 0px;
    text-align: center;
}

.partida-data-local {
    color: #849BC3;
    font-family: 'Krub', sans-serif;
    font-size: 12px;
    margin: 0 0 4px 0;
    opacity: 0.8;
    overflow: hidden;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 252px;
}

/* Times e Placar */
.partida-times {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 30px;
}

.box-partida {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.partida-times .box {
    /* width: calc(100% - 190px); */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 240px;
}

.item-jogo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.time {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.time:last-child {
    flex-direction: row-reverse;
}

.time-escudo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.time-sigla {
    color: #fff;
    font-family: 'Krub', sans-serif;
    font-size: 18px;
    font-weight: bold;
}

/* Centro (Horário/Placar) */
.partida-centro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.partida-horario {
    color: #fff;
    font-family: 'Krub', sans-serif;
    font-size: 18px;
    font-weight: 900;
}

.placar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.placar-numero {
    color: #fff;
    font-family: 'Krub', sans-serif;
    font-size: 18px;
    font-weight: 900;
}

.placar-separador {
    color: #fff;
    font-family: 'Krub', sans-serif;
    font-size: 18px;
    font-weight: 900;
}

.status-ao-vivo {
    background: #1F9753;
    color: white;
    font-family: 'Krub', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.status-intervalo {
    background: #FED229;
    color: #0D1316;
    font-family: 'Krub', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Botão */
[type="button"].partida-btn, [type="submit"].partida-btn, button.partida-btn, button.partida-btn:focus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    background: transparent;
    border: 1px solid rgba(132, 155, 195, 0.3);
    color: #849BC3;
    font-family: 'Krub', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    top: 6px;
    white-space: nowrap;
}

[type="button"].partida-btn:hover, [type="submit"].partida-btn:hover, button.partida-btn:hover {
    background: rgba(31, 151, 83, 0.1);
    border-color: #1F9753;
    color: #1F9753;
}

.feather-icon {
    flex-shrink: 0;
}

 .partida-status {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.partida-tempo {
    font-size: 11px;
    color: #ff495c;
    position: relative;
    /* right: -15px; */
    /* top: -4px; */
    display: inline-block;
    text-align: center;
}

.minuto-animado {
    animation: pulsar 2s ease-in-out infinite;
}

.color-yellow {
    color: var(--mais-bola-bg-yellow, #FFD700);
}

@keyframes pulsar {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsivo */
@media (max-width: 640px) {
    .campeonato-header {
        padding: 16px;
    }

    .partida-card {
        padding: 12px 16px;
    }

    .partida-times {
        gap: 10px;
    }

    .time-escudo {
        width: 28px;
        height: 28px;
    }

    .partida-horario {
        font-size: 18px;
    }

    .placar-numero {
        font-size: 18px;
    }

    .partida-btn {
        font-size: 11px;
        padding: 8px 12px;

        & span {
            display: none;
        }
    }
}

/* ==========================================
   Sticky Header on Scroll Up
   ========================================== */
#header-nav-desktop.sticky-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #090909;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Transição suave para o body padding */
body {
    transition: padding-top 0.3s ease;
}

/* ==========================================
   Mobile Search Toggle
   ========================================== */
#campo-busca.campo-busca-mobile-active {
    display: block !important;
    position: fixed !important;
    top: 75px !important;
    z-index: 99 !important;
    left: 0 !important;
    width: 100% !important;
    animation: fadeInDown 0.3s ease-out;
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}