/*
Theme Name: HB
Theme URI: https://tips.casino
Author: HB Team
Description: Custom theme for tips.casino (88TIPs) — casino & lotto review site, rebuilt on WordPress.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: hb
*/

:root {
	--hb-yellow: #fcbf0d;
	--hb-yellow-dark: #e0a800;
	--hb-black: #0d0d0f;
	--hb-dark: #1c1c22;
	--hb-grey: #eceef1;
	--hb-grey-dark: #5f6470;
	--hb-red: #e71d36;
	--hb-green: #2ec4b6;
	--hb-white: #ffffff;
	--hb-radius: 10px;
	--hb-shadow: 0 2px 12px rgba(13, 13, 15, .08);
	--hb-maxw: 1200px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	color: #24262b;
	background: var(--hb-grey);
}

img { max-width: 100%; height: auto; }
a { color: #0b6ea8; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.35; font-weight: 600; }

.hb-container { max-width: var(--hb-maxw); margin: 0 auto; padding: 0 1rem; }

/* ---------- Header ---------- */
.hb-header { background: var(--hb-black); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.hb-header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.hb-logo { font-size: 1.5rem; font-weight: 700; letter-spacing: .5px; color: #fff !important; text-decoration: none !important; white-space: nowrap; display: inline-flex; align-items: center; gap: .55rem; }
.hb-logo-icon { width: 32px; height: 32px; border-radius: 7px; display: block; }
.hb-logo .accent { color: var(--hb-yellow); }
.hb-nav { margin-left: auto; }
.hb-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.hb-nav a {
	display: block; padding: .55rem .9rem; color: #f2f2f2 !important; font-weight: 500;
	border-radius: 6px; text-decoration: none !important; transition: background .15s, color .15s;
}
.hb-nav a:hover, .hb-nav .current-menu-item > a, .hb-nav .current_page_item > a { background: var(--hb-yellow); color: var(--hb-black) !important; }
.hb-nav-toggle { display: none; }
.hb-nav-toggle-label { display: none; margin-left: auto; cursor: pointer; padding: .5rem; }
.hb-nav-toggle-label span, .hb-nav-toggle-label span::before, .hb-nav-toggle-label span::after {
	display: block; width: 26px; height: 3px; background: var(--hb-yellow); border-radius: 2px; position: relative; content: ''; transition: transform .2s;
}
.hb-nav-toggle-label span::before { position: absolute; top: -8px; }
.hb-nav-toggle-label span::after { position: absolute; top: 8px; }

@media (max-width: 900px) {
	.hb-nav-toggle-label { display: block; }
	.hb-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
		background: var(--hb-black); padding: .5rem 1rem 1rem;
		box-shadow: 0 12px 20px rgba(0, 0, 0, .35); border-top: 1px solid #2a2a31;
	}
	.hb-nav ul { flex-direction: column; }
	.hb-nav-toggle:checked ~ .hb-nav { display: block; }
}

/* ---------- Layout ---------- */
.hb-main { padding: 1.5rem 0 2.5rem; }
.hb-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
@media (max-width: 980px) { .hb-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cards / boxes ---------- */
.hb-box { background: #fff; border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); padding: 1.5rem; margin-bottom: 1.5rem; overflow-wrap: break-word; }
.hb-box-dark { background: var(--hb-dark); color: #e9e9ee; }
.hb-box-dark h2, .hb-box-dark h3 { color: var(--hb-yellow); }
.hb-box-dark a { color: #7fd4f5; }

.hb-topic {
	background: var(--hb-yellow); color: var(--hb-black); font-size: 1.45rem; font-weight: 700;
	padding: .8rem 1.25rem; border-radius: var(--hb-radius); margin: 0 0 1.25rem; box-shadow: var(--hb-shadow);
}
h1.hb-topic { font-size: 1.6rem; }

.hb-section-head { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; }
.hb-section-head h2 { margin: 0; font-size: 1.35rem; }
.hb-section-head .bar { flex: 0 0 6px; align-self: stretch; background: var(--hb-yellow); border-radius: 3px; }
.hb-section-head .more { margin-left: auto; font-size: .9rem; font-weight: 500; }

/* badge */
.hb-badge { display: inline-block; background: var(--hb-red); color: #fff; font-size: .72rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; vertical-align: middle; letter-spacing: .5px; }
.hb-badge-green { background: var(--hb-green); }

/* ---------- Buttons ---------- */
.hb-btn {
	display: inline-block; padding: .65rem 1.6rem; border-radius: 999px; font-weight: 600;
	text-decoration: none !important; text-align: center; transition: filter .15s, transform .1s; line-height: 1.5;
}
.hb-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hb-btn-primary { background: var(--hb-yellow); color: var(--hb-black) !important; }
.hb-btn-outline { border: 2px solid var(--hb-yellow); color: var(--hb-yellow) !important; }
.hb-btn-red { background: var(--hb-red); color: #fff !important; }
.hb-btn-block { display: block; }

/* ---------- Grids ---------- */
.hb-grid { display: grid; gap: 1.25rem; }
.hb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .hb-grid-3, .hb-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hb-grid-2, .hb-grid-3, .hb-grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Promo card ---------- */
.hb-promo-card {
	background: var(--hb-dark); color: #e9e9ee; border-radius: var(--hb-radius); padding: 1.25rem;
	display: flex; flex-direction: column; gap: .6rem; box-shadow: var(--hb-shadow); position: relative;
	border: 1px solid rgba(252, 191, 13, .25);
}
.hb-promo-card .brand { color: var(--hb-yellow); font-weight: 700; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; }
.hb-promo-card h3 { margin: 0; font-size: 1.02rem; }
.hb-promo-card h3 a { color: #fff; }
.hb-promo-card .hb-btn { margin-top: auto; align-self: flex-start; padding: .45rem 1.2rem; font-size: .9rem; }

/* ---------- Post card ---------- */
.hb-post-card { background: #fff; border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.hb-post-card .thumb { margin: -1.25rem -1.25rem .35rem; display: block; }
.hb-post-card .thumb img { width: 100%; height: 170px; object-fit: cover; border-radius: var(--hb-radius) var(--hb-radius) 0 0; display: block; }
.hb-post-card h3 { margin: 0; font-size: 1.05rem; }
.hb-post-card .meta { font-size: .82rem; color: var(--hb-grey-dark); }
.hb-post-card p {
	margin: 0; font-size: .92rem; color: #3a3d44;
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Category feature boxes (home) ---------- */
.hb-cat-box { border-radius: var(--hb-radius); padding: 1.5rem; color: #fff; display: flex; flex-direction: column; gap: .5rem; box-shadow: var(--hb-shadow); }
.hb-cat-box h3 { margin: 0; font-size: 1.2rem; color: var(--hb-yellow); }
.hb-cat-box p { margin: 0; font-size: .92rem; opacity: .92; }
.hb-cat-box .hb-btn { align-self: flex-start; margin-top: .5rem; }
.hb-cat-sport { background: linear-gradient(135deg, #14532d, #166534); }
.hb-cat-casino { background: linear-gradient(135deg, #7f1d1d, #991b1b); }
.hb-cat-slot { background: linear-gradient(135deg, #4c1d95, #6d28d9); }
.hb-cat-lotto { background: linear-gradient(135deg, #0c4a6e, #0369a1); }

/* ---------- Brand hero (brand template) ---------- */
.hb-brand-hero { background: var(--hb-black); color: #ececf1; border-radius: var(--hb-radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--hb-shadow); }
.hb-brand-hero h2 { color: var(--hb-yellow); margin-top: 0; }
.hb-brand-hero .cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.hb-rating { color: var(--hb-yellow); font-size: 1.1rem; letter-spacing: 2px; }

/* ---------- Brand head (redesigned) ---------- */
.hb-brand-head {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start;
	background: radial-gradient(900px 400px at 80% -20%, rgba(252, 191, 13, .18), transparent 60%), linear-gradient(150deg, #101014, #1c1c26 70%, #14141a);
	color: #ececf1; border-radius: var(--hb-radius); padding: 2rem; margin-bottom: 1.5rem; box-shadow: var(--hb-shadow);
}
.hb-brand-head h1 { margin: .5rem 0; font-size: 2rem; color: #fff; }
.hb-brand-head .rating { display: flex; align-items: center; gap: .6rem; }
.hb-brand-head .rating .by { color: #a9adba; font-size: .85rem; }
.hb-brand-head .tagline { color: var(--hb-yellow); font-weight: 500; margin: .5rem 0 0; }
.hb-brand-head .highlight { margin-top: 1rem; color: #c9cbd6; font-size: .95rem; }
.hb-brand-head .highlight h2 { color: var(--hb-yellow); border: 0; padding: 0; font-size: 1.1rem; margin: 0 0 .4rem; }
.hb-brand-head .panel {
	background: rgba(255, 255, 255, .05); border: 1px solid rgba(252, 191, 13, .3);
	border-radius: var(--hb-radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .7rem;
	align-self: stretch; justify-content: center;
}
.hb-brand-head .panel h2 { margin: 0 0 .35rem; font-size: 1.05rem; color: var(--hb-yellow); text-align: center; }
@media (max-width: 800px) { .hb-brand-head { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; } }

/* ---------- TOC ---------- */
.hb-toc { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.hb-toc strong { margin-right: .25rem; }
.hb-toc a {
	background: var(--hb-grey); border-radius: 999px; padding: .25rem .8rem; font-size: .85rem;
	color: #24262b; text-decoration: none !important;
}
.hb-toc a:hover { background: var(--hb-yellow); }

/* ---------- Pros / cons ---------- */
.hb-proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.hb-proscons .col { margin-bottom: 0; }
.hb-proscons h2 { margin: 0 0 .75rem; font-size: 1.1rem; }
.hb-proscons ul { margin: 0; padding: 0; list-style: none; }
.hb-proscons li { padding: .4rem 0 .4rem 1.6rem; position: relative; font-size: .95rem; }
.hb-proscons .pros li::before { content: '✓'; position: absolute; left: 0; color: var(--hb-green); font-weight: 700; }
.hb-proscons .cons li::before { content: '✕'; position: absolute; left: 0; color: var(--hb-red); font-weight: 700; }
.hb-proscons .pros { border-top: 4px solid var(--hb-green); }
.hb-proscons .cons { border-top: 4px solid var(--hb-red); }
@media (max-width: 640px) { .hb-proscons { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Content prose ---------- */
.hb-content h2 { font-size: 1.35rem; margin: 1.75rem 0 .75rem; padding-left: .75rem; border-left: 6px solid var(--hb-yellow); }
.hb-content h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.hb-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.hb-content th, .hb-content td { border: 1px solid #d8dce3; padding: .5rem .75rem; text-align: left; }
.hb-content th { background: var(--hb-grey); }
.hb-content iframe { max-width: 100%; }
.hb-content ul, .hb-content ol { padding-left: 1.5rem; }
.hb-meta-line { color: var(--hb-grey-dark); font-size: .85rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* ---------- Sidebar ---------- */
.hb-sidebar .hb-box { padding: 1.25rem; }
.hb-side-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 3px solid var(--hb-yellow); }
.hb-side-list { list-style: none; margin: 0; padding: 0; }
.hb-side-list li { border-bottom: 1px dashed #d8dce3; }
.hb-side-list li:last-child { border-bottom: 0; }
.hb-side-list a { display: block; padding: .55rem 0; color: #24262b; font-size: .92rem; }
.hb-side-list a:hover { color: #0b6ea8; }
.hb-side-list .sub { color: var(--hb-grey-dark); font-size: .8rem; }

/* ---------- Archive list ---------- */
.hb-archive-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid #e2e5ea; align-items: start; }
.hb-archive-item.no-thumb { grid-template-columns: minmax(0, 1fr); }
.hb-archive-item .thumb img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; display: block; }
.hb-archive-item .body { display: flex; flex-direction: column; gap: .35rem; }
@media (max-width: 560px) {
	.hb-archive-item { grid-template-columns: minmax(0, 1fr); }
	.hb-archive-item .thumb img { height: 160px; }
}
.hb-archive-item:last-child { border-bottom: 0; }
.hb-archive-item h2 { margin: 0; font-size: 1.15rem; }
.hb-archive-item .meta { font-size: .82rem; color: var(--hb-grey-dark); }
.hb-archive-item p {
	margin: 0; font-size: .93rem;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.hb-pagination { display: flex; gap: .4rem; justify-content: center; margin: 1.5rem 0 0; flex-wrap: wrap; }
.hb-pagination .page-numbers {
	display: inline-block; min-width: 40px; text-align: center; padding: .45rem .6rem; background: #fff;
	border-radius: 8px; box-shadow: var(--hb-shadow); color: #24262b; font-weight: 500; text-decoration: none !important;
}
.hb-pagination .current { background: var(--hb-yellow); }

/* ---------- Footer ---------- */
.hb-footer { background: var(--hb-black); color: #c9cbd3; margin-top: 2rem; border-top: 6px solid var(--hb-yellow); }
.hb-footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.5rem; padding: 2.5rem 0 1.5rem; }
@media (max-width: 900px) { .hb-footer-cols { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .hb-footer-cols { grid-template-columns: minmax(0,1fr); } }
.hb-footer h4 { color: var(--hb-yellow); margin: 0 0 .75rem; font-size: 1rem; }
.hb-footer ul { list-style: none; margin: 0; padding: 0; }
.hb-footer li { margin: 0 0 .4rem; }
.hb-footer a { color: #c9cbd3; font-size: .9rem; }
.hb-footer a:hover { color: var(--hb-yellow); }
.hb-footer-bottom { border-top: 1px solid #2a2a31; padding: 1.25rem 0; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hb-18 { display: inline-block; border: 2px solid var(--hb-red); color: var(--hb-red); font-weight: 700; border-radius: 50%; width: 42px; height: 42px; line-height: 38px; text-align: center; }

/* ---------- Home: hero ---------- */
.hb-section { margin-bottom: 2.5rem; }
.hb-hero {
	background: radial-gradient(1200px 500px at 70% -10%, rgba(252, 191, 13, .22), transparent 60%), linear-gradient(150deg, #101014, #1c1c26 70%, #14141a);
	color: #f4f4f7; border-radius: var(--hb-radius); padding: 3.25rem 2rem;
	margin-bottom: 2.5rem; box-shadow: var(--hb-shadow); text-align: center;
}
.hb-hero h1 { margin: 0 0 .75rem; font-size: 2.1rem; }
.hb-hero .lead { max-width: 640px; margin: 0 auto 1.5rem; font-size: 1.02rem; color: #c9cbd6; }
.hb-hero .cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hb-btn-ghost { border: 2px solid #3a3a46; color: #f4f4f7 !important; }
.hb-btn-ghost:hover { border-color: var(--hb-yellow); }
.hb-trust { list-style: none; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin: 1.75rem 0 0; padding: 0; font-size: .88rem; color: #a9adba; }
@media (max-width: 560px) { .hb-hero { padding: 2.25rem 1.25rem; } .hb-hero h1 { font-size: 1.5rem; } }

/* ---------- Home: ranking ---------- */
.hb-rank-list { display: flex; flex-direction: column; gap: .9rem; }
.hb-rank-card {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 1.25rem; align-items: center;
	background: #fff; border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); padding: 1.1rem 1.4rem;
	border: 2px solid transparent;
}
.hb-rank-card.is-top { border-color: var(--hb-yellow); background: linear-gradient(105deg, #fffdf4, #fff); }
.hb-rank-card .rank { font-size: 1.35rem; font-weight: 700; color: var(--hb-grey-dark); min-width: 2.4rem; text-align: center; }
.hb-rank-card.is-top .rank { color: var(--hb-yellow-dark); }
.hb-rank-card h3 { margin: 0; font-size: 1.12rem; }
.hb-rank-card h3 a { color: #16181d; }
.hb-rank-card .tagline { margin: .15rem 0 0; font-size: .88rem; color: var(--hb-grey-dark); }
.hb-rank-card .score { text-align: center; }
.hb-rank-card .score .num { display: block; font-size: .8rem; color: var(--hb-grey-dark); }
.hb-rank-card .actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.hb-rank-card .actions .hb-btn { padding: .5rem 1.15rem; font-size: .9rem; }
.hb-rank-card .hb-btn-outline { border-color: #d8dce3; color: #24262b !important; }
.hb-rank-card .hb-btn-outline:hover { border-color: var(--hb-yellow); }
@media (max-width: 760px) {
	.hb-rank-card { grid-template-columns: auto minmax(0, 1fr); }
	.hb-rank-card .score { grid-column: 2; text-align: left; }
	.hb-rank-card .actions { grid-column: 1 / -1; }
}

/* ---------- Home: lotto cards ---------- */
.hb-lotto-card { background: var(--hb-dark); color: #e9e9ee; border-radius: var(--hb-radius); padding: 1.5rem; box-shadow: var(--hb-shadow); display: flex; flex-direction: column; gap: .5rem; }
.hb-lotto-card h3 { margin: 0; font-size: 1.25rem; }
.hb-lotto-card h3 a { color: var(--hb-yellow); }
.hb-lotto-card p { margin: 0; color: #c9cbd6; font-size: .95rem; }
.hb-lotto-card .cta { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .75rem; }

/* ---------- Home: why-us ---------- */
.hb-why-box { background: #fff; border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); padding: 1.4rem; text-align: center; }
.hb-why-box .ico { font-size: 1.9rem; }
.hb-why-box h3 { font-size: 1.02rem; margin: .6rem 0 .35rem; }
.hb-why-box p { margin: 0; font-size: .88rem; color: var(--hb-grey-dark); }

/* ---------- Home: FAQ ---------- */
.hb-faq details { background: #fff; border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); margin-bottom: .75rem; overflow: hidden; }
.hb-faq summary {
	cursor: pointer; padding: 1rem 1.4rem; font-weight: 600; list-style: none; position: relative; padding-right: 3rem;
}
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after { content: '+'; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--hb-yellow-dark); font-weight: 700; }
.hb-faq details[open] summary::after { content: '−'; }
.hb-faq details p { margin: 0; padding: 0 1.4rem 1.15rem; color: #3a3d44; font-size: .95rem; }

/* ---------- Landing ---------- */
.hb-landing-lead { font-size: 1.05rem; color: #3a3d44; max-width: 820px; margin: -0.5rem 0 1.75rem; }

/* ---------- Breadcrumb ---------- */
.hb-crumb { font-size: .82rem; color: var(--hb-grey-dark); margin-bottom: 1rem; }
.hb-crumb a { color: var(--hb-grey-dark); }

/* ---------- 404 ---------- */
.hb-404 { text-align: center; padding: 4rem 1rem; }
.hb-404 .code { font-size: 5rem; font-weight: 700; color: var(--hb-yellow); line-height: 1; }
