/*
Theme Name: Uptimehost Landing
Theme URI: https://uptimehost.example
Author: uptimehost
Author URI: https://uptimehost.example
Description: قالب وردپرس صفحه فرود سامانه مانیتورینگ آپتایم «uptimehost». راست‌به‌چپ، فونت وزیرمتن، بر پایه Tailwind CSS با پشتیبانی از منو، لوگو و ویرایشگر سفارشی‌ساز وردپرس.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uptimehost
*/

/* ==========================================================================
   1. Base resets (from original design)
   ========================================================================== */
html,
body {
	margin: 0;
	padding: 0;
}

body {
	overscroll-behavior: none;
}

main > :first-child {
	margin-top: 0 !important;
}

main > :last-child {
	margin-bottom: 0 !important;
}

::-webkit-scrollbar {
	display: none;
}

img {
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   2. Minimum standard WordPress classes
   ========================================================================== */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	right: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.alignleft {
	float: left;
	margin: 0 1.5em 1.5em 0;
}

.alignright {
	float: right;
	margin: 0 0 1.5em 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto 1.5em;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	text-align: center;
	font-size: 0.85em;
	opacity: 0.75;
}

.sticky {
	/* intentionally left blank - handled per-template if needed */
}

/* ==========================================================================
   3. Mobile nav dropdown (added for usability - the original design had no
      mobile menu control at all)
   ========================================================================== */
#uh-mobile-menu.is-open {
	display: block;
}

#uh-mobile-menu a {
	display: block;
	padding: 0.5rem 0;
}

/* ==========================================================================
   4. Hero dashboard mockup (copied 1:1 from the supplied design)
   ========================================================================== */
