/* ==========================================================================
   Casino 777 — "777-2.0" template (clone of casino777.lv)
   Dark lobby theme: fixed left sidebar + top bar + content + footer.
   Tokens lifted from source: bg #161620 / panels #1c1c24 / accent #ff0054.
   ========================================================================== */

:root {
	--bg:          #13131b;
	--bg-2:        #161620;
	--panel:       #1c1c24;
	--panel-2:     #222230;
	--panel-3:     #2b2c33;
	--border:      #2f3038;
	--border-2:    #3d4143;
	--text:        #e4eef2;
	--text-muted:  #8b8991;
	--text-dim:    #b2b2b8;
	--accent:      #ff0054;
	--accent-2:    #e64a60;
	--violet:      #6969ff;
	--green:       #38c172;
	--sidebar-w:   244px;
	--header-h:    64px;
	--radius:      10px;
	--radius-sm:   7px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; font-weight: 700; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

/* ---- shell --------------------------------------------------------------
   Fixed sidebar + fixed top bar so the chrome stays put while only the
   content scrolls. The content column is offset by the sidebar width and
   the header height. */
.wrap { min-height: 100vh; }

.sidebar {
	position: fixed;
	left: 0;
	top: 0;
	width: var(--sidebar-w);
	height: 100vh;
	background: var(--bg-2);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	z-index: 40;
	scrollbar-width: thin;
	scrollbar-color: var(--border-2) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

.sidebar__logo { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.sidebar__logo img { height: 38px; width: auto; }

.menu { padding: 10px 0; }
.menu + .menu { border-top: 1px solid var(--border); }
.sidebar__title {
	padding: 14px 20px 6px;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-muted);
	font-weight: 700;
}
.menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 20px;
	color: var(--text-dim);
	font-weight: 500;
	font-size: 14px;
	transition: background .15s, color .15s;
	border-left: 3px solid transparent;
}
.menu-item:hover { background: var(--panel); color: var(--text); }
.menu-item.is-active {
	color: #fff;
	background: linear-gradient(90deg, rgba(255,0,84,.14), transparent);
	border-left-color: var(--accent);
}
.menu-item .ico {
	width: 18px; height: 18px; flex: 0 0 18px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--text-muted);
}
.menu-item.is-active .ico { color: var(--accent); }
.menu-item .prov-dot {
	width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
	object-fit: cover; background: var(--panel-3);
}

.sidebar__copyright {
	margin-top: auto;
	padding: 16px 20px;
	font-size: 11px;
	color: var(--text-muted);
	line-height: 1.5;
}

/* ---- column ------------------------------------------------------------ */
.column { margin-left: var(--sidebar-w); min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
	position: fixed;
	top: 0;
	left: var(--sidebar-w);
	right: 0;
	height: var(--header-h);
	background: var(--bg-2);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 22px;
	z-index: 30;
}
.topbar__logo { display: none; }
.topbar__logo img { height: 34px; }

.search {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	max-width: 420px;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 22px;
	padding: 0 6px 0 16px;
}
.search input {
	flex: 1 1 auto;
	background: none; border: 0; outline: none;
	color: var(--text);
	height: 40px;
	font-size: 14px;
}
.search input::placeholder { color: var(--text-muted); }
.search button {
	background: none; border: 0; cursor: pointer;
	color: var(--text-muted);
	width: 34px; height: 34px;
	display: inline-flex; align-items: center; justify-content: center;
}
.search button:hover { color: var(--accent); }

.topbar__spacer { flex: 1 1 auto; }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 8px;
	font-weight: 700; font-size: 14px;
	padding: 0 20px; height: 40px;
	border-radius: 22px;
	cursor: pointer; border: 0;
	white-space: nowrap;
	transition: transform .12s, filter .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #ff5c8a); color: #fff; }
