/*
Theme Name: Basrawe Photos
Theme URI: https://photos.basrawe.com/
Author: Basrawe
Author URI: https://basrawe.com/
Description: قالب عربي خفيف ومخصص لمنصة صور بصراوي والأرشيف البصري المجتمعي للبصرة.
Version: 0.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: basrawe-photos-theme
License: GPL-2.0-or-later
*/

:root {
	--bp-ink: #13231d;
	--bp-muted: #64746d;
	--bp-green: #087a63;
	--bp-green-dark: #055b4a;
	--bp-green-soft: #e6f3ef;
	--bp-sand: #f5f1e8;
	--bp-paper: #ffffff;
	--bp-line: #dbe5e0;
	--bp-shadow: 0 12px 40px rgba(19, 35, 29, .08);
	--bp-radius: 18px;
	--bp-width: 1180px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	background: #fbfcfb;
	color: var(--bp-ink);
	direction: rtl;
	font-family: Tahoma, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	margin: 0;
}

body.admin-bar .bp-site-header {
	top: 32px;
}

a {
	color: var(--bp-green);
}

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

.bp-skip-link {
	background: var(--bp-ink);
	color: #fff;
	position: fixed;
	right: 12px;
	top: -100px;
	z-index: 99999;
}

.bp-skip-link:focus {
	padding: 9px 14px;
	top: 12px;
}

.bp-container {
	margin-inline: auto;
	max-width: var(--bp-width);
	padding-inline: 24px;
	width: 100%;
}