#mockup .uhdash-shell {
	position: relative;
	width: 100%;
	aspect-ratio: 2.10/1;
	min-height: 430px;
	background: #eef5fc;
	color: #24323a;
	overflow: hidden;
	direction: rtl;
	font-family: Vazirmatn, sans-serif;
}
#mockup .uhdash-sidebar {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 17.4%;
	background: #fff;
	border-left: 1px solid #d7e9ea;
	padding: 2.8% 1.35% 1.9%;
	display: flex;
	flex-direction: column;
}
#mockup .uhdash-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7%;
	padding-bottom: 8%;
	border-bottom: 1px solid #d7e9ea;
}
#mockup .uhdash-brand img {
	width: 28%;
	max-width: 56px;
	aspect-ratio: 1;
	object-fit: contain;
}
#mockup .uhdash-brand b {
	font-size: clamp(10px, 1.28vw, 19px);
	color: #064c9c;
	direction: ltr;
	letter-spacing: -0.02em;
}
#mockup .uhdash-nav {
	display: flex;
	flex-direction: column;
	gap: 2%;
	margin-top: 6%;
}
#mockup .uhdash-nav-item {
	display: flex;
	align-items: center;
	gap: 8%;
	padding: 6.2% 7%;
	border-radius: 10px;
	color: #61747b;
	font-size: clamp(7px, 0.82vw, 13px);
	font-weight: 700;
	white-space: nowrap;
}
#mockup .uhdash-nav-item .material-symbols-outlined {
	font-size: clamp(13px, 1.45vw, 23px);
	font-weight: 300;
}
#mockup .uhdash-nav-item.active {
	background: #eaf2ff;
	color: #2455d8;
}
#mockup .uhdash-account {
	margin-top: auto;
	border-top: 1px solid #e2eeee;
	padding-top: 7%;
	display: flex;
	flex-direction: column;
	gap: 3%;
}
#mockup .uhdash-main {
	position: absolute;
	right: 17.4%;
	left: 0;
	top: 0;
	bottom: 0;
	padding: 1.6% 2.1% 1.6%;
}
#mockup .uhdash-topbar {
	height: 10.8%;
	min-height: 52px;
	background: #fff;
	border: 1px solid #cfe5e6;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 2.1%;
}
#mockup .uhdash-user {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: clamp(8px, 0.9vw, 14px);
	font-weight: 700;
	color: #14252c;
}
#mockup .uhdash-user-icon {
	width: clamp(22px, 2.7vw, 42px);
	height: clamp(22px, 2.7vw, 42px);
	border-radius: 999px;
	background: #f1f7fb;
	display: grid;
	place-items: center;
	color: #779098;
}
#mockup .uhdash-clock {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f1f6ff;
	border-radius: 999px;
	padding: 0.75% 1.35%;
	color: #6a7e85;
	font-size: clamp(6px, 0.7vw, 11px);
	white-space: nowrap;
}
#mockup .uhdash-clock strong {
	color: #2455d8;
	background: #fff;
	padding: 3px 8px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(28, 82, 153, 0.08);
}
#mockup .uhdash-tools {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #71878d;
}
#mockup .uhdash-tools .material-symbols-outlined {
	font-size: clamp(13px, 1.3vw, 20px);
}
#mockup .uhdash-content {
	height: 86.8%;
	padding: 2.1% 6.5% 0 6.5%;
	overflow: hidden;
}
#mockup .uhdash-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	border: 1px solid #cfe5e6;
	border-radius: 16px;
	padding: 1.5% 2.2%;
	margin-bottom: 1.4%;
}
#mockup .uhdash-heading h3 {
	font-size: clamp(11px, 1.35vw, 21px);
	font-weight: 900;
	margin: 0 0 2px;
	color: #16292f;
}
#mockup .uhdash-heading p {
	font-size: clamp(6px, 0.76vw, 12px);
	margin: 0;
	color: #71858b;
}
#mockup .uhdash-update {
	border: 1.5px solid #3476ff;
	color: #2460df;
	background: #fff;
	border-radius: 999px;
	padding: 0.65% 2%;
	font-size: clamp(6px, 0.72vw, 11px);
	font-weight: 800;
}
#mockup .uhdash-kpis {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1%;
	margin-bottom: 1.4%;
}
#mockup .uhdash-kpi {
	background: #fff;
	border: 1px solid #cfe5e6;
	border-radius: 15px;
	padding: 1.5% 1.6%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 70px;
}
#mockup .uhdash-kpi-copy strong {
	display: block;
	font-size: clamp(13px, 1.65vw, 26px);
	line-height: 1.05;
	color: #11242b;
	font-weight: 900;
}
#mockup .uhdash-kpi-copy small {
	display: block;
	margin-top: 6px;
	font-size: clamp(6px, 0.67vw, 10.5px);
	color: #758a90;
}
#mockup .uhdash-kpi-ico {
	width: clamp(26px, 3.1vw, 48px);
	height: clamp(26px, 3.1vw, 48px);
	border-radius: 12px;
	display: grid;
	place-items: center;
}
#mockup .uhdash-kpi-ico .material-symbols-outlined {
	font-size: clamp(14px, 1.65vw, 26px);
	font-weight: 300;
}
#mockup .blue {
	background: #edf5ff;
	color: #2559df;
}
#mockup .green {
	background: #e5fbef;
	color: #159b5b;
}
#mockup .red {
	background: #ffe9eb;
	color: #f14955;
}
#mockup .amber {
	background: #fff3d7;
	color: #be6809;
}
#mockup .uhdash-alert {
	background: #ffe9e9;
	border: 1px solid #ffb6b6;
	border-radius: 16px;
	padding: 1.45% 1.8%;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	align-items: center;
	margin-bottom: 1.4%;
	min-height: 92px;
}
#mockup .uhdash-alert-right {
	display: flex;
	align-items: center;
	gap: 2.5%;
}
#mockup .uhdash-alert-icon {
	width: clamp(28px, 3.25vw, 50px);
	height: clamp(28px, 3.25vw, 50px);
	border-radius: 12px;
	background: #fff;
	display: grid;
	place-items: center;
	color: #f14752;
}
#mockup .uhdash-alert-icon .material-symbols-outlined {
	font-size: clamp(15px, 1.75vw, 27px);
}
#mockup .uhdash-alert-copy b {
	display: block;
	font-size: clamp(7px, 0.78vw, 12px);
	color: #b8252d;
	margin-bottom: 5px;
}
#mockup .uhdash-alert-site {
	display: flex;
	align-items: flex-end;
	gap: 5.5%;
}
#mockup .uhdash-alert-site h4 {
	font-size: clamp(9px, 1.08vw, 17px);
	font-weight: 900;
	margin: 0;
	color: #203139;
}
#mockup .uhdash-alert-site small {
	display: block;
	color: #71838a;
	font-size: clamp(6px, 0.63vw, 10px);
	direction: ltr;
}
#mockup .uhdash-duration strong {
	display: block;
	color: #b82129;
	font-size: clamp(12px, 1.45vw, 23px);
	direction: ltr;
}
#mockup .uhdash-duration span {
	font-size: clamp(6px, 0.62vw, 10px);
	color: #b82129;
}
#mockup .uhdash-alert-actions {
	display: flex;
	justify-content: flex-end;
	gap: 2.3%;
}
#mockup .uhdash-alert-actions button {
	border: 1.3px solid #3374ff;
	border-radius: 999px;
	background: #fff;
	color: #245bd6;
	font-weight: 800;
	font-family: inherit;
	font-size: clamp(6px, 0.67vw, 10px);
	padding: 1.6% 3.4%;
}
#mockup .uhdash-alert-actions button.primary {
	background: #3984f5;
	color: #fff;
	border-color: #3984f5;
}
#mockup .uhdash-table-card {
	background: #fff;
	border: 1px solid #cfe5e6;
	border-radius: 16px;
	padding: 1.25% 1.65% 0;
	overflow: hidden;
}
#mockup .uhdash-table-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: clamp(7px, 0.72vw, 11px);
	font-weight: 800;
	color: #71858b;
	margin-bottom: 0.7%;
}
#mockup .uhdash-table-title a {
	color: #2459df;
	font-size: clamp(6px, 0.66vw, 10px);
}
#mockup .uhdash-row {
	display: grid;
	grid-template-columns: 0.55fr 1.6fr 0.8fr 0.75fr 0.75fr 1fr;
	align-items: center;
	gap: 1%;
	padding: 1.05% 0.4%;
	border-bottom: 1px solid #d7e9ea;
	font-size: clamp(6px, 0.65vw, 10px);
	color: #293c43;
}
#mockup .uhdash-row.head {
	font-weight: 800;
	color: #657d84;
	padding-top: 0.65%;
	padding-bottom: 0.85%;
}
#mockup .uhdash-status {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #e1faeb;
	color: #15814e;
	border-radius: 999px;
	padding: 4px 8px;
	width: max-content;
	font-weight: 800;
}
#mockup .uhdash-site-name strong {
	display: block;
	font-size: clamp(7px, 0.76vw, 12px);
	color: #1c2c33;
}
#mockup .uhdash-site-name small {
	display: block;
	color: #6e858c;
	direction: ltr;
	font-size: clamp(5.5px, 0.58vw, 9px);
}
#mockup .slow {
	color: #b25c00;
	font-weight: 800;
}
#mockup .uhdash-last {
	direction: ltr;
	color: #61757c;
}

