/* =============================================
   RESPONSIVE — Mobile & Tablet Breakpoints
   ============================================= */

/* ── MOBILE OVERLAY ── */
.mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 199;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms ease, visibility 300ms ease;
}
.mobile-overlay.open {
	opacity: 1;
	visibility: visible;
}

/* ── MOBILE DRAWER ── */
.mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 200;
	width: min(320px, 85vw);
	height: 100dvh;
	background: var(--color-surface);
	border-left: 1px solid var(--color-border);
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
	transform: translateX(100%);
	transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	padding: var(--space-8) var(--space-6);
	gap: var(--space-2);
}
.mobile-drawer.open {
	transform: translateX(0);
}
.mobile-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-6);
	padding-bottom: var(--space-4);
	border-bottom: 1px solid var(--color-divider);
}
.mobile-drawer__title {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: var(--text-lg);
	color: var(--color-text);
}
.mobile-drawer__link {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-md);
	font-size: var(--text-base);
	font-weight: 600;
	color: var(--color-text-muted);
	transition: color var(--transition), background var(--transition);
}
.mobile-drawer__link:hover,
.mobile-drawer__link:focus {
	color: var(--color-text);
	background: var(--color-surface-offset);
}
.mobile-drawer__link.active {
	color: var(--color-primary);
	background: var(--color-primary-glow);
}
.mobile-drawer__link svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	opacity: 0.6;
}
.mobile-drawer__divider {
	height: 1px;
	background: var(--color-divider);
	margin: var(--space-3) 0;
}
.mobile-drawer__actions {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding-top: var(--space-6);
	border-top: 1px solid var(--color-divider);
}

/* ── TABLET ≤1024px ── */
@media (max-width: 1024px) {
	.hero__inner {
		gap: var(--space-10);
	}
	.footer__grid {
		grid-template-columns: 2fr 1fr 1fr;
	}
	.footer__grid > div:last-child {
		grid-column: 1 / -1;
	}
}

/* ── TABLET / SMALL DESKTOP ≤900px ── */
@media (max-width: 900px) {
	.hero__inner {
		grid-template-columns: 1fr;
		gap: var(--space-10);
	}
	.hero__panel {
		order: -1;
	}
	.news-grid {
		grid-template-columns: 1fr 1fr;
	}
	.footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-8);
	}
	.hc-banner__inner {
		flex-direction: column;
		text-align: center;
	}
	.hc-banner__cta {
		justify-content: center;
	}

	/* Hide desktop nav elements */
	.nav__links {
		display: none;
	}
	.nav__search {
		display: none;
	}
	#btn-login,
	#btn-register {
		display: none;
	}
	.nav__menu-btn {
		display: flex;
	}

	/* Tables: horizontal scroll */
	.full-table-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.full-table-wrap table {
		min-width: 700px;
	}
}

/* ── MOBILE ≤600px ── */
@media (max-width: 600px) {
	.news-grid {
		grid-template-columns: 1fr;
	}
	.footer__grid {
		grid-template-columns: 1fr;
	}
	.footer__bottom {
		flex-wrap: wrap;
		gap: var(--space-4);
		justify-content: center;
		text-align: center;
	}
	.hero__stats {
		flex-direction: column;
		gap: var(--space-4);
	}
	.hc-banner {
		padding: var(--space-8) 0;
	}
	.hero {
		min-height: auto;
		padding-top: calc(68px + 52px + var(--space-10));
		padding-bottom: var(--space-16);
	}
	.hero__title {
		font-size: clamp(2.5rem, 1rem + 6vw, 5rem);
	}
	.container {
		padding-inline: var(--space-4);
	}
	.container--wide {
		padding-inline: var(--space-4);
	}

	/* Panel cards: smaller padding */
	.panel-card__header {
		padding: var(--space-3) var(--space-4);
	}
	.standings-table th,
	.standings-table td {
		padding: var(--space-2) var(--space-3);
		font-size: var(--text-xs);
	}
	.match-row {
		padding: var(--space-2) var(--space-3);
		gap: var(--space-2);
	}
	.match-team {
		font-size: var(--text-xs);
	}

	/* Ticker adjust */
	.ticker {
		height: 44px;
	}
	.ticker__track {
		gap: var(--space-4);
	}

	/* Section headers */
	.section {
		padding-block: var(--space-10);
	}
}

/* ── VERY SMALL ≤400px ── */
@media (max-width: 400px) {
	.hero__cta {
		flex-direction: column;
		align-items: stretch;
	}
	.hero__cta .btn {
		justify-content: center;
		text-align: center;
	}
	.hc-banner__cta {
		flex-direction: column;
		align-items: stretch;
	}
	.hc-banner__cta .btn--white {
		text-align: center;
		justify-content: center;
	}
	.nav__inner {
		padding-inline: var(--space-3);
	}
	.equipo-card img {
		max-width: 100px;
	}
}

/* ── ZOOM SUPPORT ── */
@media (min-resolution: 1.5dppx) {
	.full-table-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}
