/*
Theme Name: تکست میکر مدرن
Theme URI: https://textmaker.ir
Description: قالب مدرن، دارک و کاملاً سئو-محور برای سایت ارائه‌ی رایگان تکست و بیت برای رپرها و خوانندگان سبک‌های مختلف. راست‌چین، ریسپانسیو، سریع و بدون وابستگی به CDN خارجی.
Author: Textmaker
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: textmaker
*/

/* ============================================================
   فونت‌ها — IRANSans (self-hosted, بدون CDN)
   ============================================================ */
@font-face {
	font-family: 'IRANSans';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('assets/fonts/IRANSansWeb_Light.woff2') format('woff2');
}
@font-face {
	font-family: 'IRANSans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/IRANSansWeb.woff2') format('woff2');
}
@font-face {
	font-family: 'IRANSans';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/IRANSansWeb_Medium.woff2') format('woff2');
}
@font-face {
	font-family: 'IRANSans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/IRANSansWeb_Bold.woff2') format('woff2');
}

/* ============================================================
   متغیرها — تم دارک نئونی (رپ/موزیک)
   ============================================================ */
:root {
	--bg:            #0b0b12;
	--bg-2:          #10101a;
	--surface:       #16161f;
	--surface-2:     #1d1d29;
	--surface-3:     #262635;
	--border:        rgba(255,255,255,.08);
	--border-strong: rgba(255,255,255,.14);

	--text:          #ecedf5;
	--text-muted:    #a2a3b4;
	--text-dim:      #6f7080;

	--accent:        #a855f7;   /* بنفش نئون */
	--accent-2:      #22d3ee;   /* فیروزه‌ای */
	--accent-3:      #34d399;   /* سبز نئون */
	--accent-ink:    #0b0b12;

	--grad:          linear-gradient(135deg, #a855f7 0%, #6366f1 45%, #22d3ee 100%);
	--grad-soft:     linear-gradient(135deg, rgba(168,85,247,.18), rgba(34,211,238,.12));
	--glow:          0 0 0 1px rgba(168,85,247,.35), 0 8px 40px -8px rgba(168,85,247,.45);

	--shadow-sm:     0 2px 8px rgba(0,0,0,.35);
	--shadow:        0 10px 30px -12px rgba(0,0,0,.6);
	--shadow-lg:     0 24px 60px -20px rgba(0,0,0,.75);

	--radius:        16px;
	--radius-sm:     11px;
	--radius-lg:     24px;
	--radius-pill:   999px;

	--container:     1200px;
	--gap:           clamp(14px, 2vw, 24px);

	--ff:            'IRANSans', 'Vazirmatn', Tahoma, system-ui, -apple-system, sans-serif;
	--transition:    .22s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   ریست و پایه
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--ff);
	font-size: 15px;
	line-height: 1.85;
	color: var(--text);
	background: var(--bg);
	background-image:
		radial-gradient(1100px 500px at 100% -5%, rgba(168,85,247,.14), transparent 60%),
		radial-gradient(900px 500px at 0% 0%, rgba(34,211,238,.10), transparent 55%);
	background-attachment: fixed;
	direction: rtl;
	text-align: right;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: inline-block; vertical-align: middle; }

a { color: var(--accent-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 { line-height: 1.4; margin: 0 0 .6em; font-weight: 700; color: #fff; }
h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

ul, ol { padding-inline-start: 1.2em; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
	outline: 2px solid var(--accent-2);
	outline-offset: 2px;
	border-radius: 4px;
}

/* پیمایش اسکرول‌بار */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; }
*::-webkit-scrollbar-track { background: transparent; }

/* دسترسی‌پذیری */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}
.tm-skip-link {
	position: absolute;
	right: 12px; top: -60px;
	background: var(--accent);
	color: #fff;
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	z-index: 1000;
	transition: top var(--transition);
}
.tm-skip-link:focus { top: 12px; color: #fff; }

/* ============================================================
   لایه‌بندی
   ============================================================ */
.tm-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 28px);
}

.tm-section { padding-block: clamp(34px, 5vw, 60px); }

.tm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: var(--gap);
}
.tm-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tm-grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) { .tm-grid--4, .tm-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
	.tm-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* عنوان بخش */
.tm-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(18px, 3vw, 28px);
}
.tm-section-head h2 {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
	padding-inline-start: 14px;
}
.tm-section-head h2::before {
	content: "";
	position: absolute;
	inline-size: 5px;
	inset-inline-start: 0;
	block-size: 1.1em;
	border-radius: var(--radius-pill);
	background: var(--grad);
}
.tm-section-head .tm-more {
	font-size: .85rem;
	color: var(--text-muted);
	white-space: nowrap;
	padding: 7px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	transition: var(--transition);
}
.tm-section-head .tm-more:hover {
	color: #fff;
	border-color: var(--accent);
	background: var(--grad-soft);
}

