/*
Light theme for Winnita Casino (white background)
- Responsive layout, mobile-first
- Accessible color contrast and focus styles
- Tables adapted for mobile via data-label pattern
- Detailed comments for each block
*/

:root {
	--bg: #ffffff;
	--text: #1a1a1a;
	--muted: #5f6b7a;
	--primary: #1e88e5;
	--primary-dark: #1565c0;
	--border: #e5e7eb;
	--surface: #f8fafc;
	--focus: #0ea5e9;
    --accent: #ff7a3d;
    --accent-dark: #e85a2a;
}

/* Global reset and typography */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* Container constrains content width and adds horizontal padding */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Header with logo and primary navigation */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo img { display: block; height: 40px; width: auto; }
.nav-list { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; }
.nav-list a:hover { opacity: 0.95; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); background: var(--bg); text-decoration: none; font-weight: 600; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Hero CTA variants for legibility on image backgrounds */
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.9); }
.btn.outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.hero .btn { padding: 14px 22px; border-radius: 12px; font-weight: 700; }

/* Hero banner with responsive image and CTA */
.hero { position: relative; isolation: isolate; }
.hero picture img { width: 100%; height: auto; display: block; }
/* Darker overlay improves text contrast */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.5) 100%); z-index: 1; }
/* Content covers the whole hero area and sits above the overlay */
.hero-content { position: absolute; inset: 0; margin-top: 0; background: transparent; padding: 16px; border-radius: 0; border: 0; display: grid; align-content: center; justify-items: center; text-align: center; z-index: 2; }
.hero .cta-group { display: flex; gap: 12px; flex-wrap: wrap; }
/* Place hero CTAs and text in a centered column like the reference */
.hero-content .cta-group { margin-top: 8px; }
/* Hero typography for strong readability */
.hero-title { margin: 0 0 8px; font-size: 2.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.hero-subtitle { margin: 0 0 20px; font-size: 1.2rem; color: rgba(255,255,255,0.95); max-width: 70ch; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
@media (min-width: 768px) {
	.hero-title { font-size: 3.5rem; }
	.hero-subtitle { font-size: 1.3rem; }
}

/* Sections */
.section { padding: 32px 0; }
.section h2 { margin: 0 0 12px; font-size: 1.75rem; }
.section p { margin: 0 0 12px; color: var(--muted); }

/* Cards used for grouped content blocks */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }

/* Grid utilities */
.grid.two { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) {
	.grid.two { grid-template-columns: 1fr 1fr; }
	.hero-content { max-width: 880px; margin-left: auto; margin-right: auto; }
}

/* =====================
   Mobile adaptations
   ===================== */
@media (max-width: 480px) {
	/* Header: smaller logo and CTA buttons */
	.logo img { height: 22px; }
	.nav-list { gap: 6px; }
	.nav-list a, .site-header .btn { padding: 6px 8px; border-radius: 8px; font-size: 0.85rem; }

	/* Increase horizontal breathing room so text isn't flush to the edge */
	.container { padding-left: 20px; padding-right: 20px; }
	.hero-content { padding-left: 20px; padding-right: 20px; }

	/* Hero: reduce vertical space and center CTA */
	.hero { min-height: 50dvh; }
	.hero-title { font-size: 1.6rem; }
	.hero-subtitle { font-size: 0.95rem; margin-bottom: 12px; }
	.hero .btn { padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; }

	/* Slots: two per row with consistent aspect ratio */
	.slots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.slots-grid img { aspect-ratio: 3 / 2; object-fit: cover; }

	/* Tables: convert to stacked cards to prevent horizontal scroll */
	.table-wrap { overflow: hidden; border: 0; }
	.data-table { border: 0; min-width: 0; table-layout: fixed; }
	.data-table thead { display: none; }
	.data-table tr { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); margin-bottom: 8px; }
	.data-table th[scope="row"],
	.data-table td { display: grid; grid-template-columns: minmax(84px, 30%) 1fr; align-items: start; gap: 4px; border: 0; padding: 4px 0; word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }
	.data-table th[scope="row"] { grid-template-columns: 1fr; font-weight: 700; color: var(--text); }
	.data-table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); white-space: normal; line-height: 1.3; }
    /* hard stop against sideways movement */
	.table-wrap, .data-table, .data-table tr, .data-table td, .data-table th { max-width: 100%; }
}

/* Lock page from horizontal movement and overscroll bounce */
html, body { overflow-x: hidden; }
body { overscroll-behavior: none; }

/* Lists */
.list { padding-left: 18px; }
.list li { margin-bottom: 6px; }
.benefits li { margin: 6px 0; }

/* Data tables with mobile adaptation */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 0; table-layout: fixed; }
.data-table th, .data-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--surface); font-weight: 700; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }

/* Accessible focus styles for links */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Pay logos grid */
.pay-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; justify-items: center; }
@media (min-width: 600px) {
	.pay-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
	.pay-logos { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* Slots gallery grid */
.slots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.slots-grid img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
@media (min-width: 768px) {
	.slots-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 24px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; text-align: center; }
.footer-inner ul { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* Mobile viewport fix: prevent layout jump on showing browser UI */
@supports (height: 100dvh) {
	.hero { min-height: 40dvh; }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