@media (max-width: 700px) {
	#mockup .uhdash-shell {
		min-height: 320px;
		aspect-ratio: 1.72/1;
	}
	#mockup .uhdash-sidebar {
		width: 19%;
	}
	#mockup .uhdash-main {
		right: 19%;
		padding: 1.4%;
	}
	#mockup .uhdash-content {
		padding: 2% 2.5% 0;
	}
	#mockup .uhdash-kpis {
		grid-template-columns: repeat(2, 1fr);
	}
	#mockup .uhdash-kpi:nth-child(n + 3) {
		display: none;
	}
	#mockup .uhdash-alert {
		grid-template-columns: 1fr;
	}
	#mockup .uhdash-alert-actions {
		display: none;
	}
	#mockup .uhdash-row {
		grid-template-columns: 0.7fr 1.6fr 0.8fr 0.8fr;
	}
	#mockup .uhdash-row > *:nth-child(5),
	#mockup .uhdash-row > *:nth-child(6) {
		display: none;
	}
	#mockup .uhdash-clock {
		display: none;
	}
}

/* ==========================================================================
   5. Blog / single post / 404 templates (not covered by the landing design,
      styled to stay consistent with the Tailwind design tokens above)
   ========================================================================== */
.uh-prose p {
	margin-bottom: 1.25em;
	line-height: 1.9;
}
.uh-prose img {
	border-radius: 1rem;
}
.uh-prose a {
	color: var(--tw-prose-links, #005fa0);
	text-decoration: underline;
}
.uh-prose h2,
.uh-prose h3,
.uh-prose h4 {
	font-weight: 800;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}
.uh-prose ul,
.uh-prose ol {
	margin: 0 0 1.25em 1.5em;
	padding: 0;
}