/* ============================================================
   دکمه‌ها و چیپ‌ها
   ============================================================ */
.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-size: .92rem;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: var(--radius-pill);
	border: 1px solid transparent;
	cursor: pointer;
	transition: var(--transition);
	line-height: 1;
	white-space: nowrap;
}
.tm-btn--primary {
	background: var(--grad);
	color: #fff;
	box-shadow: 0 10px 30px -12px rgba(168,85,247,.7);
}
.tm-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(168,85,247,.9); }
.tm-btn--ghost {
	background: transparent;
	border-color: var(--border-strong);
	color: var(--text);
}
.tm-btn--ghost:hover { border-color: var(--accent); color: #fff; background: var(--grad-soft); }

.tm-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .82rem;
	padding: 6px 13px;
	border-radius: var(--radius-pill);
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text-muted);
	transition: var(--transition);
}
.tm-chip:hover { color: #fff; border-color: var(--accent); background: var(--grad-soft); }

/* ============================================================
   هدر / ناوبری
   ============================================================ */
.tm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11,11,18,.72);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--border);
}
.tm-header__bar {
	display: flex;
	align-items: center;
	gap: 18px;
	height: 80px;
}
.tm-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	color: #fff;
	font-weight: 700;
	flex-shrink: 0;
}
.tm-brand:hover { color: #fff; }
.tm-brand__logo,
.tm-brand .custom-logo {
	inline-size: 42px;
	block-size: 42px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--grad);
	display: grid;
	place-items: center;
	font-size: 1.15rem;
	box-shadow: var(--glow);
}
.tm-brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tm-brand__name { font-size: 1.12rem; font-weight: 700; white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.tm-brand__tag { font-size: .68rem; color: var(--text-muted); font-weight: 400; white-space: nowrap; }

.tm-nav { margin-inline-start: auto; min-width: 0; }
.tm-nav ul { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tm-nav a {
	display: block;
	padding: 10px 16px;
	color: var(--text-muted);
	font-size: .95rem;
	font-weight: 500;
	white-space: nowrap;
	border-radius: var(--radius-pill);
	transition: var(--transition);
}
.tm-nav a:hover,
.tm-nav .current-menu-item > a,
.tm-nav .current_page_item > a {
	color: #fff;
	background: var(--surface-2);
}

.tm-header__actions { display: flex; align-items: center; gap: 8px; }
.tm-icon-btn {
	inline-size: 42px;
	block-size: 42px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	transition: var(--transition);
}
.tm-icon-btn:hover { border-color: var(--accent); color: #fff; background: var(--grad-soft); }
.tm-icon-btn svg { inline-size: 20px; block-size: 20px; }

.tm-burger { display: none; }

/* جستجوی کشویی */
.tm-searchbar {
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
	border-bottom: 1px solid transparent;
}
.tm-searchbar.is-open {
	max-height: 90px;
	border-bottom-color: var(--border);
}
.tm-searchbar__inner { padding-block: 14px; }

/* فرم جستجو */
.tm-search-form {
	display: flex;
	gap: 8px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	padding: 6px 6px 6px 6px;
	transition: var(--transition);
}
.tm-search-form:focus-within { border-color: var(--accent); box-shadow: var(--glow); }
.tm-search-form input[type="search"],
.tm-search-form input[type="text"] {
	flex: 1;
	border: 0;
	background: transparent;
	color: var(--text);
	font-family: inherit;
	font-size: .95rem;
	padding: 8px 16px;
	outline: none;
}
.tm-search-form input::placeholder { color: var(--text-dim); }
.tm-search-form button {
	border: 0;
	background: var(--grad);
	color: #fff;
	font-family: inherit;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: var(--transition);
}
.tm-search-form button:hover { transform: translateY(-1px); }

/* منوی موبایل */
.tm-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(6,6,12,.6);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
}
.tm-mobile-menu.is-open { opacity: 1; visibility: visible; }
.tm-mobile-menu__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: min(310px, 82vw);
	background: var(--bg-2);
	border-inline-start: 1px solid var(--border);
	padding: 22px;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.4,0,.2,1);
	overflow-y: auto;
}
[dir="rtl"] .tm-mobile-menu__panel { transform: translateX(-100%); }
.tm-mobile-menu.is-open .tm-mobile-menu__panel { transform: translateX(0); }
.tm-mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tm-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.tm-mobile-menu li { border-bottom: 1px solid var(--border); }
.tm-mobile-menu a { display: block; padding: 14px 4px; color: var(--text); font-weight: 500; }
.tm-mobile-menu a:hover { color: var(--accent); }

