/* ==========================================================================
   Online Casino Australia — Style (Mobile-first)
   ========================================================================== */

:root {
	--navy: #2D2D2D;
	--navy-light: #3D3D3D;
	--coral: #FF8C00;
	--coral-hover: #E67E00;
	--teal: #22C55E;
	--teal-light: #DCFCE7;
	--green: #22C55E;
	--green-dark: #16A34A;
	--gold: #FFD700;
	--yellow: #FEF9C3;
	--yellow-border: #EAB308;
	--gray-50: #F9FAFB;
	--gray-100: #F3F4F6;
	--gray-200: #E5E7EB;
	--gray-300: #D1D5DB;
	--gray-400: #9CA3AF;
	--gray-500: #6B7280;
	--gray-600: #4B5563;
	--gray-700: #374151;
	--gray-800: #1F2937;
	--gray-900: #111827;
	--white: #ffffff;
	--bg-main: #FFFFFF;
	--block-bg: #F9FAFB;
	--accent: #FF8C00;
	--secondary: #22C55E;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
	--shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
	--shadow-lg: 0 10px 25px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.05);
	--transition: 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--gray-700);
	background: var(--white);
}
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--coral); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.3; }
h1 { font-size: 1.375rem; font-weight: 700; }
h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Layout */
.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ===== HEADER ===== */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--navy);
	box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
}
.logo-link {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--white);
	font-size: 1rem;
	font-weight: 700;
}
.logo-link:hover { color: var(--white); }
.logo-link .logo-icon {
	width: 32px;
	height: 32px;
	background: var(--coral);
	border-radius: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 700;
}
.nav-list { display: none; }
.nav-list a {
	color: var(--gray-300);
	font-size: 0.875rem;
	font-weight: 500;
	transition: color var(--transition);
}
.nav-list a:hover { color: var(--white); }
.menu-toggle {
	display: block;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--white);
}
.menu-toggle svg { width: 24px; height: 24px; }
.nav-list.open {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 56px;
	left: 0;
	right: 0;
	background: var(--navy);
	padding: 12px 16px;
	gap: 10px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	z-index: 99;
}

/* ===== HERO ===== */
.hero {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
	color: var(--white);
	padding: 28px 0 24px;
}
.hero h1 { color: var(--white); margin-bottom: 12px; }
.hero .subtitle {
	font-size: 0.9375rem;
	color: var(--gray-300);
	line-height: 1.65;
	margin-bottom: 20px;
}
.author-info {
	display: flex;
	align-items: center;
	gap: 10px;
}
.author-info .avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}
.author-info .name { font-weight: 600; font-size: 0.875rem; }
.author-info .date {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.75rem;
	color: var(--gray-400);
}
.author-info .date svg { width: 13px; height: 13px; }

