/* ===== PFS Control Room — main styles ===== */

@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/vazirmatn-var.woff2') format('woff2-variations'), url('../fonts/vazirmatn-var.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'JetBrains Mono';
	src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: 'JetBrains Mono';
	src: url('../fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #2a2f33; color: #eef1f2; font-family: 'Vazirmatn', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: #5fe03a; text-decoration: none; }
a:hover { color: #8af06b; }
button { font-family: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #5fe03a; outline-offset: 3px; }

/* ===== animations ===== */
@keyframes pfsPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes pfsTicker { from { transform: translateX(0); } to { transform: translateX(50%); } }
.pfs-pulse { animation: pfsPulse 1.6s ease-in-out infinite; }
.pfs-ticker { animation: pfsTicker 45s linear infinite; }
@media (prefers-reduced-motion: reduce) {
	.pfs-pulse, .pfs-ticker { animation: none; }
	html { scroll-behavior: auto; }
}

/* ===== product tabs (home) ===== */
.pfs-tab {
	min-height: 46px; padding: 0 20px; border-radius: 11px; border: none;
	background: transparent; color: #c3c9cc; font-weight: 700; font-size: 15px; cursor: pointer;
	transition: background .2s, color .2s, box-shadow .2s;
}
.pfs-tab:hover { color: #ffffff; }
.pfs-tab.is-active { background: #45c41f; color: #07140a; font-weight: 900; box-shadow: 0 0 24px rgba(69,196,31,0.35); }

/* ===== category chips (products view) ===== */
.pfs-chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1px solid #5a6268; background: transparent; color: #eef1f2; font-weight: 700; font-size: 14px; cursor: pointer;
}
.pfs-chip.is-active { border-color: #45c41f; background: #45c41f; color: #07140a; font-weight: 900; }

.pfs-panel, .pfs-cat { animation: pfsFade .35s ease; }
@keyframes pfsFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

[data-go], [data-to], [data-home] { cursor: pointer; }

/* ===== responsive type ===== */
#pfs-app h1 { font-size: clamp(34px, 7.5vw, 60px) !important; }
#pfs-app h2 { font-size: clamp(28px, 5.5vw, 40px) !important; }
.pfs-sys-btn { transition: transform .15s ease, box-shadow .2s ease; }
.pfs-sys-btn:hover { transform: translateY(-2px); }
.pfs-sys-btn--main:hover { color: #07140a; box-shadow: 0 0 0 1px #8af06b, 0 14px 36px rgba(69,196,31,0.5) !important; }
@media (max-width: 640px) {
	#pfs-site-header nav { width: 100%; justify-content: center; }
	#pfs-site-header .pfs-sys { width: 100%; }
	#pfs-site-header .pfs-sys-btn { flex: 1 1 0; justify-content: center; }
}

/* ===== generic pages & posts ===== */
.pfs-content-wrap { max-width: 900px; margin: 0 auto; padding: 64px 24px 96px; }
.pfs-content-wrap .pfs-entry + .pfs-entry { margin-top: 56px; padding-top: 56px; border-top: 1px solid #3d4449; }
.pfs-entry-title { margin: 0 0 18px; font-size: clamp(28px, 5vw, 40px); font-weight: 900; color: #ffffff; line-height: 1.35; }
.pfs-entry-title a { color: inherit; }
.pfs-entry-meta { font-size: 14px; color: #a3abb0; margin-bottom: 24px; }
.pfs-content { font-size: 17px; line-height: 2; color: #dde1e3; }
.pfs-content h2, .pfs-content h3, .pfs-content h4 { color: #ffffff; font-weight: 800; line-height: 1.5; margin: 1.6em 0 .6em; }
.pfs-content a { color: #5fe03a; text-decoration: underline; text-underline-offset: 3px; }
.pfs-content img { height: auto; border-radius: 14px; }
.pfs-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.pfs-content th, .pfs-content td { border: 1px solid #454c52; padding: 10px 12px; }
.pfs-content blockquote { margin: 1.5em 0; padding: 12px 20px; border-right: 4px solid #45c41f; background: #33393e; border-radius: 10px; }
.pfs-content pre, .pfs-content code { font-family: 'JetBrains Mono', monospace; direction: ltr; text-align: left; }
.pfs-content pre { background: #1f2327; padding: 16px; border-radius: 12px; overflow-x: auto; }
.pfs-content input, .pfs-content textarea, .pfs-content select {
	font-family: inherit; font-size: 16px; background: #33393e; color: #eef1f2; border: 1px solid #5a6268; border-radius: 10px; padding: 10px 12px; max-width: 100%;
}
.pfs-content button, .pfs-content input[type="submit"] {
	background: #45c41f; color: #07140a; border: none; border-radius: 10px; padding: 12px 22px; font-weight: 800; cursor: pointer;
}
.pfs-pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.pfs-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid #5a6268; border-radius: 10px; color: #eef1f2; padding: 0 12px; }
.pfs-pagination .current { background: #45c41f; border-color: #45c41f; color: #07140a; font-weight: 800; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
