:root {
	--color-text: #111;
	--color-link: #111;
	--color-link-hover: #555;
	--color-border: #eee;
	--color-background: #fff;
	--color-background-alt: #f9f9f9;
}

/* Dark Mode Color Scheme */
html[data-theme="dark"] {
	--color-text: #eee;
	--color-link: #eee;
	--color-link-hover: #bbb;
	--color-border: #333;
	--color-background: #121212;
	--color-background-alt: #1e1e1e;
}

body {
	background-color: var(--color-background);
	color: var(--color-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	margin: 0;
}

/*
Theme Name: Zip
Author: SeoSementara
Description: Tema WordPress modern, cepat, responsif, dan SEO-friendly.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: SeoSementara-zip
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, responsive-layout

--------------------------------------------------------------
Catatan:
- Bagian komentar di atas Wajib Ada.
- WordPress membaca metadata tema dari sini.
--------------------------------------------------------------
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
# Header
# Navigation
# Content
# Comments
# Sidebar
# Footer
--------------------------------------------------------------*/

/* ====================*/

.header-ad-container {
	display: none; /* Sembunyikan secara default */
	align-items: center;
	justify-content: center;
	background-color: #f5f5f5;
	overflow: hidden;
}

.header-ad-container.consent-given {
	display: flex; /* Tampilkan jika consent diberikan */
}

.header-ad-container img {
	width: 100%;
	height: auto;
	object-fit: contain; /* Ensure full image is visible */
	display: block;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
	position: relative;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--color-border);
}

.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.site-branding {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: inherit;
}

.site-branding .custom-logo {
	max-height: 40px; /* Smaller logo for mobile */
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.2;
}

.site-description {
	margin: 0;
	font-size: 0.875rem;
	color: #666;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Hide search form, show only a toggle button on mobile */
.site-search .search-form {
	display: none;
}
.site-search .search-toggle {
	display: block;
	background: none;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 0.5rem;
	cursor: pointer;
}
.site-search .search-toggle svg {
	width: 20px;
	height: 20px;
	fill: #555;
}


/* Mobile navigation (Off-canvas) */
.main-navigation {
	background-color: var(--color-background);
	position: fixed;
	top: 0;
	left: 0;
	width: 210px;
	height: 100%;
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
	z-index: 1000;
	padding: 2rem;
	border-right: 1px solid var(--color-border);
}

.menu-toggled .main-navigation {
	transform: translateX(0);
}

.main-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-direction: column;
	text-align: left;
	gap: 1rem;
}

.main-navigation a {
	border-bottom: none;
}


.menu-toggle {
	display: block; /* Show hamburger on mobile */
	background: transparent;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 0.5rem;
	cursor: pointer;
	z-index: 1001; /* Above the nav */
}

.menu-toggle svg {
	width: 20px;
	height: 20px;
	fill: #555;
}

.menu-toggle .icon-close {
	display: none;
}

.menu-toggled .menu-toggle .icon-hamburger {
	display: none;
}

.menu-toggled .menu-toggle .icon-close {
	display: block;
}

/* Overlay for when menu is open */
.overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 999;
}
.overlay.active {
	display: block;
}

/* Prevent scrolling when menu is open */
body.no-scroll {
	overflow: hidden;
}


