/* ============================================================
 * io-kenos-child v1.2 — Template styles (Phase 4 C3)
 * ------------------------------------------------------------
 * Extracted from the inline <style> blocks formerly inside
 * archive.php and single.php. Conditionally enqueued by
 * inc/enqueue.php only on blog archive + single post views,
 * so other page types don't pay the request weight.
 *
 * Where the original used PHP-interpolated $theme_color, this
 * file references var(--wdz-primary) instead — the niche body
 * class already sets that variable, producing identical visuals
 * with no PHP-in-CSS coupling.
 *
 * Hardcoded brand colors (#0F3460 navy, #16A596 teal, #C8102E
 * red) are IO-Kenos parent palette defaults preserved verbatim.
 * Future passes can swap them for tokens as needed.
 * ============================================================ */


/* ============================================================
 * BLOG ARCHIVE (archive.php)
 * ============================================================ */

.wdz-archive-page {
	background: var(--wdz-primary, #0F3460);
	min-height: 60vh;
	padding: 0 0 64px;
}

/* Hero header band */
.wdz-archive-hero {
	background: rgba(0, 0, 0, 0.25);
	padding: 52px 24px 44px;
	text-align: center;
	margin-bottom: 40px;
}

.wdz-archive-hero h1 {
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 14px;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.wdz-archive-hero p {
	font-size: 1.0625rem;
	color: rgba(255, 255, 255, 0.9);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.65;
}

/* Card grid */
.wdz-archive-grid {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}

/* Post card */
.wdz-archive-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wdz-archive-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

/* Thumbnail */
.wdz-archive-thumb {
	height: 200px;
	overflow: hidden;
	background: #1a1a2e;
	position: relative;
}

.wdz-archive-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.wdz-archive-card:hover .wdz-archive-thumb img {
	transform: scale(1.04);
}

.wdz-archive-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--wdz-primary, #0F3460) 0%, var(--wdz-accent, #ff6b35) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
}

/* Category badge */
.wdz-archive-cat {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--wdz-primary, #0F3460);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 20px;
}

/* Card body */
.wdz-archive-body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.wdz-archive-meta {
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 10px;
}

.wdz-archive-title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 10px;
}

.wdz-archive-title a {
	color: #1a1a2e;
	text-decoration: none;
	transition: color 0.15s ease;
}

