/*
Theme Name:   UAEHub Theme
Theme URI:    https://example.com/uaehub-theme
Author:       UAEHub
Author URI:   https://example.com
Description:  A premium, high-contrast editorial newspaper WordPress theme designed specifically to integrate with the UAEHub Engine plugin. Styled with sharp typography, minimal borders, and a beautiful crimson accent color inspired by Arabian Business.
Version:      1.0.0
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  uaehub-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

:root {
	--uaehub-accent: #c8102e;
	--uh-ink: #0d0d0d;
	--uh-muted: #5e6977;
	--uh-line: #e2e8f0;
	--uh-bg-soft: #fcfdfe;
	--uh-bg-alt: #f1f5f9;
	--uh-radius: 0px;
	--uh-font-serif: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;
	--uh-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ------------------------------------------------------------------ *
 * Reset & Layout Core
 * ------------------------------------------------------------------ */
body {
	margin: 0;
	padding: 0;
	background-color: #ffffff;
	color: var(--uh-ink);
	font-family: var(--uh-font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

* {
	box-sizing: border-box;
}

a {
	color: var(--uh-ink);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--uaehub-accent);
}

.uaehub-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.uaehub-main {
	margin-block: 40px;
}

/* ------------------------------------------------------------------ *
 * Editorial Header
 * ------------------------------------------------------------------ */
.uaehub-theme-header {
	background: #ffffff;
	border-top: 4px solid var(--uh-ink);
	border-bottom: 2px solid var(--uh-ink);
	padding-top: 24px;
	padding-bottom: 12px;
	text-align: center;
}

.uaehub-theme-header__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
}

.uaehub-theme-header__title {
	font-family: var(--uh-font-serif);
	font-size: 3.2rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--uh-ink);
	line-height: 1;
	margin: 0;
}

.uaehub-theme-header__title a {
	color: inherit;
	text-decoration: none;
}

.uaehub-theme-header__title::after {
	content: ".";
	color: var(--uaehub-accent);
}

.uaehub-theme-header__tagline {
	margin: 0;
	font-family: var(--uh-font-sans);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--uh-muted);
	border-top: 1px solid var(--uh-line);
	border-bottom: 1px solid var(--uh-line);
	padding-block: 6px;
	width: 100%;
	max-width: 600px;
}

.uaehub-theme-header__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 28px;
	width: 100%;
	border-top: 1px solid var(--uh-line);
	padding-top: 14px;
}

.uaehub-theme-header__link {
	font-family: var(--uh-font-sans);
	font-size: 0.84rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uh-ink);
	text-decoration: none;
}

/* ------------------------------------------------------------------ *
 * Editorial Footer
 * ------------------------------------------------------------------ */
.uaehub-theme-footer {
	background: var(--uh-ink);
	color: #ffffff;
	padding-top: 50px;
	padding-bottom: 30px;
	margin-top: 60px;
	border-top: 3px solid var(--uaehub-accent);
}

.uaehub-theme-footer a {
	color: #a0aec0;
}

.uaehub-theme-footer a:hover {
	color: #ffffff;
}

.uaehub-theme-footer__grid {
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr;
	margin-bottom: 40px;
}

@media (min-width: 768px) {
	.uaehub-theme-footer__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.uaehub-theme-footer__col h3 {
	font-family: var(--uh-font-serif);
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: #ffffff;
	border-bottom: 1px solid #2d3748;
	padding-bottom: 8px;
}

.uaehub-theme-footer__col p {
	font-size: 0.9rem;
	color: #a0aec0;
	line-height: 1.6;
}

.uaehub-theme-footer__menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 0.9rem;
}

.uaehub-theme-footer__bottom {
	border-top: 1px solid #2d3748;
	padding-top: 24px;
	text-align: center;
	font-size: 0.8rem;
	color: #718096;
}

/* ------------------------------------------------------------------ *
 * Page & Single Shells
 * ------------------------------------------------------------------ */
.uaehub-article-header {
	margin-bottom: 30px;
}

.uaehub-article-title {
	font-family: var(--uh-font-serif);
	font-size: clamp(1.8rem, 1.4rem + 2.5vw, 3rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: var(--uh-ink);
	margin: 0 0 16px;
}

.uaehub-article-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 20px;
	font-family: var(--uh-font-sans);
	font-size: 0.84rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uh-muted);
	border-bottom: 1px solid var(--uh-line);
	padding-bottom: 16px;
	margin-bottom: 24px;
}

.uaehub-article-meta__source {
	color: var(--uaehub-accent);
	font-weight: 800;
}

.uaehub-article-media {
	width: 100%;
	margin-bottom: 34px;
}

.uaehub-article-media img {
	width: 100%;
	height: auto;
	object-fit: cover;
	max-height: 520px;
}