/* Desktop Navigation Styles */
@media (min-width: 769px) {
	.site-header {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	.header-ad-container img {
		/* No specific desktop styles needed, it will inherit correctly */
	}

	.site-branding .custom-logo {
		max-height: 60px; /* Restore desktop logo size */
	}

	.header-actions {
		gap: 1rem;
	}

	/* Restore search form on desktop */
	.site-search .search-form {
		display: flex;
		min-width: 300px;
	}
	.site-search .search-toggle {
		display: none;
	}


	/* Restore main navigation to its place */
	.main-navigation {
		position: static;
		width: 100%;
		height: auto;
		transform: none;
		background: none;
		padding: 0;
		border: none;
	}

	.menu-toggled .main-navigation {
		transform: none;
	}

	.main-navigation ul {
		flex-direction: row;
		justify-content: center;
		padding: 0;
		gap: 1.5rem;
	}

	.main-navigation a {
		border-bottom: 2px solid transparent;
	}

	.header-actions .menu-toggle,
	.header-actions .search-toggle {
		display: none;
	}
}

.search-form {
	display: flex;
	position: relative;
}

.search-field {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	background-color: var(--color-background);
	color: var(--color-text);
}

.search-submit {
	position: absolute;
	top: 50%;
	right: 0.5rem;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.search-icon {
	width: 20px;
	height: 20px;
	fill: #555;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
	background-color: var(--color-background-alt);
	padding: 2rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.site-info {
	color: #666;
	font-size: 0.875rem;
}

.site-info a {
	text-decoration: none;
	color: var(--color-link);
}

a {
	color: var(--color-link);
	text-decoration: none;
	font-weight: bold;
	transition: color 0.2s ease-in-out;
}

a:hover {
	color: var(--color-link-hover);
	text-decoration: underline;
}

.footer-social-links {
	display: flex;
	gap: 1rem;
}

.footer-social-links a {
	color: #555;
}

.footer-social-links a:hover {
	color: #0073aa;
}

.footer-social-links svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.footer-social-navigation .social-links-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-direction: row;
	justify-content: center;
	padding: 0;
	gap: 1rem;
}

.footer-social-navigation a {
	color: #555;
	font-weight: normal; /* Override bold for social icons */
}

.footer-social-navigation a:hover {
	color: #0073aa;
}

.footer-social-navigation svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/*--------------------------------------------------------------
# Scroll to Top Button
--------------------------------------------------------------*/
.scroll-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	background-color: var(--color-link);
	color: var(--color-background);
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
	z-index: 1000;
}

.scroll-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scroll-to-top svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}


/*--------------------------------------------------------------
# Accessibility: Focus Visible
--------------------------------------------------------------*/
/* Add a custom focus style for keyboard navigators */
:focus-visible {
	outline: 3px solid var(--color-link);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--color-background);
}

/* Remove the default outline for mouse users, but keep it for keyboard users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
	outline: none;
}


/*--------------------------------------------------------------
# Cookie Consent Toast
--------------------------------------------------------------*/
.cookie-toast {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	background-color: #2d3748;
	color: #fff;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	max-width: 350px;
	z-index: 1050;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Responsive Cookie Toast */
@media (max-width: 480px) {
	.cookie-toast {
		left: 1rem;
		right: 1rem;
		bottom: 1rem;
		max-width: none;
	}
}

.cookie-toast.hidden {
	opacity: 0;
	transform: translateY(2rem);
	pointer-events: none;
}

.cookie-toast__message {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

.cookie-toast__actions {
	display: flex;
	gap: 0.75rem;
}

.cookie-toast__button {
	background-color: #4a5568;
	color: #fff;
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	transition: background-color 0.2s;
}

.cookie-toast__button:hover {
	background-color: #2d3748;
}

.cookie-toast__button--decline {
	background-color: transparent;
	border: 1px solid #4a5568;
}

.cookie-toast__button--decline:hover {
	background-color: #4a5568;
}

.theme-toggle {
	background: none;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	padding: 0.5rem;
	cursor: pointer;
	color: var(--color-text);
	display: flex; /* Ensure icon is centered */
	align-items: center;
	justify-content: center;
}

.theme-toggle svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* By default (light mode), show the moon icon */
.theme-toggle .icon-sun {
	display: none;
}

/* In dark mode, show the sun icon and hide the moon */
html[data-theme="dark"] .theme-toggle .icon-sun {
	display: block;
}
html[data-theme="dark"] .theme-toggle .icon-moon {
	display: none;
}


.menu-toggle,
.search-toggle {
	display: block; /* Show hamburger on mobile */
	background: transparent;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	padding: 0.5rem;
	cursor: pointer;
	z-index: 1001; /* Above the nav */
}

.menu-toggle svg,
.search-toggle svg,
.menu-toggle svg,
.search-icon {
	width: 20px;
	height: 20px;
	fill: var(--color-text);
}