/* ===== SECTION COMMON ===== */
.section { padding: 32px 0; }
.section-alt { background: #F9FAFB; }
.section-header { margin-bottom: 20px; }
.section-header p {
	color: var(--gray-500);
	font-size: 0.9375rem;
}

/* ===== CASINO LIST ===== */
.casino-section-wrapper {
	display: flex;
	gap: 24px;
}
.casino-main {
	flex: 1;
	min-width: 0;
}
.casino-sidebar {
	display: none;
}

.casino-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.casino-card {
	background: var(--white);
	border: 2px solid var(--gray-200);
	border-radius: var(--radius);
	padding: 24px;
	transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
	display: flex;
	flex-direction: column;
	position: relative;
}
.casino-card:hover {
	box-shadow: var(--shadow-lg);
	border-color: var(--green);
	transform: translateY(-4px);
}
.casino-card.featured {
	border-color: var(--yellow-border);
	border-width: 2px;
}
.casino-card.featured::before {
	content: "";
	display: none;
}

/* Rank badge */
.casino-rank-badge {
	position: absolute;
	top: -12px;
	left: 20px;
	background: var(--coral);
	color: var(--white);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	gap: 4px;
}
.casino-rank-badge::before {
	content: "🏆";
	font-size: 0.7rem;
}
.casino-card.featured {
	border-color: var(--coral);
	border-width: 2px;
	position: relative;
}
.casino-card.featured::before {
	content: "Editor's Pick";
	position: absolute;
	top: -10px;
	left: 16px;
	background: var(--coral);
	color: var(--white);
	font-size: 0.625rem;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Casino card — grid layout */
.casino-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	padding-top: 8px;
}
.casino-card-left {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.casino-rank {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--gray-400);
	flex-shrink: 0;
}
.casino-card:nth-child(1) .casino-rank { color: var(--gold); }
.casino-card:nth-child(2) .casino-rank { color: var(--gray-400); }
.casino-card:nth-child(3) .casino-rank { color: #cd7f32; }

.casino-logo {
	flex-shrink: 0;
	padding: 8px 16px;
	border-radius: var(--radius-sm);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--white);
	text-transform: uppercase;
}
.casino-info { 
	min-width: 0;
}
.casino-name {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 4px;
	margin-top: 8px;
}
.casino-badge {
	display: inline-block;
	font-size: 0.625rem;
	font-weight: 600;
	padding: 1px 6px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-left: 4px;
	vertical-align: middle;
}
.badge-new { background: #dcfce7; color: #166534; }
.badge-hot { background: #fee2e2; color: #991b1b; }
.badge-top { background: #dbeafe; color: #1e40af; }
.casino-bonus {
	font-size: 0.8125rem;
	color: var(--gray-500);
}
.casino-bonus strong {
	color: var(--gray-800);
	font-weight: 600;
}

/* Rating row */
.casino-rating-row {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}
.casino-rating .score {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gray-700);
}
.casino-rating .stars {
	display: flex;
	gap: 2px;
}
.casino-rating .stars svg {
	width: 14px;
	height: 14px;
	color: var(--gold);
}
.casino-rating .label {
	font-size: 0.6875rem;
	color: var(--gray-400);
}

/* Advantages */
.casino-advantages {
	margin-bottom: 16px;
	flex-grow: 1;
}
.casino-advantages li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	color: var(--gray-600);
	padding: 4px 0;
}
.casino-advantages li svg {
	width: 16px;
	height: 16px;
	color: var(--green);
	flex-shrink: 0;
}

/* Bonus highlight box */
.casino-bonus-box {
	background: var(--yellow);
	border: 2px solid var(--yellow-border);
	border-radius: var(--radius-sm);
	padding: 16px;
	text-align: center;
	margin-bottom: 16px;
}
.casino-bonus-box .bonus-amount {
	font-size: 2rem;
	font-weight: 800;
	color: var(--green);
	line-height: 1.2;
}
.casino-bonus-box .bonus-desc {
	font-size: 0.8125rem;
	color: var(--gray-600);
	margin-top: 4px;
}
.casino-bonus-box .bonus-highlight {
	font-size: 0.8125rem;
	color: var(--coral);
	font-weight: 600;
	margin-top: 4px;
}

/* CTA */
.casino-cta {
	display: flex;
	gap: 10px;
}
.btn-visit {
	flex: 1;
	padding: 14px 20px;
	background: var(--green);
	color: var(--white);
	font-size: 0.9375rem;
	font-weight: 700;
	border-radius: 50px;
	border: none;
	cursor: pointer;
	transition: background var(--transition), transform var(--transition);
	text-align: center;
}
.btn-visit:hover {
	background: var(--green-dark);
	color: var(--white);
	transform: translateY(-2px);
}
.btn-review {
	flex: 1;
	padding: 14px 20px;
	background: var(--white);
	color: var(--gray-700);
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: 50px;
	border: 2px solid var(--gray-300);
	cursor: pointer;
	transition: border-color var(--transition), background var(--transition);
	text-align: center;
}
.btn-review:hover {
	border-color: var(--gray-400);
	background: var(--gray-50);
	color: var(--gray-700);
}

/* ===== SIDEBAR ===== */
.casino-sidebar {
	width: 320px;
	flex-shrink: 0;
}
.sidebar-card {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	border-radius: var(--radius);
	padding: 24px;
	color: var(--white);
	position: sticky;
	top: 80px;
}
.sidebar-card .sidebar-badge {
	background: var(--coral);
	color: var(--white);
	font-size: 0.6875rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	display: inline-block;
	margin-bottom: 12px;
}
.sidebar-card .sidebar-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--white);
}
.sidebar-card .sidebar-bonus {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--green);
	line-height: 1.1;
	margin-bottom: 4px;
}
.sidebar-card .sidebar-bonus-sub {
	font-size: 1rem;
	color: var(--coral);
	font-weight: 600;
	margin-bottom: 16px;
}
.sidebar-card .sidebar-features {
	margin-bottom: 20px;
}
.sidebar-card .sidebar-features li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	color: rgba(255,255,255,0.8);
	padding: 6px 0;
}
.sidebar-card .sidebar-features li svg {
	width: 16px;
	height: 16px;
	color: var(--green);
}
.sidebar-card .btn-sidebar {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: var(--green);
	color: var(--white);
	font-size: 1rem;
	font-weight: 700;
	border-radius: 50px;
	text-align: center;
	transition: background var(--transition), transform var(--transition);
}
.sidebar-card .btn-sidebar:hover {
	background: var(--green-dark);
	color: var(--white);
	transform: translateY(-2px);
}

