/*
Theme Name: Internet Casinos Green
Text Domain: internet-casinos-green
Description: Classic green theme for internetcasinos.co.za, converted from the original Dreamweaver site. Built for the Classic Editor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

:root {
	--felt-900: #04170c;
	--felt-800: #072a16;
	--felt-700: #0b3d20;
	--felt-600: #0f5a2e;
	--emerald: #12a150;
	--emerald-dark: #0b7a3b;
	--mint: #e9f6ee;
	--paper: #fbfdf9;
	--ink: #13241a;
	--muted: #4f6457;
	--gold: #e2b33c;
	--gold-dark: #b8871a;
	--line: #d3e6d9;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(2, 20, 10, .28);
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background-color: var(--felt-700);
	background-image:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(18, 161, 80, .35), transparent 70%),
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .045) 1px, transparent 0);
	background-size: auto, 22px 22px;
	background-attachment: fixed;
}
img { max-width: 100%; height: auto; }
a { color: var(--emerald-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--gold-dark); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--felt-900); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* Header ------------------------------------------------------------------ */
.site-header { background: linear-gradient(180deg, var(--felt-900), var(--felt-800)); border-bottom: 3px solid var(--gold); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.site-logo { display: block; line-height: 0; flex: 0 1 344px; }
.site-logo img { width: 344px; max-width: 100%; filter: drop-shadow(0 0 18px rgba(57, 255, 120, .25)); }
.header-inner { padding-top: 10px; padding-bottom: 10px; }
.header-badges { display: flex; align-items: center; gap: 10px; color: #cfe8d8; font-size: 14px; white-space: nowrap; }
.badge-18 { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-weight: 700; font-size: 15px; }

.main-nav { background: var(--felt-600); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav-list a { display: block; padding: 12px 14px; color: #f1fbf4; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .01em; border-bottom: 3px solid transparent; }
.nav-list a:hover, .nav-list a:focus, .nav-list .current-menu-item > a, .nav-list .current_page_item > a { color: var(--gold); border-bottom-color: var(--gold); }

/* Layout ------------------------------------------------------------------ */
.site-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; padding-top: 28px; padding-bottom: 28px; align-items: start; }
.site-main { min-width: 0; }

.entry { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 40px 30px; }
.entry + .entry { margin-top: 20px; }
.entry-title, .entry-content h2, .entry-content h3, .entry-summary-title { font-family: var(--font-display); color: var(--felt-700); line-height: 1.2; letter-spacing: -.01em; }
.entry-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 0 0 18px; }
.entry-title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin-top: 14px; }
.home-intro .eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--emerald-dark); }
.entry-meta { color: var(--muted); font-size: 14px; margin-top: -8px; }

.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 26px; font-weight: 600; margin: 1.6em 0 .5em; }
.entry-content h3 { font-size: 21px; font-weight: 600; margin: 1.4em 0 .4em; }
.entry-content p { margin: 0 0 1em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content img { border-radius: 6px; vertical-align: middle; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.entry-content th, .entry-content tr:first-child td strong { color: var(--felt-700); }
.entry-content tr:nth-child(even) td { background: var(--mint); }
.entry-content blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--emerald); color: var(--muted); }

/* Casino recommendation boxes carried over from the old site */
.ic-box { position: relative; margin: 1.6em 0; padding: 22px 24px 8px; background: linear-gradient(135deg, #f1faf4, #e3f3e9); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 12px; text-align: center; }
.ic-box h2, .ic-box h3 { margin-top: 0; font-size: 22px; }
.ic-box p { text-align: left; }
.ic-box p:has(> a > img), .ic-box p:has(> img) { text-align: center; }
.ic-box a[rel~="sponsored"]:not(:has(img)) { display: inline-block; background: var(--emerald); color: #fff; text-decoration: none; font-weight: 700; padding: 9px 18px; border-radius: 999px; box-shadow: 0 4px 0 var(--emerald-dark); transition: transform .15s ease, background .15s ease; }
.ic-box a[rel~="sponsored"]:not(:has(img)):hover { background: var(--gold); color: var(--felt-900); box-shadow: 0 4px 0 var(--gold-dark); transform: translateY(-1px); }

.btn { display: inline-block; background: var(--gold); color: var(--felt-900); font-weight: 700; text-decoration: none; padding: 10px 20px; border-radius: 999px; box-shadow: 0 4px 0 var(--gold-dark); }
.btn:hover, .btn:focus { background: #f0c75a; color: var(--felt-900); }
.read-more { font-weight: 700; }
.entry--summary { padding: 24px 30px; }
.entry-summary-title { font-size: 24px; margin: 0 0 6px; }
.entry-summary-title a { color: inherit; text-decoration: none; }

/* Sidebar ----------------------------------------------------------------- */
.site-sidebar { display: grid; gap: 18px; position: sticky; top: 16px; }
.side-card, .site-sidebar .widget { background: var(--felt-800); color: #e3f3e9; border: 1px solid rgba(226, 179, 60, .25); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.side-title, .site-sidebar .widget-title { margin: -16px -18px 12px; padding: 10px 18px; background: var(--felt-600); color: var(--gold); font-family: var(--font-display); font-size: 18px; font-weight: 600; border-radius: var(--radius) var(--radius) 0 0; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list--cols { columns: 2; column-gap: 12px; }
.side-list li { break-inside: avoid; }
.side-list a, .site-sidebar .widget a { color: #bff0d1; text-decoration: none; display: block; padding: 4px 0; font-size: 15px; }
.side-list a:hover, .side-list .current-menu-item > a { color: var(--gold); }
.side-promo { text-align: center; }
.side-promo p { margin: 10px 0; font-weight: 600; }
.site-sidebar .widget img { display: block; margin: 0 auto; }

/* Footer ------------------------------------------------------------------ */
.footer-banner { text-align: center; padding-bottom: 24px; }
.footer-banner img { border-radius: 8px; }
.site-footer { background: var(--felt-900); color: #a9cdb6; border-top: 3px solid var(--gold); padding: 28px 0; font-size: 15px; }
.footer-inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer-rg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.footer-rg p { margin: 0; max-width: 520px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer-list a, .site-footer a { color: #d9f2e2; }
.copyright { margin: 0; color: #7fa48d; font-size: 14px; }

/* Forms ------------------------------------------------------------------- */
.search-form { display: flex; gap: 8px; margin: 1em 0; }
.search-form input[type="search"] { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.search-form input[type="submit"], .search-submit { background: var(--emerald); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.pagination { margin-top: 20px; color: #fff; }
.pagination a { color: var(--gold); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
	.site-body { grid-template-columns: 1fr; }
	.site-sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
	.header-badges { display: none; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.entry { padding: 22px 18px; border-radius: 10px; }
	.nav-list { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.nav-list a { white-space: nowrap; padding: 11px 12px; }
	.ic-box { padding: 18px 14px 6px; }
	.side-promo img[height="600"] { max-height: 320px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