/* ============================================================
   هیرو
   ============================================================ */
.tm-hero {
	position: relative;
	padding-block: clamp(46px, 8vw, 90px);
	text-align: center;
	overflow: hidden;
}
.tm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(700px 340px at 50% -10%, rgba(168,85,247,.28), transparent 65%),
		radial-gradient(500px 300px at 15% 120%, rgba(34,211,238,.20), transparent 60%);
	pointer-events: none;
}
.tm-hero__inner { position: relative; max-width: 760px; margin-inline: auto; }
.tm-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .82rem;
	color: var(--text-muted);
	padding: 7px 16px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border);
	background: rgba(22,22,31,.6);
	margin-bottom: 22px;
}
.tm-hero__badge .dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3); }
.tm-hero h1 {
	font-size: clamp(1.55rem, 6vw, 3.3rem);
	line-height: 1.35;
	margin-bottom: 18px;
	letter-spacing: -.01em;
	overflow-wrap: break-word;
	word-break: break-word;
	text-wrap: balance;
}
.tm-hero h1 .grad {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.tm-hero p { color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.15rem); margin-bottom: 30px; }
.tm-hero__search { max-width: 560px; margin-inline: auto 0; margin-inline: auto; }
.tm-hero__stats {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: clamp(20px, 5vw, 54px);
	margin-top: 40px;
}
.tm-stat { text-align: center; }
.tm-stat__num {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	font-weight: 700;
	background: var(--grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	display: block;
}
.tm-stat__label { font-size: .82rem; color: var(--text-muted); }

/* نوار سبک‌ها زیر هیرو */
.tm-styles-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 30px;
}

/* ============================================================
   کارت تکست/مطلب
   ============================================================ */
.tm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.tm-card:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-lg);
}
.tm-card__media {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--surface-2);
}
.tm-card__img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.tm-card:hover .tm-card__img { transform: scale(1.06); }
.tm-card__img--placeholder {
	display: grid;
	place-items: center;
	inline-size: 100%;
	block-size: 100%;
	font-size: 2.6rem;
	font-weight: 700;
	color: #fff;
	background: var(--grad-soft), var(--surface-2);
}
.tm-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11,11,18,.85) 0%, transparent 55%);
	opacity: .8;
}
.tm-card__badges {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-start: 10px;
	z-index: 2;
	display: flex;
	gap: 6px;
}
.tm-card__badge {
	font-size: .7rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: rgba(11,11,18,.65);
	backdrop-filter: blur(6px);
	color: #fff;
	border: 1px solid var(--border);
}
.tm-card__badge--vip { background: var(--grad); border-color: transparent; }
.tm-card__views {
	position: absolute;
	z-index: 2;
	inset-block-end: 10px;
	inset-inline-end: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .74rem;
	font-weight: 700;
	color: #fff;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: rgba(11,11,18,.6);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid var(--border);
}
.tm-card__views svg { inline-size: 13px; block-size: 13px; opacity: .9; }
.tm-card__body {
	padding: 14px 15px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.tm-card__title {
	font-size: .98rem;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tm-card__title a { color: inherit; }
.tm-card__title a:hover { color: var(--accent-2); }
.tm-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	font-size: .76rem;
	color: var(--text-dim);
}
.tm-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.tm-card__meta svg { inline-size: 14px; block-size: 14px; opacity: .8; }
.tm-card__link-cover {
	position: absolute; inset: 0; z-index: 1;
}

/* ============================================================
   صفحه‌ی تکی (متن آهنگ)
   ============================================================ */
.tm-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(20px, 3vw, 36px);
	align-items: start;
}
@media (max-width: 980px) { .tm-layout { grid-template-columns: 1fr; } }

.tm-breadcrumb { margin-block: 6px 20px; font-size: .82rem; color: var(--text-dim); }
.tm-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.tm-breadcrumb li { display: flex; align-items: center; gap: 8px; }
.tm-breadcrumb li:not(:last-child)::after { content: "›"; color: var(--text-dim); }
.tm-breadcrumb a { color: var(--text-muted); }
.tm-breadcrumb a:hover { color: var(--accent); }
.tm-breadcrumb [aria-current="page"] span,
.tm-breadcrumb .breadcrumb_last { color: var(--text); }

