/* ============================================================
   Betcat — light news look, red accent, dark header/footer.
   Custom properties are in place so a dark-mode toggle can be
   added later without a rewrite.
   ============================================================ */

:root {
	--bg:          #f4f5f7;
	--surface:     #ffffff;
	--text:        #1c2128;
	--muted:       #5c6670;
	--accent:      #c8102e;
	--accent-dark: #990c23;
	--header-bg:   #16181d;
	--header-text: #eef1f4;
	--footer-bg:   #16181d;
	--border:      #e3e6ea;
	--radius:      6px;
	--container:   1120px;
	--font-body:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head:   "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	line-height: 1.25;
	margin: 0 0 .5em;
	letter-spacing: .01em;
}

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 16px;
}

.screen-reader-text, .skip-link {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	width: auto; height: auto;
	clip: auto;
	z-index: 999;
	padding: 8px 14px;
	background: var(--accent);
	color: #fff;
}

/* ---------- Header ---------- */

.site-header {
	background: var(--header-bg);
	color: var(--header-text);
}

.topbar {
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	font-size: .8rem;
}
.topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 36px;
	gap: 16px;
}
.today-date { color: #aab3bd; text-transform: capitalize; }
.top-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 18px; }
.top-menu a { color: #cbd3db; }
.top-menu a:hover { color: #fff; }

.branding {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding-block: 20px;
}
.site-title {
	margin: 0;
	font-size: 1.9rem;
	font-family: var(--font-head); /* h1 on front page, p elsewhere — force identical look */
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.2;
}
.site-title a { color: var(--header-text); display: flex; align-items: center; gap: 12px; }
.site-logo-img { height: 56px; width: 56px; display: block; }
.site-description { margin: 4px 0 0; color: #aab3bd; font-size: .85rem; }

.search-form { display: flex; }
.search-form .search-field {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius) 0 0 var(--radius);
	font-size: .9rem;
	min-width: 0;
}
.branding-search .search-field { width: 200px; }
.search-form .search-submit {
	padding: 8px 14px;
	border: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	font-size: .9rem;
}

/* Primary nav — dark bar, red accent on hover. No mega menus. */
.primary-nav {
	background: var(--accent);
}
.nav-inner { display: flex; align-items: center; }
.menu {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0; padding: 0;
}
.menu li { position: relative; }
.menu a {
	display: block;
	padding: 13px 16px;
	color: #fff;
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.menu a:hover, .menu li:hover > a { background: var(--accent-dark); color: #fff; }
.menu .current-menu-item > a { background: var(--accent-dark); }

/* 2nd-level dropdowns (desktop) */
.menu .sub-menu {
	position: absolute;
	top: 100%; left: 0;
	z-index: 60;
	min-width: 220px;
	list-style: none;
	margin: 0; padding: 6px 0;
	background: var(--header-bg);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s ease;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}
.menu .sub-menu a {
	padding: 9px 16px;
	font-size: .9rem;
	text-transform: none;
	font-weight: 400;
}
.menu .sub-menu a:hover { background: rgba(255, 255, 255, .08); }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 14px 4px;
	background: none;
	border: 0;
	cursor: pointer;
}
.nav-toggle-bar {
	display: block;
	width: 26px; height: 3px;
	background: #fff;
	border-radius: 2px;
}

/* ---------- Breaking-news ticker ---------- */

.ticker {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}
.ticker-inner {
	display: flex;
	align-items: stretch;
	min-height: 44px;
	gap: 14px;
}
.ticker-label {
	align-self: center;
	flex-shrink: 0;
	padding: 3px 10px;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-head);
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	border-radius: 3px;
}
.ticker-items {
	position: relative;
	flex: 1;
	list-style: none;
	margin: 0; padding: 0;
	min-height: 44px;
	overflow: hidden; /* clips items sliding in/out */
}
.ticker-item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	transform: translateY(100%);
	opacity: 0;
	visibility: hidden;
	transition: transform .4s ease, opacity .4s ease, visibility 0s .4s;
	overflow: hidden;
}
/* is-leaving slides up and out; is-active slides up and in — no overlap. */
.ticker-item.is-active,
.ticker-item.is-leaving {
	visibility: visible;
	transition: transform .4s ease, opacity .4s ease;
}
.ticker-item.is-active  { transform: translateY(0); opacity: 1; }
.ticker-item.is-leaving { transform: translateY(-100%); opacity: 0; }
.ticker-item a {
	display: block;
	min-width: 0; /* lets the ellipsis work inside the flex item */
	color: var(--text);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ticker-item a:hover { color: var(--accent); }

/* ---------- Layout ---------- */

.site-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	padding-block: 24px;
}
/* Pages without a sidebar (e.g. 404) span the full width. */
.site-body > .content-area:only-child { grid-column: 1 / -1; }
.content-area { min-width: 0; }

/* ---------- Post cards / grids ---------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.post-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .15s ease;
}
.post-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.post-card-thumb { display: block; aspect-ratio: 310 / 165; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 12px 16px 14px; }
.post-card-title { font-size: 1.05rem; margin: 0 0 6px; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); }
.post-card-date { color: var(--muted); font-size: .8rem; }

/* ---------- Home hero ---------- */

.home-hero {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 28px;
}
.home-hero-thumb { display: block; }
.home-hero-thumb img { width: 100%; display: block; }
.home-hero-body { padding: 18px 22px 20px; }
.home-hero-title { font-size: 1.7rem; margin-bottom: 8px; }
.home-hero-title a { color: var(--text); }
.home-hero-title a:hover { color: var(--accent); }
.home-hero-excerpt { margin: 8px 0 0; color: var(--muted); }

.home-intro {
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
	padding: 14px 20px;
	margin: -10px 0 26px;
	color: var(--muted);
	font-size: .95rem;
}

/* ---------- Section heads ---------- */

.section-head, .archive-head { margin-bottom: 18px; }
.section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 6px;
	margin: 30px 0 18px;
}
.section-title {
	font-size: 1.25rem;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.section-title a { color: var(--text); }
.section-more { font-size: .82rem; white-space: nowrap; }
.archive-title { font-size: 1.6rem; margin-bottom: 6px; }
.archive-desc { color: var(--muted); font-size: .95rem; }

/* ---------- Single post ---------- */

.breadcrumbs {
	font-size: .8rem;
	color: var(--muted);
	margin-bottom: 14px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

.post-single {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 26px 30px;
}
.post-title { font-size: 1.85rem; margin-bottom: 8px; }
.post-meta { color: var(--muted); font-size: .85rem; margin: 0 0 18px; }
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--accent); }
.post-meta-sep { margin-inline: 6px; }