/* ===== TEXT CONTENT ===== */
.text-content { }
.text-content h2 {
	margin-top: 32px;
}
.text-content h2:first-child { margin-top: 0; }
.text-content h3 {
	margin: 24px 0 10px;
}
.text-content p {
	color: var(--gray-600);
	line-height: 1.7;
	font-size: 0.9375rem;
}
.text-content ul,
.text-content ol {
	margin: 0 0 1rem;
	padding-left: 0;
}
.text-content ul li,
.text-content ol li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 6px;
	font-size: 0.9375rem;
	color: var(--gray-600);
	line-height: 1.6;
}
.text-content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--coral);
}
.text-content ol {
	counter-reset: ol-counter;
}
.text-content ol li {
	counter-increment: ol-counter;
}
.text-content ol li::before {
	content: counter(ol-counter) ".";
	position: absolute;
	left: 0;
	font-weight: 600;
	color: var(--coral);
}

/* ===== TABLES (compact, no scroll) ===== */
.table-fit {
	margin: 20px 0;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	overflow: hidden;
}
.table-fit table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.75rem;
}
.table-fit thead th {
	background: var(--navy);
	color: var(--white);
	font-weight: 600;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 8px 6px;
	text-align: center;
}
.table-fit thead th:first-child { text-align: left; padding-left: 10px; }
.table-fit tbody td {
	padding: 8px 6px;
	border-bottom: 1px solid var(--gray-100);
	text-align: center;
	vertical-align: middle;
	color: var(--gray-700);
	word-break: break-word;
}
.table-fit tbody td:first-child {
	text-align: left;
	font-weight: 600;
	color: var(--gray-900);
	padding-left: 10px;
}
.table-fit tbody tr:last-child td { border-bottom: none; }
.table-fit tbody tr:nth-child(even) { background: var(--gray-50); }
.cell-yes { color: var(--green); font-weight: 600; }
.cell-no { color: #ef4444; font-weight: 600; }

/* Card-style table */
.table-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 20px 0;
}
.table-card-item {
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	padding: 14px;
	background: var(--white);
}
.table-card-item .card-header {
	font-weight: 700;
	font-size: 0.875rem;
	color: var(--gray-900);
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--gray-100);
}
.table-card-item .card-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 0.8125rem;
}
.table-card-item .card-row .card-label {
	color: var(--gray-400);
	font-weight: 500;
}
.table-card-item .card-row .card-value {
	color: var(--gray-700);
	font-weight: 600;
	text-align: right;
}

/* ===== FAQ ===== */
.faq-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.faq-item {
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	overflow: hidden;
	transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--gray-300); }
