/* Aprin World Clock styles. Colors come from CSS variables set by the Elementor
   style controls (with sensible Aprin defaults below). */
.awc-grid {
	--awc-card: #ffffff;
	--awc-text: #00132b;
	--awc-muted: #5b6b7d;
	--awc-accent: #00b5e2;
	--awc-hand: #3a4250;   /* hour + minute hands */
	--awc-second: #ff4136; /* second hand */
	--awc-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--awc-cols), minmax(0, 1fr));
	gap: 24px;
	direction: rtl;
	font-family: Vazirmatn, IRANSans, Tahoma, sans-serif;
}

.awc-clock {
	text-align: center;
	color: var(--awc-text);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

/* ---------- Digital (big) ---------- */
.awc-digital {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: var(--awc-card);
	border-radius: 16px;
	padding: 22px 18px;
	width: 100%;
	box-shadow: 0 10px 30px rgba(2, 17, 43, 0.06);
}

.awc-city--top {
	font-size: 16px;
	font-weight: 700;
	color: var(--awc-text);
}

.awc-time {
	font-size: 30px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--awc-text);
	line-height: 1.1;
	unicode-bidi: plaintext;
}

.awc-date {
	font-size: 13px;
	color: var(--awc-muted);
}

/* ---------- Analog (neumorphic) ---------- */
.awc-analog-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.awc-analog {
	position: relative;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: linear-gradient(145deg, #ffffff, #e9edf3);
	box-shadow: 7px 7px 18px rgba(13, 26, 51, 0.12),
	            -7px -7px 18px rgba(255, 255, 255, 0.95),
	            inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* 12 tick marks rendered as a thin ring near the rim */
.awc-analog::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: repeating-conic-gradient(rgba(13, 26, 51, 0.20) 0deg 1.2deg, transparent 1.2deg 30deg);
	-webkit-mask: radial-gradient(circle, transparent 0 58%, #000 60% 66%, transparent 68%);
	        mask: radial-gradient(circle, transparent 0 58%, #000 60% 66%, transparent 68%);
}

.awc-hand {
	position: absolute;
	left: 50%;
	bottom: 50%;
	transform-origin: bottom center;
	transform: translateX(-50%) rotate(0deg);
	border-radius: 6px;
	background: var(--awc-hand);
	z-index: 2;
}
.awc-hour { width: 5px; height: 40px; }
.awc-min { width: 4px; height: 56px; }
.awc-sec { width: 2px; height: 62px; background: var(--awc-second); z-index: 3; }

.awc-center {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--awc-hand);
	border: 2px solid var(--awc-card);
	transform: translate(-50%, -50%);
	z-index: 4;
}

/* City + time under the analog face (Aprin reference layout) */
.awc-caption {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}
.awc-caption .awc-city {
	font-size: 14px;
	font-weight: 600;
	color: var(--awc-muted);
}
.awc-caption .awc-time {
	font-size: 17px;
	font-weight: 700;
	color: var(--awc-text);
}

/* ---------- Toggle (style = both) ---------- */
.awc-toggle {
	display: inline-flex;
	background: rgba(0, 181, 226, 0.10);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}
.awc-tab {
	border: 0;
	background: transparent;
	color: var(--awc-muted);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 999px;
	cursor: pointer;
}
.awc-tab.is-active {
	background: var(--awc-accent);
	color: #fff;
}

/* "both": analog shown by default; awc-view-digital flips to the digital block. */
.awc-style-both .awc-digital { display: none; }
.awc-style-both.awc-view-digital .awc-analog-wrap { display: none; }
.awc-style-both.awc-view-digital .awc-digital { display: flex; }

.awc-empty {
	padding: 16px;
	color: #8a97a5;
	text-align: center;
	direction: rtl;
}

@media (max-width: 767px) {
	.awc-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
