/*
Theme Name: Bakhoor Journal 2
Theme URI: https://bakhoor.co.in/
Author: Bakhoor.co.in
Description: A warm, reader-first block theme for bakhoor.co.in. Fonts and colours are set in theme.json, so you can change them any time in Appearance → Editor → Styles. Homepage sections ship as editable patterns with dummy content.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bakhoor-journal-2
Tags: blog, block-patterns, full-site-editing, custom-colors, custom-menu, editor-style, one-column, wide-blocks
*/

/*
 * Small layout helpers used by the theme's patterns.
 * Every colour and font below comes from theme.json presets (var(--wp--preset--...)),
 * so changing colours or fonts in Styles updates these too. No colours are hard-coded.
 */

/* ---------- Sections ---------- */
.bj-section {
	padding-top: clamp(2.75rem, 6vw, 4.5rem);
	padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}
.bj-section--sand {
	background-color: var(--wp--preset--color--base-2);
}
.bj-eyebrow {
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.25rem !important;
}
.bj-intro {
	color: var(--wp--preset--color--muted);
}
.bj-meta,
.bj-label {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--meta);
}
.bj-label {
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}
.bj-badge {
	display: inline-block;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	padding: 0.2rem 0.75rem;
	border-radius: 999px;
}

/* ---------- Cards ---------- */
.bj-card {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	padding: 1.25rem 1.375rem;
	height: 100%;
	box-sizing: border-box;
}
.bj-card > * + * {
	margin-block-start: 0.6rem;
}
.bj-card h3 {
	margin-top: 0;
}
.bj-facts {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.75;
}
.bj-facts strong {
	font-weight: 400;
	color: var(--wp--preset--color--meta);
}
.bj-vs {
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--tint);
	border-radius: 8px;
	padding: 0.4rem 0.6rem;
}
.bj-vs strong {
	color: var(--wp--preset--color--accent);
}

/* ---------- Quick answer box ---------- */
.bj-quick {
	background: var(--wp--preset--color--tint);
	border-radius: 10px;
	padding: 0.9rem 1.1rem;
}
.bj-quick > * {
	margin: 0;
}
.bj-quick > * + * {
	margin-top: 0.25rem;
}

/* ---------- Strips and callouts ---------- */
.bj-strip {
	background: var(--wp--preset--color--tint);
	border-radius: 10px;
	padding: 0.85rem 1.1rem;
}
.bj-strip > * {
	margin: 0;
}
.bj-callout {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	border-radius: 12px;
	padding: 1rem 1.25rem;
}
.bj-callout strong {
	color: var(--wp--preset--color--on-dark-accent);
}
.bj-callout > * {
	margin: 0;
}
.bj-cta {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 1.1rem 1.25rem;
}
.bj-cta-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.3rem;
	font-weight: 600;
	margin: 0;
}
.bj-photo {
	background: var(--wp--preset--color--border);
	border-radius: 14px;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--meta);
	text-align: center;
}

/* ---------- Hero ---------- */
.bj-hero {
	color: #fff;
}
.bj-hero h1,
.bj-hero p {
	color: #fff;
}
.bj-hero .bj-eyebrow {
	color: var(--wp--preset--color--on-dark-accent);
}
.bj-hero .wp-block-search__inside-wrapper {
	background: #fff;
	border-radius: 999px;
	border: 0;
	padding: 6px 6px 6px 18px;
	max-width: 600px;
	margin: 0 auto;
}
.bj-hero .wp-block-search__input {
	border: 0;
	background: transparent;
	font-size: 1rem;
	min-height: 44px;
}
.bj-hero .wp-block-search__button {
	border-radius: 999px;
	min-width: 44px;
	min-height: 44px;
	margin-left: 6px;
}
.bj-chips .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff;
	font-weight: 400;
	font-size: 0.875rem;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
}
.bj-chips .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* ---------- Details (expandable summaries) ---------- */
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.125rem;
	cursor: pointer;
}
.wp-block-details[open] summary {
	margin-bottom: 0.5rem;
}

/* ---------- Header ---------- */
.bj-header {
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--base);
}
.bj-logo {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.6rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.2;
}
.bj-logo a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.bj-header .wp-block-button__link {
	border-radius: 999px;
	padding: 0.55rem 1.1rem;
	font-size: 0.9375rem;
}

/* ---------- Footer ---------- */
.bj-footer {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--on-dark);
}
.bj-footer h2,
.bj-footer h3,
.bj-footer h4 {
	color: #fff;
}
.bj-footer a {
	color: var(--wp--preset--color--on-dark);
	text-decoration: none;
}
.bj-footer a:hover {
	color: var(--wp--preset--color--on-dark-accent);
}
.bj-footer .bj-footer-label {
	color: var(--wp--preset--color--on-dark-accent);
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
}
.bj-footer .bj-logo a {
	color: #fff;
}
.bj-footer-list {
	list-style: none;
	padding-left: 0;
	line-height: 2;
}
.bj-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Video placeholders ---------- */
.bj-card .wp-block-embed,
.bj-video .wp-block-embed {
	margin: 0;
}

/* ---------- Article helpers ---------- */
.bj-post-meta {
	color: var(--wp--preset--color--meta);
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Page frame: no gaps between header, main and footer ---------- */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
.bj-main-pad {
	padding-top: 2.5rem;
	padding-bottom: 3.5rem;
}
.bj-comment-prompt {
	background: var(--wp--preset--color--tint);
	border-left: 3px solid var(--wp--preset--color--accent);
	border-radius: 8px;
	padding: 1rem 1.25rem;
}

/* ---------- Lightweight click-to-play YouTube (see functions.php) ---------- */
.bj-yt {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: var(--wp--preset--color--dark);
}
.wp-block-post-content .bj-yt {
	margin-block: 1.5rem;
}
.video-embed .bj-yt {
	margin: 0;
	height: 100%;
}
.bj-yt iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