h3.faq-label {
	margin: 0;
	font-size: 0.875rem;
}
.faq-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	cursor: pointer;
	background: var(--white);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gray-800);
	transition: background var(--transition);
	gap: 10px;
}
.faq-label:hover { background: var(--gray-50); }
.faq-label svg {
	width: 18px;
	height: 18px;
	color: var(--gray-400);
	flex-shrink: 0;
	transition: transform var(--transition);
}
.faq-item.open .faq-label svg { transform: rotate(180deg); }
.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
}
.faq-answer-inner {
	padding: 0 16px 14px;
	font-size: 0.8125rem;
	color: var(--gray-600);
	line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
	background: var(--navy);
	color: var(--gray-400);
	padding: 32px 0 20px;
}
.footer-top {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	margin-bottom: 20px;
}
.footer-brand .name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: 6px;
}
.footer-brand p { font-size: 0.8125rem; line-height: 1.6; }
.footer-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.footer-links a {
	color: var(--gray-400);
	font-size: 0.8125rem;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 0.75rem;
	text-align: center;
}
.footer-bottom .badge-18 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.footer-bottom .badge-18 svg { width: 28px; height: 28px; color: var(--gray-400); }
.footer-bottom .badge-18 span { font-size: 0.6875rem; }

/* ===== SCROLL-TO-TOP ===== */
.scroll-top {
	position: fixed;
	bottom: 20px;
	right: 16px;
	width: 40px;
	height: 40px;
	background: var(--navy);
	color: var(--white);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition), visibility var(--transition), background var(--transition);
	box-shadow: var(--shadow-md);
	z-index: 50;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--coral); }
.scroll-top svg { width: 18px; height: 18px; }

/* ===== DESKTOP ===== */

@media (min-width: 768px) {
	.container { padding: 0 20px; }
	h1 { font-size: 1.75rem; }
	h2 { font-size: 1.5rem; }
	.header .container { height: 64px; }
	.logo-link { font-size: 1.125rem; }
	.logo-link .logo-icon { width: 36px; height: 36px; }
	.hero { padding: 40px 0 36px; }
	.hero .subtitle { font-size: 1rem; max-width: 640px; }
	.section { padding: 40px 0; }
	.nav-list {
		display: flex;
		gap: 24px;
	}
	.nav-list.open { position: static; box-shadow: none; padding: 0; flex-direction: row; }
	.menu-toggle { display: none; }

	.casino-list { 
		grid-template-columns: repeat(2, 1fr);
		gap: 20px; 
	}

	/* Casino cards stay vertical in grid */
	.casino-card {
		display: flex;
		flex-direction: column;
		padding: 24px;
	}
	.casino-card-top {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.casino-info { 
		flex: unset; 
		min-width: 0;
		text-align: center;
	}
	.casino-rating-row {
		display: flex;
		justify-content: center;
	}
	.casino-rating {
		flex-shrink: 0;
		text-align: center;
		width: auto;
	}
	.casino-advantages {
		flex-shrink: 0;
		width: 100%;
		margin-bottom: 16px;
	}
	.casino-cta {
		flex-shrink: 0;
		width: 100%;
	}
	.btn-visit {
		padding: 12px 16px;
		font-size: 0.9375rem;
	}

	.faq-list { max-width: 800px; }
	.faq-label { padding: 16px 20px; font-size: 0.9375rem; }
	.faq-answer-inner { padding: 0 20px 16px; font-size: 0.875rem; }

	.text-content { max-width: 800px; }
	.text-content p { font-size: 1rem; }
	.table-fit table { font-size: 0.875rem; }
	.table-fit thead th { font-size: 0.75rem; padding: 10px 12px; }
	.table-fit tbody td { padding: 10px 12px; }
	.table-fit tbody td:first-child { padding-left: 14px; }
	.table-fit thead th:first-child { padding-left: 14px; }

	.footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 40px; }
	.footer-brand p { max-width: 400px; }
	.footer-links { flex-direction: row; gap: 24px; }
	.footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
	h1 { font-size: 2rem; }
	h2 { font-size: 1.625rem; }
	.hero { padding: 48px 0 40px; }
	.hero .subtitle { max-width: 720px; font-size: 1.0625rem; }
	.section { padding: 48px 0; }
	
	/* Show sidebar on desktop */
	.casino-sidebar {
		display: block;
	}
	
	.casino-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	.casino-logo { font-size: 0.75rem; }
	.casino-name { font-size: 1.0625rem; }
	.casino-advantages { width: 100%; }
	.casino-cta { width: 100%; }
}

@media (min-width: 1280px) {
	.casino-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px;
	}
}
