/**
 * Crackstreams v1 — main stylesheet.
 */

:root {
	--cs-bg: #0b111a;
	--cs-bg-elevated: #121c26;
	--cs-card: #243447;
	--cs-footer-bg: #050a12;
	--cs-text: #ffffff;
	--cs-text-muted: #a0aec0;
	--cs-text-body: #cbd5e0;
	--cs-border: rgba(255, 255, 255, 0.12);
	--cs-accent: #ff4b2b;
	--cs-radius: 8px;
	--cs-header-h: 64px;
	--cs-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body.crackstreams-v1 {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--cs-bg);
	color: var(--cs-text-body);
	font-family: var(--cs-font);
	font-size: 16px;
	line-height: 1.6;
	padding-top: var(--cs-header-h);
}

/* ——— Accessibility ——— */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	background: var(--cs-card);
	clip: auto !important;
	clip-path: none;
	color: var(--cs-text);
	display: block;
	height: auto;
	left: 8px;
	padding: 12px 16px;
	top: 8px;
	width: auto;
	z-index: 100001;
	text-decoration: none;
	border-radius: var(--cs-radius);
}

/* ——— Header ——— */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100000;
	height: var(--cs-header-h);
	background: rgba(11, 17, 26, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--cs-border);
}

.site-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.site-title a {
	color: var(--cs-text);
	text-decoration: none;
}

.site-title a:hover,
.site-title a:focus {
	color: var(--cs-text-muted);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius);
	background: transparent;
	cursor: pointer;
}

.menu-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	background: var(--cs-text);
}

.main-navigation .menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 4px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation .menu a {
	color: var(--cs-text);
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.main-navigation .menu a:hover,
.main-navigation .menu a:focus {
	color: var(--cs-text-muted);
}

@media (max-width: 900px) {
	.menu-toggle {
		display: flex;
	}

	.main-navigation {
		position: absolute;
		top: var(--cs-header-h);
		left: 0;
		right: 0;
		background: var(--cs-bg-elevated);
		border-bottom: 1px solid var(--cs-border);
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		transition: max-height 0.25s ease, opacity 0.2s ease;
	}

	body.nav-open .main-navigation {
		max-height: 70vh;
		overflow-y: auto;
		opacity: 1;
		visibility: visible;
	}

	.main-navigation .menu {
		flex-direction: column;
		align-items: stretch;
		padding: 12px 20px 20px;
		gap: 0;
	}

	.main-navigation .menu li {
		border-bottom: 1px solid var(--cs-border);
	}

	.main-navigation .menu a {
		display: block;
		padding: 12px 0;
		font-size: 0.8125rem;
	}
}

/* ——— Layout ——— */
.site-content {
	flex: 1 0 auto;
	padding: 32px 20px 48px;
}

.site-content__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr;
}

@media (min-width: 960px) {
	body.has-sidebar .site-content__inner {
		grid-template-columns: minmax(0, 1fr) minmax(260px, 28%);
		align-items: start;
	}
}

.content-main {
	min-width: 0;
}

/* ——— Hero ——— */
.cs-hero {
	padding: 24px 0 8px;
	margin-bottom: 8px;
}

.cs-hero__title {
	margin: 0 0 16px;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 700;
	color: var(--cs-text);
	line-height: 1.2;
}

.cs-hero__description {
	margin: 0;
	color: var(--cs-text-muted);
	font-size: 1.05rem;
	max-width: 52rem;
}

.cs-hero__description p:first-child {
	margin-top: 0;
}

.cs-hero__description p:last-child {
	margin-bottom: 0;
}

/* ——— Search ——— */
.cs-search-form {
	margin: 20px 0 24px;
}

.cs-search-form__input {
	width: 100%;
	padding: 14px 18px;
	border-radius: var(--cs-radius);
	border: 1px solid var(--cs-border);
	background: var(--cs-bg-elevated);
	color: var(--cs-text);
	font-family: inherit;
	font-size: 1rem;
}

.cs-search-form__input::placeholder {
	color: var(--cs-text-muted);
}

.cs-search-form__input:focus {
	outline: 2px solid var(--cs-accent);
	outline-offset: 2px;
}

/* ——— Front page: schedule blocks outside the article card ——— */
.cs-front-schedule {
	margin: 0 0 24px;
}

.cs-front-schedule .sports-cards-wrapper:last-child,
.cs-front-schedule .sports-menu-wrapper:last-child {
	margin-bottom: 0;
}

/* Har event card yahan clearly dikhe (schedule area = card ke bahar) */
.cs-front-schedule .crackstreams-event-card,
.cs-front-schedule .sports-card-item {
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--cs-radius);
	background: var(--cs-card);
}

/* ——— Content card (page / article shell) ——— */
.cs-content-card {
	background: var(--cs-card);
	border-radius: var(--cs-radius);
	padding: 32px 36px;
	margin-bottom: 24px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cs-content-card:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.cs-content-card--list {
	padding: 24px 28px;
}

.entry-header {
	margin-bottom: 20px;
}

.entry-title {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 2rem);
	font-weight: 700;
	color: var(--cs-text);
	line-height: 1.25;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--cs-text-muted);
}

