/*
Theme Name: BioLine
Theme URI: https://bioline1.ir
Description: قالب راست‌به‌چپ بیولاین برای بانک سؤال آزمون‌های پزشکی. همراه با افزونه‌ی «بیولاین – بانک سؤال» استفاده شود.
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
Author: BioLine
License: GPL-2.0-or-later
Text Domain: bioline
*/

@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* Tokens match the plugin's (--mq-*), so the theme also works without it. */
:root {
	--mq-brand: #003D66; --mq-brand-ink: #002A47; --mq-brand-soft: rgba(0,61,102,.08);
	--mq-action: #2F7CE0; --mq-action2: #5AA2FF; --mq-pro: #FB8602; --mq-pro2: #FFA033;
	--mq-ok: #14A86B; --mq-ok-soft: rgba(20,168,107,.12);
	--mq-bg: #F5F7FA; --mq-surface: #FFFFFF; --mq-surface2: #EDF1F5; --mq-line: #DFE5EC;
	--mq-ink: #141A26; --mq-text: #363B45; --mq-muted: #727782;
	--mq-shadow: 0 6px 24px rgba(10,30,50,.07); --mq-r: 12px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
	--mq-brand: #5AAEE8; --mq-brand-ink: #8CC6EF; --mq-brand-soft: rgba(90,174,232,.14);
	--mq-action: #4A92F0; --mq-action2: #73B2FF; --mq-pro: #FF9A1F; --mq-pro2: #FFB54D; --mq-ok: #2FCB8A; --mq-ok-soft: rgba(47,203,138,.14);
	--mq-bg: #12141A; --mq-surface: #1B1E26; --mq-surface2: #242832; --mq-line: #2E323D;
	--mq-ink: #F2F3F6; --mq-text: #C9CCD3; --mq-muted: #8A8F9A; --mq-shadow: 0 6px 24px rgba(0,0,0,.35); color-scheme: dark; } }
:root[data-theme="dark"] {
	--mq-brand: #5AAEE8; --mq-brand-ink: #8CC6EF; --mq-brand-soft: rgba(90,174,232,.14);
	--mq-action: #4A92F0; --mq-action2: #73B2FF; --mq-pro: #FF9A1F; --mq-pro2: #FFB54D; --mq-ok: #2FCB8A; --mq-ok-soft: rgba(47,203,138,.14);
	--mq-bg: #12141A; --mq-surface: #1B1E26; --mq-surface2: #242832; --mq-line: #2E323D;
	--mq-ink: #F2F3F6; --mq-text: #C9CCD3; --mq-muted: #8A8F9A; --mq-shadow: 0 6px 24px rgba(0,0,0,.35); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--mq-bg); color: var(--mq-text);
	font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.75;
	/* faint ECG trace */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80'%3E%3Cpath d='M0 40h70l8-14 8 30 10-52 10 56 8-20h126' fill='none' stroke='%23003D66' stroke-opacity='.06' stroke-width='2'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--mq-ink); margin: 0; line-height: 1.35; text-wrap: balance; }
h1 { font-size: clamp(26px, 4.6vw, 40px); font-weight: 800; }
h2 { font-size: clamp(21px, 3vw, 27px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--mq-action); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--mq-surface); box-shadow: var(--mq-shadow); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .wrap { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 24px; color: var(--mq-ink); line-height: 1; }
.logo b { color: var(--mq-brand); }
.logo svg, .logo img { width: 40px; height: 40px; }
:root[data-theme="dark"] .logo img { background: #fff; border-radius: 10px; padding: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo img { background: #fff; border-radius: 10px; padding: 2px; } }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0 12px 0 0; padding: 0; }
.main-nav a { padding: 6px 12px; border-radius: 8px; font-weight: 500; display: block; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--mq-brand-soft); color: var(--mq-brand-ink); }
.spacer { flex: 1; }
.chip { display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--mq-surface2); font-weight: 700; font-size: 14px; }
.chip.leaf { color: var(--mq-ok); } .chip.coin { color: var(--mq-pro); }
.chip.off { opacity: .55; }
.chip svg, .iconbtn svg, .bnav svg { width: 20px; height: 20px; }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--mq-line); background: var(--mq-surface); color: var(--mq-text); display: grid; place-items: center; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 700; border: 0; cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn.outline { border: 1.5px solid var(--mq-brand); color: var(--mq-brand); background: transparent; }
.btn.primary { background: linear-gradient(45deg, var(--mq-action), var(--mq-action2)); color: #fff; box-shadow: 0 6px 16px rgba(47,124,224,.25); }
.btn.brand { background: var(--mq-brand); color: #fff; }
.btn.pro { background: linear-gradient(45deg, var(--mq-pro), var(--mq-pro2)); color: #fff; }
.btn.ghost { background: var(--mq-surface2); color: var(--mq-ink); }

/* layout */
.site-main { padding-block: 28px 110px; display: flex; flex-direction: column; gap: 28px; }
.page-head { display: flex; flex-direction: column; gap: 6px; }
.entry-content > * + * { margin-top: 16px; }
.entry-content a { color: var(--mq-brand); }
.card { background: var(--mq-surface); border-radius: var(--mq-r); box-shadow: var(--mq-shadow); padding: 22px; }
.section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.section > * { min-width: 0; }
@media (max-width: 820px) { .section { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; gap: 16px; }
.mark { background: var(--mq-brand); color: #fff; padding: 0 10px; border-radius: 8px; display: inline-block; }
.eyebrow { color: var(--mq-brand); font-weight: 700; font-size: 14px; }
.lead, .note { color: var(--mq-muted); }
.note { font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.checks.one { grid-template-columns: 1fr; }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 5px; border-radius: 50%; background: var(--mq-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--mq-surface2); border-radius: 10px; padding: 12px 14px; }
.stat b { display: block; font-size: 24px; color: var(--mq-ink); font-weight: 800; }
.stat span { color: var(--mq-muted); font-size: 13px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }
.feature { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.ic svg { width: 26px; height: 26px; }
.ic.red { background: var(--mq-brand-soft); color: var(--mq-brand); }
.ic.blue { background: rgba(47,124,224,.12); color: var(--mq-action); }
.ic.green { background: var(--mq-ok-soft); color: var(--mq-ok); }
.ic.orange { background: rgba(255,138,0,.13); color: var(--mq-pro); }
.pro-band { background: linear-gradient(120deg, rgba(255,138,0,.10), var(--mq-surface) 60%); }

/* hero mock */
.shot { background: var(--mq-surface); border-radius: 18px; box-shadow: var(--mq-shadow); padding: 16px; position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.shot .q { font-weight: 700; color: var(--mq-ink); font-size: 14px; margin: 8px 0 10px; }
.shot .o { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--mq-surface2); margin-top: 6px; font-size: 13px; position: relative; overflow: hidden; }
.shot .o i { position: absolute; inset: 0 0 0 auto; background: var(--mq-brand-soft); }
.shot .o span { position: relative; }
.shot .o.ok { background: var(--mq-ok-soft); color: var(--mq-ok); font-weight: 700; }
.shot .tag { font-size: 12px; padding: 2px 10px; border-radius: 99px; background: var(--mq-brand-soft); color: var(--mq-brand-ink); font-weight: 600; }
.float { position: absolute; left: -14px; bottom: -18px; background: var(--mq-surface); border-radius: 14px; box-shadow: var(--mq-shadow); padding: 10px 12px; font-size: 12px; width: 170px; animation: bob 3.5s ease-in-out infinite; }
@media (max-width: 520px) { .float { left: 6px; } }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* footer */
.site-footer { border-top: 1px solid var(--mq-line); padding-block: 20px; color: var(--mq-muted); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.fab { position: fixed; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(45deg, var(--mq-pro), var(--mq-pro2)); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; text-align: center; line-height: 1.4; box-shadow: 0 8px 20px rgba(255,138,0,.35); }

/* mobile bottom nav */
.bnav { display: none; }
@media (max-width: 820px) {
	.main-nav, .hide-m { display: none !important; }
	.fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
	.bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0; z-index: 50; background: var(--mq-surface); box-shadow: 0 -4px 18px rgba(0,0,0,.08);
		padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
	.bnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--mq-muted); padding: 4px 0; }
	.bnav a.on { color: var(--mq-brand); }
}

/* app download dialog */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,18,.55); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .card { max-width: 440px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.dl { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: var(--mq-surface2); }
.dl svg { width: 22px; height: 22px; flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