.btn-violet { background: linear-gradient(135deg, var(--violet), #9b6bff); color: #fff; }
.btn-ghost  { background: var(--panel); color: var(--text); border: 1px solid var(--border-2); }
.btn-green  { background: var(--green); color: #fff; }
.btn-lg     { height: 48px; padding: 0 30px; font-size: 16px; }

.burger {
	display: none;
	flex-direction: column; gap: 4px;
	background: none; border: 0; cursor: pointer; padding: 6px;
}
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---- main / content ---------------------------------------------------- */
.site-main { flex: 1 1 auto; padding: calc(var(--header-h) + 24px) 24px 24px; }
.container { max-width: 1180px; margin: 0 auto; }

/* sorting tabs (provider/category quick-filter bar) */
.sorting {
	display: flex; gap: 10px; overflow-x: auto;
	padding-bottom: 14px; margin-bottom: 22px;
	border-bottom: 1px solid var(--border);
	scrollbar-width: none;
}
.sorting::-webkit-scrollbar { display: none; }
.sorting__item {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--panel); border: 1px solid var(--border);
	border-radius: 20px; padding: 8px 16px;
	font-size: 13px; font-weight: 600; color: var(--text-dim);
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.sorting__item:hover { background: var(--panel-3); color: #fff; }
.sorting__item.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.sorting__item img { width: 22px; height: 22px; border-radius: 50%; }

/* hero banner */
.hero-banner {
	display: block; border-radius: var(--radius);
	overflow: hidden; margin-bottom: 26px;
	position: relative;
	box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.hero-banner img { width: 100%; height: auto; }

/* article */
.article { margin-bottom: 30px; }
.article-content { color: var(--text-dim); }
.article-content h2 { color: var(--text); margin-top: 1.4em; }
.article-content h3 { color: var(--text); }
.article-content a { color: var(--accent-2); }
.article-content a:hover { text-decoration: underline; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 1em; }
.article-content li { margin-bottom: .4em; }
.article-content img { border-radius: var(--radius-sm); margin: 1em 0; height: auto;}
/* Tables: the .table-scroll wrapper (added in JS) scrolls horizontally so a
   wide table keeps its full width instead of collapsing its columns. */
.table-scroll {
	margin: 1.2em 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--radius-sm);
	scrollbar-width: thin;
	scrollbar-color: var(--border-2) transparent;
}
.table-scroll::-webkit-scrollbar { height: 6px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
.article-content table {
	width: 100%; border-collapse: collapse; margin: 0;
	background: var(--panel); border-radius: var(--radius-sm); overflow-x: auto; display: block;
}
.table-scroll > table { margin: 0; }
.article-content th, .article-content td {
	width: 1%;
	padding: 11px 14px; text-align: left;
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
}
.article-content th { background: var(--panel-3); color: #fff; font-weight: 700; }

/* section heading */
.block-head {
	display: flex; align-items: center; justify-content: space-between;
	margin: 30px 0 16px;
}
.block-title { margin: 0; font-size: 20px; }
.block-head__all { color: var(--accent-2); font-weight: 600; font-size: 13px; }
.block-head__all:hover { text-decoration: underline; }

/* category cards */
.category-cards {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 16px; margin-bottom: 30px;
}
.cat-card {
	background: var(--panel); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 22px;
	display: flex; flex-direction: column;
}
.cat-card__title { font-size: 18px; }
.cat-card__text { color: var(--text-muted); font-size: 13px; flex: 1 1 auto; }
.cat-card .btn { margin-top: 14px; align-self: flex-start; }

/* game grid */
.game-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
	margin-bottom: 30px;
}
.game-tile {
	position: relative;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--panel);
	aspect-ratio: 1 / 1;
	transition: transform .15s, box-shadow .15s;
}
.game-tile img { width: 100%; height: 100%; object-fit: cover; }
.game-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.game-tile__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
	opacity: 0; transition: opacity .15s;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 10px; gap: 8px;
}
.game-tile:hover .game-tile__overlay { opacity: 1; }
.game-tile__name { font-size: 12px; font-weight: 600; color: #fff; }
.game-tile__play {
	align-self: center;
	background: var(--accent); color: #fff;
	font-size: 12px; font-weight: 700;
	padding: 7px 22px; border-radius: 18px;
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -50%) scale(.85);
	transition: transform .15s;
}
.game-tile:hover .game-tile__play { transform: translate(-50%, -50%) scale(1); }
.game-tile__bet {
	position: absolute; top: 8px; left: 8px;
	background: rgba(0,0,0,.6); color: var(--text-dim);
	font-size: 10px; padding: 3px 7px; border-radius: 10px;
}

/* bonus / cta banners */
.cta-banners {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 16px; margin-bottom: 30px;
}
.cta-banner {
	border-radius: var(--radius); overflow: hidden;
	background: var(--panel-2); border: 1px solid var(--border);
	padding: 24px; min-height: 150px;
	display: flex; flex-direction: column; justify-content: center;
	position: relative;
	background-size: cover; background-position: center;
}
.cta-banner__title { font-size: 18px; font-weight: 800; }
.cta-banner__text { color: var(--text-dim); font-size: 13px; margin: 6px 0 14px; }

/* ---- toplist ----------------------------------------------------------- */
.toplist { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.toplist-card {
	display: grid;
	grid-template-columns: 56px 200px 1fr auto;
	align-items: center;
	gap: 20px;
	background: var(--panel); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 18px 22px;
	transition: border-color .15s, transform .15s;
}
.toplist-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.toplist-card__rank { font-size: 26px; font-weight: 800; color: var(--accent); text-align: center; }
.toplist-card__logo {
	height: 64px; background: var(--bg-2); border-radius: var(--radius-sm);
	display: flex; align-items: center; justify-content: center; padding: 8px;
}
.toplist-card__logo img { max-height: 100%; width: auto; }
.toplist-card__name { font-size: 17px; font-weight: 700; }
.toplist-card__bonus { color: var(--text-dim); font-size: 13px; }
.toplist-card__rating {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 700; color: #fff; font-size: 14px;
}
.toplist-card__stars { color: #ffc83d; letter-spacing: 2px; }

/* ---- review ------------------------------------------------------------ */
.review-card {
	display: grid; grid-template-columns: 1fr 320px; gap: 24px;
	background: var(--panel); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 26px; margin-bottom: 30px;
}
.review-info { display: flex; flex-direction: column; gap: 12px; }
.review-info__logo {
	height: 80px; background: var(--bg-2); border-radius: var(--radius-sm);
	display: flex; align-items: center; justify-content: center; padding: 12px;
}
.review-info__row {
	display: flex; justify-content: space-between;
	padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.review-info__row span:first-child { color: var(--text-muted); }
.review-info__row span:last-child { font-weight: 600; }
.review-info .btn { margin-top: 6px; }

/* ---- landing ----------------------------------------------------------- */
.landing-hero {
	text-align: center;
	padding: 60px 24px;
	border-radius: var(--radius);
	background:
		radial-gradient(circle at 30% 20%, rgba(255,0,84,.22), transparent 55%),
		radial-gradient(circle at 75% 80%, rgba(105,105,255,.22), transparent 55%),
		var(--panel);
	border: 1px solid var(--border);
	margin-bottom: 30px;
}
.landing-hero h1 { font-size: 40px; max-width: 720px; margin: 0 auto .4em; }
.landing-hero p { color: var(--text-dim); max-width: 560px; margin: 0 auto 24px; font-size: 17px; }
.landing-features {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 16px; margin-bottom: 30px;
}
.landing-feature {
	background: var(--panel); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 24px; text-align: center;
}
.landing-feature__ico {
	width: 52px; height: 52px; margin: 0 auto 14px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--violet));
	display: flex; align-items: center; justify-content: center; color: #fff;
}

/* ---- footer ------------------------------------------------------------ */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: 20px; }
.footer-ins { max-width: 1180px; margin: 0 auto; padding: 36px 24px; }
.footer-cols {
	display: grid; grid-template-columns: 2fr 1fr 1fr;
	gap: 32px; padding-bottom: 30px; border-bottom: 1px solid var(--border);
}
.footer-about img { height: 36px; margin-bottom: 16px; }
.footer-about p { color: var(--text-muted); font-size: 12.5px; }
.footer-col-title { font-weight: 700; margin-bottom: 14px; font-size: 15px; }
.footer-col-menu { list-style: none; margin: 0; padding: 0; }
.footer-col-menu li { margin-bottom: 9px; }
.footer-col-menu a { color: var(--text-muted); font-size: 13px; }
.footer-col-menu a:hover { color: var(--accent-2); }
.footer-bottom {
	display: flex; align-items: center; gap: 16px;
	padding-top: 22px; flex-wrap: wrap;
}
.footer-bottom p { color: var(--text-muted); font-size: 12px; margin: 0; }
.age-badge {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	border: 2px solid var(--accent); color: var(--accent);
	font-weight: 800; font-size: 13px; flex: 0 0 40px;
}
.footer-orgs { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.footer-orgs span {
	font-size: 11px; color: var(--text-muted);
	border: 1px solid var(--border-2); border-radius: 6px; padding: 6px 10px;
}

/* ---- generic CMS-content helpers --------------------------------------
   Defensive styles for common class names a CMS editor may emit so authored
   pages stay on-theme even when they don't use the bespoke blocks above. */
.card {
	background: var(--panel); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 18px 22px; margin: 0 0 14px;
}
.btn-primary {
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--accent), #ff5c8a); color: #fff;
	font-weight: 700; padding: 10px 22px; border-radius: 22px; white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.08); }
.rating {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 46px; height: 38px; padding: 0 10px;
	background: var(--green); color: #fff; font-weight: 800;
	border-radius: var(--radius-sm); font-size: 15px;
}
.article-content blockquote {
	margin: 1.2em 0; padding: 14px 20px;
	border-left: 3px solid var(--accent);
	background: var(--panel); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--text); font-style: italic;
}

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
	.game-grid { grid-template-columns: repeat(4, 1fr); }
	.review-card { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	/* sidebar becomes an off-canvas drawer; content + header span full width */
	.sidebar {
		z-index: 60;
		transform: translateX(-100%); transition: transform .25s;
		box-shadow: 0 0 40px rgba(0,0,0,.6);
	}
	/* Hard scroll-lock while the drawer is open: pin the body so the site
	   behind never scrolls. JS sets body.top to preserve the scroll offset. */
	body.menu-open {
		position: fixed;
		left: 0; right: 0; width: 100%;
		overflow: hidden;
	}
	body.menu-open .sidebar { transform: translateX(0); }
	body.menu-open .overlay { opacity: 1; visibility: visible; }
	.overlay {
		position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 55;
		opacity: 0; visibility: hidden; transition: opacity .25s;
	}
	.column { margin-left: 0; }
	.topbar { left: 0; gap: 10px; padding: 0 14px; }
	.topbar__logo { display: block; }
	.topbar__logo img { height: 30px; }
	.burger { display: flex; }
	/* keep the mobile bar light so it never overflows: drawer + logo + play */
	.search { display: none; }
	.btn-login { display: none; }
	.btn { padding: 0 16px; height: 38px; }
	.category-cards, .cta-banners, .landing-features { grid-template-columns: 1fr; }
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.toplist-card { grid-template-columns: 44px 1fr; grid-row-gap: 8px; }
	.toplist-card__logo { grid-column: 2; }
}
@media (max-width: 560px) {
	.game-grid { grid-template-columns: repeat(3, 1fr); }
	.site-main { padding: 16px; }
	h1 { font-size: 24px; }
	.landing-hero h1 { font-size: 28px; }
	.footer-cols { grid-template-columns: 1fr; }
}