.entry-meta {
	margin-top: 8px;
	font-size: 0.875rem;
	color: var(--cs-text-muted);
}

.entry-content {
	color: var(--cs-text-body);
	font-size: 1.0625rem;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--cs-text);
	font-weight: 700;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	line-height: 1.3;
}

.entry-content h2 {
	font-size: 1.5rem;
}

.entry-content h3 {
	font-size: 1.2rem;
}

.entry-content p,
.entry-content li {
	margin-top: 0.75em;
	margin-bottom: 0.75em;
}

.entry-content a {
	color: var(--cs-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content a:hover {
	color: var(--cs-text-muted);
}

.entry-content ol,
.entry-content ul {
	padding-left: 1.25em;
}

.entry-content strong {
	color: var(--cs-text);
}

.cs-empty {
	color: var(--cs-text-muted);
	margin: 0;
}

/* ——— Pagination ——— */
.navigation.pagination,
.cs-pagination {
	margin-top: 16px;
}

.navigation.pagination .nav-links,
.cs-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.navigation.pagination a,
.navigation.pagination span,
.cs-pagination a,
.cs-pagination span {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 6px;
	background: var(--cs-card);
	color: var(--cs-text);
	text-decoration: none;
	border: 1px solid var(--cs-border);
	font-size: 0.875rem;
}

.navigation.pagination span.current,
.cs-pagination span.current {
	background: var(--cs-accent);
	border-color: var(--cs-accent);
	color: #fff;
}

/* ——— Plugin / event card helpers ——— */
.crackstreams-event-card {
	position: relative;
	background: var(--cs-card);
	border-radius: var(--cs-radius);
	padding: 14px 16px;
	margin-bottom: 6px;
	border: 1px solid transparent;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.sports-cards-grid > .crackstreams-event-card,
.sports-cards-grid > .sports-card-item {
	margin-bottom: 0;
}

.crackstreams-event-card:hover {
	border-color: rgba(255, 255, 255, 0.08);
	transform: translateY(-1px);
}

.crackstreams-event-card .event-title,
.crackstreams-event-card .cs-event-title {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--cs-text);
}

.crackstreams-event-meta,
.crackstreams-event-card .event-meta {
	font-size: 0.8125rem;
	color: var(--cs-text-muted);
}

.cs-live-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--cs-accent);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.crackstreams-event-card.is-live {
	padding-right: 88px;
}

.crackstreams-event-card.is-live .cs-live-badge {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
}

/* ——— Sidebar widgets ——— */
.sidebar .widget {
	background: var(--cs-card);
	border-radius: var(--cs-radius);
	padding: 20px;
	margin-bottom: 20px;
	border: 1px solid var(--cs-border);
}

.sidebar .widget-title {
	margin: 0 0 14px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #7dd3fc;
	text-transform: none;
	letter-spacing: 0;
}

.sidebar .widget a {
	color: var(--cs-text-body);
}

/* “Follow Us” + CTA buttons (Custom HTML) */
.cs-follow-widget__label {
	margin: 0 0 14px;
	font-weight: 700;
	color: var(--cs-text);
	font-size: 1rem;
}

.cs-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 16px;
	margin-bottom: 12px;
	border-radius: var(--cs-radius);
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
	letter-spacing: 0.02em;
	line-height: 1.3;
	color: #0f172a;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.cs-btn:last-child {
	margin-bottom: 0;
}

.cs-btn:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.cs-btn--telegram {
	background: #7dd3fc;
}

.cs-btn--discord {
	background: #c4b5fd;
}

/* ——— Footer ——— */
.site-footer {
	background: var(--cs-footer-bg);
	color: var(--cs-text-muted);
	padding: 40px 20px 48px;
	margin-top: auto;
	text-align: center;
	font-size: 0.9375rem;
}

.site-footer__inner {
	max-width: 720px;
	margin: 0 auto;
}

.site-footer__title {
	margin: 0 0 16px;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--cs-text);
}

.site-footer__disclaimer {
	margin: 0 0 24px;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--cs-text-muted);
}

.site-footer__disclaimer p {
	margin: 0.5em 0;
}

.site-footer__widgets {
	margin-bottom: 16px;
}

.site-footer__widgets--legal {
	margin-bottom: 0;
	font-size: 0.75rem;
}

.site-footer .widget {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

.site-footer__widgets--links .widget a,
.site-footer__widgets--links a {
	color: var(--cs-text-muted);
	text-decoration: underline;
	font-size: 0.875rem;
}

.site-footer__widgets--links .widget_nav_menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
}

.site-footer__widgets--links .widget_nav_menu li {
	display: inline;
}

.site-footer__widgets--legal .widget a,
.site-footer__widgets--legal a {
	color: var(--cs-text-muted);
	text-decoration: underline;
	font-size: 0.75rem;
}

.site-footer__widgets--legal .widget_nav_menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 14px;
}

/* ——— WordPress blocks inside entry-content ——— */
.entry-content .wp-block-image img {
	border-radius: 6px;
	height: auto;
	max-width: 100%;
}