.post-featured { margin: 0 0 20px; }
.post-featured img { width: 100%; border-radius: var(--radius); display: block; }

.entry-content { font-size: 1.02rem; }
.entry-content img { border-radius: 4px; }
.entry-content iframe { max-width: 100%; }
.entry-content a { text-decoration: underline; }
.entry-content a:hover { text-decoration: none; }
.entry-content blockquote {
	margin: 1.2em 0;
	padding: 12px 20px;
	border-left: 4px solid var(--accent);
	background: #fafbfc;
	font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { border: 1px solid var(--border); padding: 7px 10px; }
.entry-content th { background: #f0f2f4; text-align: left; }

.post-tags { margin: 22px 0 0; font-size: .85rem; }
.post-tags span { color: var(--muted); }
.post-tags a {
	display: inline-block;
	padding: 2px 10px;
	margin-right: 4px;
	background: #eef1f4;
	border-radius: 20px;
	color: var(--text);
}
.post-tags a:hover { background: var(--accent); color: #fff; }

.share-links {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	font-size: .85rem;
}
.share-links > span { color: var(--muted); }
.share {
	padding: 5px 14px;
	border-radius: 20px;
	border: 1px solid var(--border);
	color: var(--text);
	background: var(--surface);
}
.share:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Author box / post nav / related ---------- */

.author-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px 22px;
	margin-top: 20px;
}
.author-box .avatar { border-radius: 50%; }
.author-name { margin: 0 0 4px; font-size: 1.05rem; }
.author-bio { margin: 0; color: var(--muted); font-size: .9rem; }

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 20px;
	font-size: .9rem;
}
.post-nav a { color: var(--text); }
.post-nav a:hover { color: var(--accent); }
.post-nav-next { text-align: right; }

.related-posts { margin-top: 28px; }
.related-posts .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Comments ---------- */

.comments-area {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px 26px;
	margin-top: 24px;
}
.comments-title { font-size: 1.2rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment {
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}
.comment-list .children { list-style: none; margin-left: 24px; padding-left: 14px; border-left: 2px solid var(--border); }
.comment-body { display: flex; gap: 12px; }
.comment-body .avatar { border-radius: 50%; flex-shrink: 0; }
.comment-author { font-weight: 600; font-size: .9rem; }
.comment-meta { font-size: .75rem; color: var(--muted); }
.comment-content p { margin: 6px 0; font-size: .95rem; }
.comment-reply-link { font-size: .8rem; }
.bypostauthor > .comment-body { background: #fdf3f4; border-radius: var(--radius); padding: 10px; }

.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font: inherit;
	margin-bottom: 14px;
}
.comment-form .comment-submit,
.btn {
	padding: 9px 22px;
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	cursor: pointer;
}
.comment-form .comment-submit:hover { background: var(--accent-dark); }

/* ---------- Sidebar / widgets ---------- */

.site-sidebar .widget {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px 18px;
	margin-bottom: 20px;
}
.widget-title {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding-bottom: 8px;
	margin-bottom: 12px;
	border-bottom: 2px solid var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 5px 0; font-size: .92rem; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--accent); }

.betcat-popular li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.betcat-popular li:last-child { border-bottom: 0; }
.popular-thumb { flex-shrink: 0; }
.popular-thumb img { width: 55px; height: auto; border-radius: 4px; display: block; }
.popular-title { font-size: .88rem; line-height: 1.35; }
.betcat-popular time { display: block; font-size: .72rem; color: var(--muted); }

/* Live news conveyor — viewport clips, the list itself slides up. */
.live-news-viewport { overflow: hidden; max-height: 276px; } /* 4 items visible */
.live-news { list-style: none; margin: 0; padding: 0; }
.live-news-item {
	display: flex;
	gap: 10px;
	align-items: center;
	height: 69px;
	padding: 7px 0;
	border-bottom: 1px solid var(--border);
	box-sizing: border-box;
}
.ln-thumb { flex-shrink: 0; }
.ln-thumb img { width: 56px; height: 44px; object-fit: cover; border-radius: 4px; display: block; }
.ln-body { min-width: 0; }
.ln-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--text);
}
.ln-title:hover { color: var(--accent); }
.live-news-item time { display: block; font-size: .7rem; color: var(--muted); margin-top: 2px; }

