/*
Theme Name: Migxo Book
Theme URI: https://migxothemes.com
Author: Migxo Themes
Author URI: https://migxothemes.com
Description: A lightweight, clean, and extensible WordPress theme built as a fast foundation for Elementor-powered websites.
Version: 0.2.0
Requires at least: 6.8
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: migxo-book
Tags: custom-logo, custom-menu, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
Copyright 2026 Migxo Themes.
Migxo Book is distributed under the terms of the GNU General Public License v2 or later.
*/

:root {
	--migxo-color-primary: var(--e-global-color-primary, #2563eb);
	--migxo-color-text: var(--e-global-color-text, #1f2937);
	--migxo-color-muted: #6b7280;
	--migxo-color-border: #e5e7eb;
	--migxo-color-surface: #ffffff;
	--migxo-content-width: var(--wp--style--global--content-size, 800px);
	--migxo-wide-width: var(--wp--style--global--wide-size, 1200px);
	--migxo-page-gutter: clamp(1rem, 3vw, 2rem);
}

html {
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	background: var(--migxo-color-surface);
	color: var(--migxo-color-text);
	font-family: var(--e-global-typography-text-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 1rem;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--migxo-color-primary);
}

a:hover,
a:focus-visible {
	text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--migxo-color-primary);
	outline-offset: 2px;
}

button,
input,
select,
textarea {
	font: inherit;
}

.migxo-container {
	width: min(calc(100% - (2 * var(--migxo-page-gutter))), var(--migxo-wide-width));
	margin-inline: auto;
}

.site-header {
	border-block-end: 1px solid var(--migxo-color-border);
	background: var(--migxo-color-surface);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 72px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.custom-logo {
	display: block;
	max-height: 48px;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-description {
	margin: 0.25rem 0 0;
	color: var(--migxo-color-muted);
	font-size: 0.875rem;
}

.primary-navigation ul,
.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation a,
.footer-navigation a {
	color: inherit;
	text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.footer-navigation a:hover,
.footer-navigation a:focus-visible {
	color: var(--migxo-color-primary);
}

body:not([class*="elementor-page-"]) .site-main {
	width: min(calc(100% - (2 * var(--migxo-page-gutter))), var(--migxo-content-width));
	margin-inline: auto;
	padding-block: clamp(2.5rem, 6vw, 5rem);
}

body.elementor-page .site-main,
body[class*="elementor-page-"] .site-main {
	width: 100%;
	margin: 0;
	padding: 0;
}

body.elementor-page .entry-content,
body[class*="elementor-page-"] .entry-content {
	width: 100%;
	margin: 0;
}

body.elementor-page .entry-header,
body[class*="elementor-page-"] .entry-header {
	width: min(calc(100% - (2 * var(--migxo-page-gutter))), var(--migxo-content-width));
	margin-inline: auto;
	padding-block-start: 2rem;
}

.entry + .entry {
	margin-block-start: 3rem;
}

.entry-title {
	margin-block: 0 1rem;
	line-height: 1.2;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-meta {
	margin-block-end: 1rem;
	color: var(--migxo-color-muted);
	font-size: 0.875rem;
}

.entry-thumbnail {
	margin-block-end: 1.5rem;
}

.entry-content::after {
	display: table;
	clear: both;
	content: "";
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-block-start: 2rem;
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--migxo-color-border);
	color: var(--migxo-color-muted);
	font-size: 0.875rem;
}

.archive-description,
.search-description {
	color: var(--migxo-color-muted);
}

.navigation.pagination {
	margin-block-start: 3rem;
}

.post-navigation {
	margin-block-start: 3rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid var(--migxo-color-border);
}

.pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
}

.site-footer {
	border-block-start: 1px solid var(--migxo-color-border);
	background: var(--migxo-color-surface);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 88px;
}

.site-footer p {
	margin: 0;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 36rem;
}

.search-field {
	min-width: 0;
	flex: 1;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--migxo-color-border);
	border-radius: 4px;
}

.search-submit {
	padding: 0.65rem 1rem;
	border: 1px solid var(--migxo-color-primary);
	border-radius: 4px;
	background: var(--migxo-color-primary);
	color: #ffffff;
	cursor: pointer;
}

.comments-area {
	margin-block-start: 3rem;
	padding-block-start: 2rem;
	border-block-start: 1px solid var(--migxo-color-border);
}

.comment-list,
.comment-list .children {
	list-style: none;
}

.comment-list {
	padding: 0;
}

.comment-list .children {
	padding-inline-start: 1.5rem;
}

.comment-body {
	padding-block: 1.5rem;
	border-block-end: 1px solid var(--migxo-color-border);
}

.comment-meta {
	margin-block-end: 0.75rem;
	font-size: 0.875rem;
}

.comment-form :where(input:not([type="checkbox"]):not([type="radio"]), textarea) {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--migxo-color-border);
	border-radius: 4px;
}

.alignleft {
	float: left;
	margin-inline-end: 1.5rem;
}

.alignright {
	float: right;
	margin-inline-start: 1.5rem;
}

.aligncenter {
	display: block;
	clear: both;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	color: var(--migxo-color-muted);
	font-size: 0.875rem;
}

.sticky,
.bypostauthor {
	display: block;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto !important;
	background: #ffffff;
	color: #111827;
	font-weight: 700;
	white-space: normal;
}

@media (max-width: 767px) {
	.site-header__inner,
	.site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
		padding-block: 1rem;
	}
}