.tm-article {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.tm-article__header {
	position: relative;
	padding: clamp(24px, 4vw, 40px);
	background: var(--grad-soft);
	border-bottom: 1px solid var(--border);
}
.tm-article__cover {
	inline-size: 120px;
	block-size: 120px;
	border-radius: var(--radius);
	object-fit: cover;
	box-shadow: var(--shadow);
	margin-bottom: 18px;
	border: 1px solid var(--border-strong);
}
.tm-article__header h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 14px; }
.tm-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	color: var(--text-muted);
	font-size: .82rem;
}
.tm-article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.tm-article__meta svg { inline-size: 15px; block-size: 15px; }

.tm-lyrics {
	padding: clamp(22px, 4vw, 44px);
	font-size: 1.05rem;
	line-height: 2.3;
	color: var(--text);
}
.tm-lyrics p { margin-bottom: 1.1em; }
.tm-lyrics img { border-radius: var(--radius); margin-block: 18px; }
.tm-lyrics h2, .tm-lyrics h3 { margin-top: 1.4em; }
.tm-lyrics a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.tm-lyrics-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0 clamp(22px,4vw,44px) clamp(22px,4vw,44px);
	border-top: 1px solid var(--border);
	padding-top: 20px;
}

.tm-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tm-tags__label { color: var(--text-muted); font-size: .85rem; margin-inline-end: 4px; }