.bp-site-header {
	backdrop-filter: blur(14px);
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid var(--bp-line);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.bp-header-inner {
	align-items: center;
	display: flex;
	gap: 28px;
	justify-content: space-between;
	min-height: 78px;
}

.bp-brand {
	align-items: center;
	color: var(--bp-ink);
	display: inline-flex;
	flex: 0 0 auto;
	gap: 11px;
	text-decoration: none;
}

.bp-brand-mark {
	align-items: center;
	background: linear-gradient(145deg, var(--bp-green), var(--bp-green-dark));
	border-radius: 13px;
	box-shadow: 0 7px 18px rgba(8, 122, 99, .22);
	display: inline-flex;
	height: 45px;
	justify-content: center;
	width: 45px;
}

.bp-brand-mark svg {
	height: 29px;
	width: 29px;
}

.bp-brand-copy {
	display: grid;
	line-height: 1.25;
}

.bp-brand-title {
	font-size: 20px;
	font-weight: 800;
}

.bp-brand-tagline {
	color: var(--bp-muted);
	font-size: 11px;
	font-weight: 400;
	margin-top: 3px;
}

.custom-logo {
	display: block;
	height: 45px;
	max-width: 150px;
	object-fit: contain;
	width: auto;
}

.bp-header-nav {
	align-items: center;
	display: flex;
	gap: 22px;
	margin-inline-start: auto;
}

.bp-menu {
	align-items: center;
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bp-menu a {
	color: var(--bp-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.bp-menu a:hover,
.bp-menu .current-menu-item > a {
	color: var(--bp-green);
}

.bp-header-action,
.bp-button {
	align-items: center;
	background: var(--bp-green);
	border: 1px solid var(--bp-green);
	border-radius: 10px;
	color: #fff;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 43px;
	padding: 8px 16px;
	text-decoration: none;
}

.bp-header-action:hover,
.bp-button:hover {
	background: var(--bp-green-dark);
	border-color: var(--bp-green-dark);
	color: #fff;
}

.bp-mobile-nav {
	display: none;
}

.bp-main {
	min-height: calc(100vh - 360px);
	padding-block: 34px 56px;
}

.bp-front-intro {
	align-items: center;
	background: linear-gradient(135deg, var(--bp-green-soft), var(--bp-sand));
	border: 1px solid var(--bp-line);
	border-radius: 24px;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-bottom: 28px;
	overflow: hidden;
	padding: 28px 32px;
	position: relative;
}

.bp-front-intro-copy {
	position: relative;
	z-index: 1;
}

.bp-front-intro::after {
	border: 22px solid rgba(8, 122, 99, .08);
	border-radius: 50%;
	content: "";
	height: 170px;
	left: -45px;
	pointer-events: none;
	position: absolute;
	top: -70px;
	width: 170px;
}

.bp-front-intro .bp-button {
	flex: 0 0 auto;
	position: relative;
	z-index: 1;
}

.bp-front-intro strong {
	display: block;
	font-size: clamp(24px, 4vw, 42px);
	line-height: 1.4;
	max-width: 650px;
}

.bp-front-intro p {
	color: var(--bp-muted);
	margin: 7px 0 0;
	max-width: 720px;
}

.home .bsp-gallery-heading {
	display: none;
}

.home .bsp-gallery-shell {
	margin-top: 0;
}

.bp-page {
	background: var(--bp-paper);
	border: 1px solid var(--bp-line);
	border-radius: var(--bp-radius);
	box-shadow: var(--bp-shadow);
	margin-inline: auto;
	max-width: 900px;
	padding: 30px;
}

.bp-page.is-app-page {
	background: transparent;
	border: 0;
	box-shadow: none;
	max-width: none;
	padding: 0;
}

.bp-page-title {
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.35;
	margin: 0 0 24px;
}

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

.bp-entry-content > :first-child {
	margin-top: 0;
}

.bp-entry-content > :last-child {
	margin-bottom: 0;
}

.bp-post-list {
	display: grid;
	gap: 18px;
}

.bp-post-card {
	background: #fff;
	border: 1px solid var(--bp-line);
	border-radius: var(--bp-radius);
	padding: 24px;
}

.bp-post-card h2 {
	margin: 0 0 8px;
}

.bp-post-card h2 a {
	color: var(--bp-ink);
	text-decoration: none;
}

.bp-site-footer {
	background: var(--bp-ink);
	color: rgba(255, 255, 255, .75);
	margin-top: 20px;
	padding-block: 42px 22px;
}

.bp-footer-grid {
	display: grid;
	gap: 35px;
	grid-template-columns: 1.3fr .7fr .7fr;
}

.bp-footer-title {
	color: #fff;
	font-size: 22px;
	font-weight: 800;
}

.bp-footer-about {
	margin-top: 9px;
	max-width: 520px;
}

.bp-footer-heading {
	color: #fff;
	font-weight: 700;
	margin-bottom: 9px;
}

.bp-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bp-footer-links li + li {
	margin-top: 6px;
}

.bp-footer-links a {
	color: rgba(255, 255, 255, .78);
	text-decoration: none;
}

.bp-footer-links a:hover {
	color: #fff;
}

.bp-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 12px;
	margin-top: 30px;
	padding-top: 18px;
}

@media (max-width: 900px) {
	.bp-header-nav {
		display: none;
	}

	.bp-mobile-nav {
		display: block;
		position: relative;
	}

	.bp-mobile-nav summary {
		align-items: center;
		border: 1px solid var(--bp-line);
		border-radius: 9px;
		cursor: pointer;
		display: flex;
		font-size: 22px;
		height: 42px;
		justify-content: center;
		list-style: none;
		width: 42px;
	}

	.bp-mobile-nav summary::-webkit-details-marker {
		display: none;
	}

	.bp-mobile-panel {
		background: #fff;
		border: 1px solid var(--bp-line);
		border-radius: 12px;
		box-shadow: var(--bp-shadow);
		left: 0;
		min-width: 250px;
		padding: 14px;
		position: absolute;
		top: 50px;
	}

	.bp-mobile-panel .bp-menu {
		align-items: stretch;
		flex-direction: column;
		gap: 4px;
	}

	.bp-mobile-panel .bp-menu a {
		display: block;
		padding: 8px;
	}

	.bp-mobile-panel .bp-header-action {
		margin-top: 10px;
		width: 100%;
	}

	.bp-footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.bp-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 782px) {
	body.admin-bar .bp-site-header {
		top: 46px;
	}
}

@media (max-width: 640px) {
	.bp-container {
		padding-inline: 16px;
	}

	.bp-header-inner {
		min-height: 67px;
	}

	.bp-brand-mark {
		border-radius: 10px;
		height: 39px;
		width: 39px;
	}

	.bp-brand-title {
		font-size: 17px;
	}

	.bp-brand-tagline {
		display: none;
	}

	.bp-main {
		padding-block: 22px 40px;
	}

	.bp-front-intro {
		align-items: stretch;
		border-radius: 17px;
		flex-direction: column;
		padding: 22px 18px;
	}

	.bp-page {
		border-radius: 14px;
		padding: 20px 16px;
	}

	.bp-footer-grid {
		grid-template-columns: 1fr;
	}

	.bp-footer-brand {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}
