/*
Theme Name: Oldooz Cafe
Theme URI: https://cofe.ouldoooz.ir/
Author: Ouldooz Cafe Team
Author URI: https://cofe.ouldoooz.ir/
Description: قالب اختصاصی کافه منیجر اولدوز — هم‌خوان با افزونه‌های oldooz-auth و oldooz-cafe-core. مدرن، ریسپانسیو، فارسی و راست‌به‌چپ با فونت وزیرمتن. صفحهٔ اصلی اختصاصی، حالت تمام‌صفحه برای برگه‌های ثبت‌نام/ورود/حساب کاربری، و بدون هیچ وابستگی اجباری به افزونه‌ها.
Version: 1.1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oldooz-cafe
Tags: rtl-language-support, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ----------------------------- فونت وزیرمتن ----------------------------- */
@font-face { font-family: 'Vazirmatn'; src: url('assets/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('assets/fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('assets/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ----------------------------- متغیرها ----------------------------- */
:root {
	--tc-bg: #faf7f2;
	--tc-bg-2: #f4eee3;
	--tc-ink: #292524;
	--tc-text: #44403c;
	--tc-muted: #78716c;
	--tc-line: #ece3d6;
	--tc-primary: #b45309;
	--tc-primary-deep: #7c2d12;
	--tc-primary-soft: #f7e8d6;
	--tc-dark: #1c1917;
	--tc-card: #ffffff;
	--tc-ok: #2e8b57;
	--tc-radius: 18px;
	--tc-radius-sm: 12px;
	--tc-shadow: 0 2px 12px rgba(64, 40, 18, 0.07);
	--tc-shadow-lg: 0 16px 40px rgba(64, 40, 18, 0.16);
	--tc-font: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* ----------------------------- پایه ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--tc-font);
	font-size: 16px;
	line-height: 1.9;
	color: var(--tc-text);
	background: var(--tc-bg);
	direction: rtl;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--tc-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--tc-primary-deep); }
h1, h2, h3, h4, h5, h6 { color: var(--tc-ink); line-height: 1.5; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
input, textarea, select, button { font-family: var(--tc-font); font-size: 15px; }
:focus-visible { outline: 3px solid rgba(180, 83, 9, .45); outline-offset: 2px; border-radius: 4px; }

.tc-container { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.tc-skip {
	position: absolute; right: 12px; top: -60px; z-index: 9999;
	background: var(--tc-primary-deep); color: #fff; padding: 10px 16px;
	border-radius: 0 0 10px 10px; transition: top .2s;
}
.tc-skip:focus { top: 0; color: #fff; }

/* ----------------------------- دکمه‌ها ----------------------------- */
.tc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
	font-weight: 600; font-size: 15px; line-height: 1.6; cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.tc-btn:hover { transform: translateY(-1px); }
.tc-btn--primary { background: linear-gradient(140deg, #d97706, var(--tc-primary-deep)); color: #fff; box-shadow: 0 6px 18px rgba(124, 45, 18, .28); }
.tc-btn--primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(124, 45, 18, .4); }
.tc-btn--ghost { background: #fff; color: var(--tc-primary-deep); border-color: var(--tc-line); }
.tc-btn--ghost:hover { border-color: var(--tc-primary); color: var(--tc-primary-deep); }
.tc-btn--light { background: #fff; color: var(--tc-primary-deep); box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.tc-btn--light:hover { color: var(--tc-primary-deep); }
.tc-btn--sm { padding: 7px 16px; font-size: 13.5px; }

/* ----------------------------- هدر ----------------------------- */
.tc-header {
	position: sticky; top: 0; z-index: 900;
	background: rgba(250, 247, 242, .9);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--tc-line);
	transition: box-shadow .2s ease;
}
.tc-header.is-scrolled { box-shadow: 0 6px 22px rgba(64, 40, 18, .08); }
.tc-header__in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.tc-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--tc-ink); font-weight: 500; }
.tc-brand:hover { color: var(--tc-primary-deep); }
.tc-brand__ico {
	width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
	font-size: 20px; border-radius: 12px;
	background: linear-gradient(140deg, #d97706, var(--tc-primary-deep));
	box-shadow: 0 4px 12px rgba(124, 45, 18, .3);
}
.tc-brand__txt b { font-weight: 700; color: var(--tc-primary-deep); }
.tc-nav { flex: 1; }
.tc-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tc-nav__list li { position: relative; }
.tc-nav__list a {
	display: block; padding: 8px 13px; border-radius: 10px;
	color: var(--tc-text); font-weight: 500; font-size: 15px;
}
.tc-nav__list a:hover { color: var(--tc-primary-deep); background: var(--tc-primary-soft); }
.tc-nav__list .current-menu-item > a,
.tc-nav__list .current_page_item > a { color: var(--tc-primary-deep); background: var(--tc-primary-soft); }
.tc-header__cta { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.tc-hello { color: var(--tc-muted); font-size: 13.5px; margin-inline-end: 2px; }
.tc-burger {
	display: none; width: 42px; height: 42px; border: 1px solid var(--tc-line);
	background: #fff; border-radius: 12px; cursor: pointer;
	align-items: center; justify-content: center; color: var(--tc-ink); padding: 0;
}
.tc-burger svg { display: block; }

@media (max-width: 920px) {
	.tc-burger { display: inline-flex; }
	.tc-nav {
		position: absolute; inset-inline: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--tc-line);
		box-shadow: 0 18px 30px rgba(64, 40, 18, .12);
		display: none; padding: 10px 16px 16px;
	}
	body.tc-nav-open .tc-nav { display: block; }
	.tc-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
	.tc-nav__list a { padding: 11px 12px; font-size: 16px; }
	.tc-header__cta { gap: 6px; }
	.tc-header__cta .tc-btn--ghost { display: none; }
}

/* ----------------------------- محتوا ----------------------------- */
.tc-main { min-height: 55vh; padding-block: 34px 60px; }
.tc-page-head { margin-bottom: 26px; }
.tc-page-head h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 6px; }
.tc-page-head .tc-sub { color: var(--tc-muted); font-size: 15px; }
.tc-thumb { border-radius: var(--tc-radius); box-shadow: var(--tc-shadow); margin-bottom: 22px; }
.tc-thumb img { width: 100%; display: block; border-radius: var(--tc-radius); }

.tc-prose { max-width: 780px; font-size: 16.5px; }
.tc-prose h2 { font-size: 26px; margin-top: 1.4em; }
.tc-prose h3 { font-size: 21px; margin-top: 1.3em; }
.tc-prose a { text-underline-offset: 3px; }
.tc-prose blockquote {
	margin: 1.2em 0; padding: 14px 20px; border-inline-start: 4px solid var(--tc-primary);
	background: #fff; border-radius: 0 var(--tc-radius-sm) var(--tc-radius-sm) 0; color: var(--tc-ink);
}
.tc-prose blockquote p { margin: 0; }
.tc-prose img, .tc-prose .wp-block-image img { border-radius: var(--tc-radius-sm); }
.tc-prose pre, .tc-prose code { background: var(--tc-bg-2); border-radius: 8px; font-size: 14px; }
.tc-prose pre { padding: 14px 18px; overflow: auto; }
.tc-prose table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--tc-radius-sm); overflow: hidden; }
.tc-prose th, .tc-prose td { border: 1px solid var(--tc-line); padding: 10px 14px; text-align: start; }
.tc-prose th { background: var(--tc-bg-2); }
.alignwide { max-width: 1000px; margin-inline: auto; }
.alignfull { max-width: none; width: 100%; }

/* فرم‌ها */
.tc-form input[type="text"], .tc-form input[type="search"], .tc-form input[type="email"],
.tc-form input[type="url"], .tc-form input[type="password"], .tc-form textarea, .tc-form select {
	width: 100%; padding: 11px 14px; border: 1px solid var(--tc-line); border-radius: var(--tc-radius-sm);
	background: #fff; color: var(--tc-ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.tc-form input:focus, .tc-form textarea:focus { border-color: var(--tc-primary); box-shadow: 0 0 0 4px rgba(180, 83, 9, .12); outline: none; }
.tc-search { display: flex; gap: 10px; max-width: 460px; }
.tc-search input { flex: 1; }

/* ----------------------------- فهرست نوشته‌ها (وبلاگ/آرشیو) ----------------------------- */
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.tc-postcard {
	background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: var(--tc-radius);
	overflow: hidden; box-shadow: var(--tc-shadow); display: flex; flex-direction: column;
	transition: transform .16s ease, box-shadow .16s ease;
}
.tc-postcard:hover { transform: translateY(-3px); box-shadow: var(--tc-shadow-lg); }
.tc-postcard__thumb { aspect-ratio: 16 / 10; background: var(--tc-bg-2); display: block; overflow: hidden; }
.tc-postcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tc-postcard:hover .tc-postcard__thumb img { transform: scale(1.04); }
.tc-postcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tc-postcard__meta { color: var(--tc-muted); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.tc-postcard__title { font-size: 18.5px; margin: 0; }
.tc-postcard__title a { color: var(--tc-ink); }
.tc-postcard__title a:hover { color: var(--tc-primary-deep); }
.tc-postcard__excerpt { color: var(--tc-muted); font-size: 14.5px; margin: 0; }
.tc-postcard__more { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--tc-primary); }

.tc-pager { margin-top: 34px; display: flex; justify-content: center; }
.tc-pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tc-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding-inline: 12px;
	border: 1px solid var(--tc-line); border-radius: 12px; background: #fff;
	color: var(--tc-text); font-weight: 600; font-size: 14px;
}
.tc-pager .page-numbers:hover { border-color: var(--tc-primary); color: var(--tc-primary-deep); }
.tc-pager .page-numbers.current { background: var(--tc-primary-deep); border-color: var(--tc-primary-deep); color: #fff; }

/* تک‌نوشته */
.tc-single-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--tc-muted); font-size: 13.5px; margin-bottom: 8px; }
.tc-single-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.tc-single-tags a {
	background: #fff; border: 1px solid var(--tc-line); border-radius: 999px;
	padding: 4px 14px; font-size: 13px; color: var(--tc-muted);
}
.tc-single-tags a:hover { color: var(--tc-primary-deep); border-color: var(--tc-primary); }
.tc-postnav { margin-top: 34px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.tc-postnav a {
	background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius-sm);
	padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--tc-ink); display: block;
}
.tc-postnav a:hover { border-color: var(--tc-primary); color: var(--tc-primary-deep); }
.tc-postnav .nav-next { text-align: left; }
@media (max-width: 640px) { .tc-postnav { grid-template-columns: 1fr; } .tc-postnav .nav-next { text-align: right; } }