/* اشتراک‌گذاری */
.tm-share { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; }
.tm-share a, .tm-share button {
	inline-size: 40px; block-size: 40px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text-muted);
	cursor: pointer;
	transition: var(--transition);
}
.tm-share a:hover, .tm-share button:hover { color: #fff; border-color: var(--accent); background: var(--grad-soft); }
.tm-share svg { inline-size: 18px; block-size: 18px; }

/* سایدبار */
.tm-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 980px) { .tm-sidebar { position: static; } }
.tm-widget, .tm-panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
}
.tm-widget__title, .tm-panel__title {
	font-size: 1rem;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
	display: flex; align-items: center; gap: 8px;
}
.tm-mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tm-mini { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.tm-mini:last-child { border-bottom: 0; }
.tm-mini__thumb { inline-size: 52px; block-size: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.tm-mini__thumb--ph { display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--grad-soft), var(--surface-2); }
.tm-mini__title { font-size: .86rem; font-weight: 500; color: var(--text); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm-mini__title a { color: inherit; }
.tm-mini__title a:hover { color: var(--accent-2); }

/* ============================================================
   ناوبری بین پست‌ها
   ============================================================ */
.tm-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
@media (max-width: 620px) { .tm-post-nav { grid-template-columns: 1fr; } }
.tm-post-nav a {
	display: flex; flex-direction: column; gap: 4px;
	padding: 16px 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	transition: var(--transition);
}
.tm-post-nav a:hover { border-color: var(--accent); background: var(--grad-soft); }
.tm-post-nav small { color: var(--text-dim); font-size: .74rem; }
.tm-post-nav .t { font-weight: 500; font-size: .9rem; }

/* ============================================================
   صفحه‌بندی
   ============================================================ */
.tm-pagination { display: flex; justify-content: center; margin-top: 40px; }
.wp-pagenavi, .tm-pagination .nav-links, .tm-pagenavi {
	display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
}
.wp-pagenavi a, .wp-pagenavi span,
.tm-pagination a, .tm-pagination span.page-numbers {
	display: grid; place-items: center;
	min-inline-size: 42px; block-size: 42px;
	padding-inline: 12px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text-muted);
	font-weight: 500;
	transition: var(--transition);
}
.wp-pagenavi a:hover, .tm-pagination a:hover { border-color: var(--accent); color: #fff; background: var(--grad-soft); }
.wp-pagenavi span.current, .tm-pagination .current {
	background: var(--grad); color: #fff; border-color: transparent;
}

/* ============================================================
   آرشیو / سرصفحه‌ی آرشیو
   ============================================================ */
.tm-archive-head {
	text-align: center;
	padding-block: clamp(30px, 5vw, 54px);
	background: var(--grad-soft);
	border-bottom: 1px solid var(--border);
	margin-bottom: clamp(24px, 4vw, 40px);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.tm-archive-head h1 { margin-bottom: 8px; }
.tm-archive-head p { color: var(--text-muted); margin: 0; }

/* ============================================================
   فوتر
   ============================================================ */
.tm-footer {
	margin-top: clamp(40px, 6vw, 80px);
	background: var(--bg-2);
	border-top: 1px solid var(--border);
}
.tm-footer__cta {
	background: var(--grad);
	border-radius: var(--radius-lg);
	padding: clamp(26px, 4vw, 44px);
	text-align: center;
	margin-block: -40px 0;
	transform: translateY(-40px);
	box-shadow: var(--shadow-lg);
	position: relative;
}
.tm-footer__cta h2 { color: #fff; margin-bottom: 10px; }
.tm-footer__cta p { color: rgba(255,255,255,.85); margin-bottom: 22px; }
.tm-footer__cta .tm-btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.tm-footer__cta .tm-btn--ghost:hover { background: rgba(255,255,255,.15); }
.tm-footer__cta .tm-btn--light { background: #fff; color: #6d28d9; }

.tm-footer__grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr;
	gap: clamp(20px, 4vw, 44px);
	padding-block: clamp(30px, 4vw, 50px);
}
@media (max-width: 860px) { .tm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tm-footer__grid { grid-template-columns: 1fr; } }
.tm-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.tm-footer p { color: var(--text-muted); font-size: .88rem; }
.tm-footer ul { list-style: none; margin: 0; padding: 0; }
.tm-footer li { margin-bottom: 10px; }
.tm-footer li a { color: var(--text-muted); font-size: .88rem; }
.tm-footer li a:hover { color: var(--accent-2); padding-inline-start: 4px; }
.tm-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tm-footer__socials { display: flex; gap: 10px; margin-top: 16px; }
.tm-footer__socials a {
	inline-size: 40px; block-size: 40px; display: grid; place-items: center;
	border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
	transition: var(--transition);
}
.tm-footer__socials a:hover { color: #fff; border-color: var(--accent); background: var(--grad-soft); transform: translateY(-2px); }
.tm-footer__socials svg { inline-size: 19px; block-size: 19px; }
.tm-footer__enamad img { border-radius: 10px; }

.tm-footer__bottom {
	border-top: 1px solid var(--border);
	padding-block: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	align-items: center;
	color: var(--text-dim);
	font-size: .82rem;
}

/* دکمه‌ی شناور تلگرام */
.tm-float-tg {
	position: fixed;
	inset-block-end: 20px;
	inset-inline-start: 20px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px 12px 16px;
	border-radius: var(--radius-pill);
	background: var(--grad);
	color: #fff;
	font-size: .85rem;
	font-weight: 700;
	box-shadow: 0 12px 34px -10px rgba(168,85,247,.8);
	transition: var(--transition);
}
.tm-float-tg:hover { color: #fff; transform: translateY(-3px); }
.tm-float-tg svg { inline-size: 22px; block-size: 22px; }
@media (max-width: 520px) { .tm-float-tg span { display: none; } .tm-float-tg { padding: 14px; } }

/* بازگشت به بالا */
.tm-totop {
	position: fixed;
	inset-block-end: 20px;
	inset-inline-end: 20px;
	z-index: 90;
	inline-size: 46px; block-size: 46px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	color: #fff;
	cursor: pointer;
	opacity: 0; visibility: hidden;
	transform: translateY(12px);
	transition: var(--transition);
}
.tm-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.tm-totop:hover { background: var(--grad-soft); border-color: var(--accent); }

/* ============================================================
   ۴۰۴ و حالت‌های خالی
   ============================================================ */
.tm-empty { text-align: center; padding-block: clamp(50px, 8vw, 90px); }
.tm-empty__code {
	font-size: clamp(4rem, 14vw, 8rem);
	font-weight: 700;
	line-height: 1;
	background: var(--grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 14px;
}
.tm-empty h1 { margin-bottom: 12px; }
.tm-empty p { color: var(--text-muted); max-width: 460px; margin-inline: auto; margin-bottom: 26px; }

/* کامنت‌ها */
.tm-comments { margin-top: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px,4vw,32px); }
.tm-comments .comment-list { list-style: none; padding: 0; }
.tm-comments textarea, .tm-comments input[type="text"], .tm-comments input[type="email"], .tm-comments input[type="url"] {
	width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
	color: var(--text); font-family: inherit; padding: 12px 14px; margin-bottom: 12px;
}
.tm-comments .comment-reply-title { margin-bottom: 16px; }

/* ============================================================
   ریسپانسیو هدر
   ============================================================ */
@media (max-width: 1024px) {
	.tm-nav { display: none; }
	.tm-burger { display: grid; }
	/* دکمه‌های سرچ و منو به لبه‌ی چپ بچسبند */
	.tm-header__actions { margin-inline-start: auto; }
}
@media (max-width: 560px) {
	.tm-brand__tag { display: none; }
}

/* کمکی‌ها */
.tm-mt { margin-top: clamp(30px, 5vw, 56px); }
.text-muted { color: var(--text-muted); }
.tm-divider { height: 1px; background: var(--border); border: 0; margin-block: 30px; }
