/*
Theme Name:   Bigmache
Theme URI:    https://www.bigmache.com
Description:  قالب ابن لـ Twenty Twenty-Five، عربي RTL بخط Cairo، متناسق مع إضافة Bigmache Hub (المجموعات وآخر المقالات).
Author:       Bigmache
Template:     twentytwentyfive
Version:      1.0.1
Requires at least: 6.7
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  bigmache
*/

/* ---------- Header ---------- */
.bm-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(15, 30, 46, .96);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	color: #fff;
	padding-top: 12px; padding-bottom: 12px;
	box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.admin-bar .bm-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .bm-header { top: 0; } }
.bm-header a { color: #fff; text-decoration: none; }
.bm-header .wp-block-site-title { font-weight: 900; font-size: 1.35rem; margin: 0; }
.bm-header .wp-block-site-title a::after {
	content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: var(--wp--preset--color--accent-1); margin-inline-start: 4px;
}
.bm-header .wp-block-navigation { font-weight: 700; font-size: 1rem; gap: 6px; }
.bm-header .wp-block-navigation-item__content { padding: 6px 12px; border-radius: 999px; transition: background .2s; }
.bm-header .wp-block-navigation-item__content:hover { background: rgba(255,255,255,.1); }
.bm-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--contrast) !important; color: #fff !important; }

/* ---------- Footer ---------- */
.bm-footer {
	background: var(--wp--preset--color--contrast);
	color: rgba(255,255,255,.78);
	padding-top: 48px; padding-bottom: 28px;
	margin-top: 64px;
	position: relative;
}
.bm-footer::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
	background: linear-gradient(90deg, var(--wp--preset--color--accent-1), var(--wp--preset--color--accent-2));
}
.bm-footer a { color: #fff; text-decoration: none; }
.bm-footer a:hover { color: var(--wp--preset--color--accent-1); }
.bm-footer .wp-block-site-title { font-weight: 900; font-size: 1.5rem; margin: 0; }
.bm-footer .wp-block-site-tagline { margin-top: 6px; max-width: 420px; }
.bm-footer .bm-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: .9rem; }

/* ---------- Hub page (full width, no title) ---------- */
.bm-hub-main { margin-top: 0 !important; padding-bottom: 8px; }
.bm-hub-main .entry-content > .bmh { margin-top: 0; }

/* ---------- Posts & content ---------- */
body { -webkit-font-smoothing: antialiased; }
.wp-block-post-title a { text-decoration: none; }
.wp-block-post-title a:hover { color: var(--wp--preset--color--accent-2); }
.wp-block-post-featured-image img { border-radius: 18px; }
.wp-block-post-content :where(p, li, td) > a { color: var(--wp--preset--color--accent-2); text-underline-offset: 3px; }
.wp-block-post-content h2 { position: relative; padding-inline-start: 16px; }
.wp-block-post-content h2::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .35em; bottom: .35em; width: 5px; border-radius: 5px;
	background: linear-gradient(var(--wp--preset--color--accent-1), var(--wp--preset--color--accent-2));
}
.wp-block-post-content blockquote {
	border-inline-start: 4px solid var(--wp--preset--color--accent-1);
	background: #fff; border-radius: 0 14px 14px 0; padding: 16px 20px;
}
.wp-block-button__link { transition: transform .2s ease, filter .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); filter: brightness(1.05); }