/* ----------------------------- صفحهٔ اصلی (حالت جایگزین بدون افزونه) ----------------------------- */
.tc-hero { padding: 46px 0 26px; }
.tc-hero__pill {
	display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--tc-line);
	color: var(--tc-primary-deep); font-weight: 600; font-size: 13.5px;
	padding: 7px 16px; border-radius: 999px; box-shadow: var(--tc-shadow);
}
.tc-hero h1.tc-hero__title { font-size: clamp(30px, 5vw, 50px); line-height: 1.45; margin: 18px 0 14px; }
.tc-hero h1.tc-hero__title em { font-style: normal; color: var(--tc-primary); }
.tc-hero__sub { color: var(--tc-muted); font-size: 17px; max-width: 620px; }
.tc-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tc-hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 22px 0 0; color: var(--tc-muted); font-size: 14px; }
.tc-hero__trust li::before { content: '✔ '; color: var(--tc-ok); font-weight: 700; }
.tc-section { padding: 44px 0; }
.tc-section__head { text-align: center; max-width: 620px; margin: 0 auto 30px; }
.tc-section__head h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 8px; }
.tc-section__head p { color: var(--tc-muted); margin: 0; }
.tc-featgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tc-featcard { background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); padding: 22px; box-shadow: var(--tc-shadow); }
.tc-featcard__ico {
	width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
	font-size: 22px; background: var(--tc-primary-soft); margin-bottom: 14px;
}
.tc-featcard h3 { font-size: 17.5px; margin-bottom: 6px; }
.tc-featcard p { color: var(--tc-muted); font-size: 14.5px; margin: 0; }
.tc-emptynote { background: #fff; border: 1px dashed var(--tc-line); border-radius: var(--tc-radius); padding: 30px; text-align: center; color: var(--tc-muted); }

/* ----------------------------- ۴۰۴ ----------------------------- */
.tc-404 { text-align: center; padding: 60px 0 30px; }
.tc-404__num {
	font-size: clamp(80px, 16vw, 140px); font-weight: 700; line-height: 1;
	background: linear-gradient(140deg, #d97706, var(--tc-primary-deep));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.tc-404 h1 { font-size: 24px; }
.tc-404 p { color: var(--tc-muted); max-width: 460px; margin-inline: auto; }
.tc-404__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 26px; }

/* ----------------------------- حالت تمام‌صفحهٔ برگه‌های حساب ----------------------------- */
body.tc-canvas {
	min-height: 100vh;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 28px 16px;
	background:
		radial-gradient(900px 480px at 88% -8%, #f3e2c8 0%, rgba(243, 226, 200, 0) 60%),
		radial-gradient(760px 420px at 8% 108%, #f3e2c8 0%, rgba(243, 226, 200, 0) 55%),
		var(--tc-bg);
}
.tc-canvas__brand {
	font-weight: 700; font-size: 18px; color: var(--tc-ink); margin-bottom: 20px;
	display: inline-flex; align-items: center; gap: 10px;
}
.tc-canvas__brand:hover { color: var(--tc-primary-deep); }
.tc-canvas__brand-ico {
	width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
	font-size: 20px; background: linear-gradient(140deg, #d97706, var(--tc-primary-deep));
	box-shadow: 0 4px 12px rgba(124, 45, 18, .3);
}
.tc-canvas__box { width: 100%; max-width: 480px; }
.tc-canvas__foot { margin-top: 18px; color: var(--tc-muted); font-size: 13px; text-align: center; }
.tc-canvas__foot a { color: var(--tc-primary); font-weight: 600; }
/* هم‌ترازی کارت‌های افزونهٔ احراز هویت در وسط صفحه */
body.tc-canvas .oa-wrap { width: 100%; max-width: 480px; margin: 0 auto; }

/* ----------------------------- فوتر ----------------------------- */
.tc-footer { background: var(--tc-dark); color: #cfc6b8; margin-top: 20px; }
.tc-footer a { color: #e7ddcd; }
.tc-footer a:hover { color: #fff; }
.tc-footer__grid {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-block: 44px 30px;
}
.tc-footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; margin-bottom: 12px; }
.tc-footer__brand-ico {
	width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
	font-size: 19px; background: linear-gradient(140deg, #d97706, var(--tc-primary-deep));
}
.tc-footer__about { font-size: 14px; color: #a89f92; max-width: 330px; }
.tc-footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.tc-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.tc-footer__contact p { margin: 0 0 9px; font-size: 14.5px; }
.tc-footer__bar { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 16px; font-size: 13px; color: #a89f92; }
.tc-footer__bar .tc-container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
@media (max-width: 820px) { .tc-footer__grid { grid-template-columns: 1fr; gap: 26px; } }

/* ----------------------------- کاربردپذیری ----------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── بخش قیمت‌گذاری (ست با oldooz-auth) ── */
.tc-pricegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.tc-price { position: relative; background: #fff; border: 1.5px solid #E7ECEC; border-radius: 16px; padding: 26px 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 6px 18px rgba(20, 60, 70, 0.06); }
.tc-price.is-hot { border-color: #A05A2C; box-shadow: 0 18px 44px rgba(160, 90, 44, 0.16); }
.tc-price__badge { position: absolute; top: -12px; inset-inline-start: 18px; background: #A05A2C; color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.tc-price h3 { font-size: 17px; font-weight: 800; }
.tc-price__num { font-size: 24px; font-weight: 900; color: #A05A2C; }
.tc-price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tc-price li { font-size: 13px; color: #5B6B6E; padding-inline-start: 20px; position: relative; }
.tc-price li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: #A05A2C; font-weight: 800; }
.tc-price .tc-btn { margin-top: auto; text-align: center; }