.wdz-archive-title a:hover {
	color: var(--wdz-primary, #0F3460);
}

.wdz-archive-excerpt {
	font-size: 0.9rem;
	color: #555;
	line-height: 1.6;
	flex: 1;
	margin-bottom: 16px;
}

.wdz-archive-read-more {
	display: inline-block;
	padding: 8px 18px;
	background: var(--wdz-primary, #0F3460);
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 700;
	border-radius: 5px;
	text-decoration: none;
	align-self: flex-start;
	transition: background 0.15s ease;
}

.wdz-archive-read-more:hover {
	background: var(--wdz-accent, #c0105f);
	color: #fff !important;
}

/* Empty state */
.wdz-archive-empty {
	text-align: center;
	padding: 60px 24px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.1rem;
}

/* Pagination */
.wdz-archive-pagination {
	max-width: 1100px;
	margin: 48px auto 0;
	padding: 0 24px;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.wdz-archive-pagination .page-numbers {
	display: inline-block;
	padding: 9px 16px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-weight: 700;
	border-radius: 5px;
	text-decoration: none;
	transition: background 0.15s ease;
	font-size: 0.9rem;
}

.wdz-archive-pagination .page-numbers.current,
.wdz-archive-pagination .page-numbers:hover {
	background: #fff;
	color: var(--wdz-primary, #0F3460) !important;
}

/* Archive responsive */
@media (max-width: 640px) {
	.wdz-archive-grid {
		grid-template-columns: 1fr;
		padding: 0 16px;
	}
	.wdz-archive-hero {
		padding: 36px 16px 32px;
	}
}


/* ============================================================
 * SINGLE POST (single.php)
 * ============================================================ */

/* Single post — white page, IO theme background-image removed */
body.single-post {
	background: #fff !important;
}

body.single-post [class*="elementor-kit"] {
	background-image: none !important;
}

/* Layout shell */
.wdz-single-wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding: 48px 24px 72px;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 48px;
	align-items: start;
}

/* Post header */
.wdz-post-header {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 2px solid #f0f2f7;
}

.wdz-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 700;
	color: #16A596;
	text-decoration: none;
	margin-bottom: 16px;
}

.wdz-back-link:hover {
	color: #0F3460;
}

.wdz-post-title {
	font-size: clamp(1.6rem, 2.8vw, 2.1rem);
	font-weight: 800;
	color: #0F3460;
	line-height: 1.2;
	margin: 0 0 14px;
}

.wdz-post-meta {
	font-size: 0.875rem;
	color: #666;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.wdz-post-meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

/* Featured image */
.wdz-featured-img {
	margin-bottom: 32px;
	border-radius: 8px;
	overflow: hidden;
}

.wdz-featured-img img {
	width: 100%;
	height: auto;
	display: block;
}

/* Entry content typography */
.wdz-entry-content {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: #222;
}

.wdz-entry-content p {
	margin: 0 0 1.4rem;
}

.wdz-entry-content h2 {
	font-size: 1.45rem;
	font-weight: 800;
	color: #0F3460;
	margin: 2.5rem 0 1rem;
	padding-bottom: 10px;
	border-bottom: 3px solid #16A596;
	line-height: 1.3;
}

.wdz-entry-content h3 {
	font-size: 1.1rem;
	font-weight: 700;
	color: #0F3460;
	margin: 1.75rem 0 0.6rem;
	padding-left: 14px;
	border-left: 4px solid #16A596;
	line-height: 1.4;
}

.wdz-entry-content ul,
.wdz-entry-content ol {
	margin: 0 0 1.4rem 1.25rem;
	padding: 0;
}

.wdz-entry-content li {
	margin-bottom: 0.5rem;
	line-height: 1.7;
}

.wdz-entry-content strong {
	color: #0F3460;
	font-weight: 700;
}

.wdz-entry-content a {
	color: #16A596;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wdz-entry-content a:hover {
	color: #C8102E;
}

/* Book Now CTA links — auto-styled */
.wdz-entry-content a[href*="book"],
.wdz-entry-content a[href*="Book"],
.wdz-entry-content a[href*="reserve"] {
	display: inline-block;
	padding: 10px 26px;
	background: #C8102E;
	color: #fff !important;
	border-radius: 5px;
	font-weight: 700;
	text-decoration: none;
	margin: 4px 0;
	transition: background 0.15s ease;
}

.wdz-entry-content a[href*="book"]:hover,
.wdz-entry-content a[href*="Book"]:hover {
	background: #0F3460;
}

/* Post navigation */
.wdz-post-nav {
	margin-top: 48px;
	padding-top: 28px;
	border-top: 2px solid #f0f2f7;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.wdz-post-nav a {
	font-size: 0.875rem;
	font-weight: 700;
	color: #0F3460;
	text-decoration: none;
	padding: 12px 16px;
	background: #f7f8fb;
	border-radius: 6px;
	border: 1px solid rgba(15, 52, 96, 0.08);
	display: block;
	transition: background 0.15s ease;
}

.wdz-post-nav a:hover {
	background: #0F3460;
	color: #fff;
}

.wdz-post-nav .nav-next {
	text-align: right;
}

/* SIDEBAR */
.wdz-sidebar {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.wdz-sidebar-card {
	background: #fff;
	border: 1px solid rgba(15, 52, 96, 0.10);
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(15, 52, 96, 0.08);
	padding: 20px;
}

.wdz-sidebar-card h4 {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0F3460;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f0f2f7;
}

/* CTA card */
.wdz-cta-card {
	background: #0F3460;
	color: #fff;
	border: none;
}

.wdz-cta-card h4 {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.wdz-cta-card p {
	font-size: 0.9rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 16px;
}

.wdz-cta-btn {
	display: block;
	text-align: center;
	padding: 11px 20px;
	background: #C8102E;
	color: #fff !important;
	font-weight: 700;
	border-radius: 5px;
	text-decoration: none;
	margin-bottom: 10px;
	transition: background 0.15s ease;
	font-size: 0.9375rem;
}

.wdz-cta-btn:hover {
	background: #a00d26;
}

.wdz-cta-phone {
	display: block;
	text-align: center;
	font-size: 1rem;
	font-weight: 800;
	color: #fff !important;
	text-decoration: none;
	letter-spacing: 0.02em;
}

/* Search card */
.wdz-search-form {
	display: flex;
	gap: 8px;
}

.wdz-search-form input[type="search"] {
	flex: 1;
	padding: 9px 12px;
	border: 1px solid #dde1e9;
	border-radius: 4px;
	font-size: 0.875rem;
}

.wdz-search-form input[type="search"]:focus,
.wdz-search-form input[type="search"]:focus-visible {
	border-color: #0F3460;
	outline: none;
	box-shadow: var(--wdz-shadow-focus, 0 0 0 3px rgba(201, 162, 39, 0.40));
}

.wdz-search-form button {
	padding: 9px 14px;
	background: #0F3460;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 700;
}

.wdz-search-form button:hover {
	background: #16A596;
}

/* Categories */
.wdz-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wdz-cat-list li {
	margin: 0;
	border-bottom: 1px solid #f0f2f7;
}

.wdz-cat-list li:last-child {
	border-bottom: none;
}

.wdz-cat-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 4px;
	font-size: 0.9rem;
	color: #333;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s;
}

.wdz-cat-list a:hover {
	color: #0F3460;
	font-weight: 700;
}

.wdz-cat-count {
	font-size: 0.75rem;
	background: #f0f2f7;
	color: #666;
	padding: 2px 7px;
	border-radius: 20px;
}

/* Recent posts */
.wdz-recent-post {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px solid #f0f2f7;
}

.wdz-recent-post:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.wdz-recent-post:first-child {
	padding-top: 0;
}

.wdz-recent-thumb {
	width: 60px;
	height: 60px;
	border-radius: 5px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f0f2f7;
}

.wdz-recent-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wdz-recent-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0F3460, #16A596);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.5);
	font-size: 1.2rem;
}

.wdz-recent-text a {
	font-size: 0.875rem;
	font-weight: 600;
	color: #0F3460;
	text-decoration: none;
	line-height: 1.35;
	display: block;
	margin-bottom: 4px;
}

.wdz-recent-text a:hover {
	color: #C8102E;
}

.wdz-recent-date {
	font-size: 0.75rem;
	color: #888;
}

/* Share buttons */
.wdz-share-btns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.wdz-share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 12px;
	border-radius: 5px;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	color: #fff !important;
	transition: opacity 0.15s ease;
}

.wdz-share-btn:hover {
	opacity: 0.85;
}

.wdz-share-btn--fb   { background: #1877f2; }
.wdz-share-btn--tw   { background: #000; }
.wdz-share-btn--li   { background: #0a66c2; }
.wdz-share-btn--copy { background: #16A596; cursor: pointer; border: none; width: 100%; }

/* Single responsive */
@media (max-width: 900px) {
	.wdz-single-wrap {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 32px 16px 56px;
	}
	.wdz-sidebar {
		position: static;
	}
	.wdz-post-title {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	.wdz-share-btns { grid-template-columns: 1fr; }
	.wdz-post-nav   { grid-template-columns: 1fr; }
}


/* ============================================================
 * D1 — Focus indicators for keyboard navigation (Phase 4)
 * Every interactive element in this stylesheet gets a visible
 * accent-colored focus ring for keyboard users.
 * ============================================================ */

.wdz-archive-card a:focus-visible,
.wdz-archive-read-more:focus-visible,
.wdz-archive-pagination .page-numbers:focus-visible,
.wdz-back-link:focus-visible,
.wdz-entry-content a:focus-visible,
.wdz-post-nav a:focus-visible,
.wdz-cta-btn:focus-visible,
.wdz-cta-phone:focus-visible,
.wdz-search-form button:focus-visible,
.wdz-cat-list a:focus-visible,
.wdz-recent-text a:focus-visible,
.wdz-share-btn:focus-visible {
	outline: 2px solid var(--wdz-accent, #C9A227);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ============================================================
 * Single post — make it match the site (Mahmud 2026-06-04)
 * Gradient hero with a white title (like the blog archive + every
 * other page), article shown as a white card on a light content
 * area so it no longer reads as a plain white document.
 * ============================================================ */
.wdz-single-main { background: #f4f6fb; }

.wdz-post-hero {
	background: linear-gradient(135deg, var(--wdz-primary, #0F3460) 0%, var(--wdz-accent, #C9A227) 100%);
}
.wdz-post-hero__inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 52px 24px 44px;
}
.wdz-post-hero .wdz-post-header { margin: 0; padding: 0; border: 0; }
.wdz-post-hero .wdz-post-title { color: #fff; }
.wdz-post-hero .wdz-back-link { color: #fff; opacity: .9; }
.wdz-post-hero .wdz-back-link:hover { color: #fff; opacity: 1; }
.wdz-post-hero .wdz-post-meta { color: rgba(255, 255, 255, .85); }
.wdz-post-hero .wdz-post-meta-item { color: rgba(255, 255, 255, .85); }

/* Article as a white card on the light content area */
.wdz-single-wrap .wdz-post-main {
	background: #fff;
	border-radius: 14px;
	padding: 32px 36px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

@media (max-width: 768px) {
	.wdz-post-hero__inner { padding: 32px 16px 28px; }
	.wdz-single-wrap .wdz-post-main { padding: 22px 18px; border-radius: 12px; }
}

/* ============================================================
 * Blog palette fix (Mahmud 2026-06-04) — the sidebar + post body
 * were hardcoded navy (#0F3460) / teal (#16A596) and didn't match
 * the site's niche palette. Re-point the visible accents at the
 * --wdz-primary / --wdz-accent tokens (purple/amber for party rental)
 * so the blog reads as part of the site.
 * ============================================================ */
.wdz-sidebar-card h4 { color: var(--wdz-primary, #0F3460); }
.wdz-cta-card { background: var(--wdz-primary, #0F3460); }
.wdz-search-form input[type="search"]:focus,
.wdz-search-form input[type="search"]:focus-visible { border-color: var(--wdz-primary, #0F3460); }
.wdz-search-form button { background: var(--wdz-primary, #0F3460); }
.wdz-search-form button:hover { background: var(--wdz-accent, #16A596); }
.wdz-sidebar a { color: var(--wdz-primary, #0F3460); }
.wdz-cta-card h4 { color: #fff; }  /* keep white on the purple CTA card (don't inherit the purple h4 override) */
.wdz-cta-card a,
.wdz-cta-btn, .wdz-cta-phone { color: #fff; }
/* single-post body headings + links follow the niche primary too */
.wdz-entry-content h2,
.wdz-entry-content h3,
.wdz-post-nav a { color: var(--wdz-primary, #0F3460); }
.wdz-entry-content a { color: var(--wdz-accent, #16A596); }