/* OPAP draws widget */
.draw-row { margin-bottom: 14px; }
.draw-row:last-of-type { margin-bottom: 8px; }
.draw-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 6px;
}
.draw-name {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .9rem;
	letter-spacing: .04em;
}
.draw-date { font-size: .72rem; color: var(--muted); }
.draw-balls { display: flex; flex-wrap: wrap; gap: 4px; }
.draw-ball {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--border);
	font-size: .72rem;
	font-weight: 700;
	line-height: 1;
}
.draw-ball.is-bonus { background: var(--accent); border-color: var(--accent); color: #fff; }
.draw-jackpot { display: inline-block; margin-top: 5px; font-size: .75rem; font-weight: 700; color: var(--accent); }
.draw-coupon-link {
	display: inline-block;
	margin-top: 4px;
	font-size: .82rem;
	font-weight: 700;
}
.draw-src { margin-top: 8px; font-size: .65rem; color: var(--muted); }

/* Widget: stacked KINO draws */
.draw-sub {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	padding: 5px 0;
	border-top: 1px dashed var(--border);
}
.draw-row .draw-sub:first-of-type { border-top: 0; }
.draw-sub-time { flex-shrink: 0; min-width: 34px; padding-top: 3px; font-size: .7rem; color: var(--muted); }
.draw-balls.compact .draw-ball { width: 18px; height: 18px; font-size: .58rem; font-weight: 600; }

/* Draws landing page */
.draws-section { margin-bottom: 26px; }
.draws-game {
	font-size: 1.15rem;
	padding-bottom: 6px;
	margin-bottom: 8px;
	border-bottom: 2px solid var(--accent);
}
.draws-next { font-size: .88rem; margin: 4px 0 10px; }
.draws-list-row {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
}
.draws-list-row:last-child { border-bottom: 0; }
.draws-meta { min-width: 150px; flex-shrink: 0; }
.draws-num { display: block; font-size: .85rem; font-weight: 700; }
.draws-meta time { font-size: .75rem; color: var(--muted); }
.draws-list-row .draw-ball { width: 26px; height: 26px; font-size: .75rem; }
.draws-error { font-size: .88rem; color: var(--muted); font-style: italic; }

/* ---------- Ads ---------- */

.ad-slot {
	margin-block: 16px;
	text-align: center;
	overflow: hidden;
}
.ad-slot-top,
.ad-slot-bottom { min-height: 90px; }
.ad-slot-above,
.ad-slot-below { min-height: 120px; }

/* ---------- Pagination ---------- */

.pagination, .nav-links {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 26px;
}
.page-numbers {
	display: inline-block;
	padding: 6px 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	font-size: .9rem;
}
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-numbers:hover:not(.current) { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
	background: var(--footer-bg);
	color: #cbd3db;
	margin-top: 30px;
}
.footer-widgets {
	display: grid;
	gap: 24px;
	padding-block: 30px;
}
.footer-cols-1 { grid-template-columns: 1fr; }
.footer-cols-2 { grid-template-columns: 1fr 1fr; }
.footer-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.footer-widgets .widget-title { color: #fff; border-color: var(--accent); }
.footer-widgets a { color: #cbd3db; }
.footer-widgets a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-block: 16px;
	font-size: .82rem;
}
.footer-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 16px; }
.footer-menu a { color: #cbd3db; }
.copyright { margin: 0; }
.footer-note { margin: 0; flex-basis: 100%; color: #97a1ab; }
.footer-note a { color: #cbd3db; }

.to-top {
	position: fixed;
	right: 18px; bottom: 18px;
	z-index: 70;
	width: 42px; height: 42px;
	border: 0;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-size: 1.1rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease;
}
.to-top.is-visible { opacity: .9; visibility: visible; }

/* ---------- Misc ---------- */

.not-found { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.not-found h1 { font-size: 1.6rem; }
.wp-caption, .gallery-caption { max-width: 100%; }
.alignleft { float: left; margin: 0 16px 12px 0; }
.alignright { float: right; margin: 0 0 12px 16px; }
.aligncenter { display: block; margin-inline: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.site-body { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 900px) {
	.site-body { grid-template-columns: 1fr; }
	.site-sidebar { order: 2; }
}

@media (max-width: 768px) {
	/* Top ad slot is hidden on mobile — its push() is gated on
	   window.innerWidth > 768 in mu-plugins/betcat-functions.php */
	.ad-slot-top { display: none; }

	.nav-toggle { display: flex; }
	.menu-wrap {
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		z-index: 80;
		background: var(--header-bg);
		max-height: 0;
		overflow: hidden;
		transition: max-height .25s ease;
	}
	.nav-open .menu-wrap { max-height: 70vh; overflow-y: auto; }
	.primary-nav { position: relative; }
	.menu { flex-direction: column; }
	.menu a { padding: 12px 16px; }
	.menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		box-shadow: none;
		max-height: 0;
		overflow: hidden;
		transition: max-height .2s ease;
		padding: 0;
	}
	.menu li.sub-open > .sub-menu { max-height: 600px; }
	.menu .sub-menu a { padding-left: 28px; }

	.post-grid { grid-template-columns: 1fr; }
	.related-posts .post-grid { grid-template-columns: 1fr; }
	.post-single { padding: 18px 18px; }
	.post-title { font-size: 1.5rem; }
	.branding { flex-direction: column; align-items: flex-start; gap: 14px; }
	.branding-search { width: 100%; }
	.branding-search .search-field { width: auto; flex: 1; }
	.footer-widgets { grid-template-columns: 1fr !important; }
	.post-nav { flex-direction: column; gap: 8px; }
	.post-nav-next { text-align: left; }
}