.uaehub-article-content {
	font-size: 1.1rem;
	line-height: 1.75;
	color: #1a1a1a;
	max-width: 800px;
}

.uaehub-article-content p {
	margin-bottom: 24px;
}

.uaehub-article-content h2, 
.uaehub-article-content h3 {
	font-family: var(--uh-font-serif);
	font-weight: 800;
	color: var(--uh-ink);
	margin-top: 40px;
	margin-bottom: 16px;
}

.uaehub-article-content h2 { font-size: 1.8rem; }
.uaehub-article-content h3 { font-size: 1.4rem; }

/* ------------------------------------------------------------------ *
 * Tabular Layout for Jobs details
 * ------------------------------------------------------------------ */
.uaehub-job-details-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
	border: 1px solid var(--uh-line);
}

.uaehub-job-details-table th, 
.uaehub-job-details-table td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--uh-line);
	font-family: var(--uh-font-sans);
}

.uaehub-job-details-table th {
	background-color: #fafafa;
	font-weight: 700;
	color: var(--uh-ink);
	width: 250px;
}

.uaehub-job-details-table td {
	color: var(--uh-muted);
	font-weight: 500;
}

/* ------------------------------------------------------------------ *
 * Default Page Elements
 * ------------------------------------------------------------------ */
.page-title {
	font-family: var(--uh-font-serif);
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 24px;
	border-bottom: 2px solid var(--uh-ink);
	padding-bottom: 10px;
}

/* ------------------------------------------------------------------ *
 * Nested navigation lists layout override (for fallback page menus)
 * ------------------------------------------------------------------ */
.uaehub-theme-header__nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 28px;
}

.uaehub-theme-header__nav li {
	display: inline-block;
	margin: 0;
}

.uaehub-theme-header__nav a {
	font-family: var(--uh-font-sans);
	font-size: 0.84rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uh-ink);
	text-decoration: none;
	transition: color 0.15s ease;
}

.uaehub-theme-header__nav a:hover {
	color: var(--uaehub-accent);
}

/* Mobile Navigation Toggle Button */
.uaehub-menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--uh-line);
	border-radius: 4px;
	padding: 8px 16px;
	font-family: var(--uh-font-sans);
	font-size: 0.84rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uh-ink);
	cursor: pointer;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	margin-bottom: 5px;
	transition: all 0.2s ease;
}

.uaehub-menu-toggle:hover,
.uaehub-menu-toggle:focus {
	background: var(--uh-bg);
	border-color: var(--uh-ink);
}

.uaehub-menu-toggle-icon {
	display: inline-block;
	width: 16px;
	height: 2px;
	background: var(--uh-ink);
	position: relative;
	transition: background 0.2s ease;
}

.uaehub-menu-toggle-icon::before,
.uaehub-menu-toggle-icon::after {
	content: '';
	width: 16px;
	height: 2px;
	background: var(--uh-ink);
	position: absolute;
	left: 0;
	transition: transform 0.2s ease;
}

.uaehub-menu-toggle-icon::before {
	top: -5px;
}

.uaehub-menu-toggle-icon::after {
	bottom: -5px;
}

/* Active hamburger icon state */
.uaehub-menu-toggle.is-active .uaehub-menu-toggle-icon {
	background: transparent;
}

.uaehub-menu-toggle.is-active .uaehub-menu-toggle-icon::before {
	transform: translateY(5px) rotate(45deg);
}

.uaehub-menu-toggle.is-active .uaehub-menu-toggle-icon::after {
	transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 768px) {
	.uaehub-menu-toggle {
		display: inline-flex !important;
	}
	
	.uaehub-theme-header__nav {
		display: none;
		width: 100%;
		border-top: 1px solid var(--uh-line);
		padding-top: 14px;
		padding-bottom: 14px;
		animation: uaehub-slide-down 0.25s ease forwards;
	}
	
	.uaehub-theme-header__nav.is-open {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 14px;
	}

	.uaehub-theme-header__nav ul {
		flex-direction: column !important;
		align-items: center !important;
		width: 100%;
		gap: 14px !important;
	}

	.uaehub-theme-header__nav ul li {
		width: 100%;
		text-align: center;
	}

	.uaehub-theme-header__nav .uaehub-theme-header__link,
	.uaehub-theme-header__nav ul li a {
		display: block;
		padding: 10px;
		width: 100%;
		border-radius: 4px;
		transition: background 0.2s ease;
	}

	.uaehub-theme-header__nav .uaehub-theme-header__link:hover,
	.uaehub-theme-header__nav ul li a:hover {
		background: var(--uh-bg);
	}
}

@keyframes uaehub-slide-down {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
