/* استایل فرانت‌اند کیت شمسی */

/* ---------- تقویم ماهانه ---------- */
.shamsi-calendar {
	background: #fff;
	border: 1px solid #e4e7eb;
	border-radius: 14px;
	padding: 14px;
	max-width: 340px;
	font-family: inherit;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
	transition: opacity .2s;
}

.shamsi-loading { opacity: .45; pointer-events: none; }

.shamsi-calendar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.shamsi-calendar-title {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 17px;
}

.shamsi-calendar-title strong { font-weight: 700; }
.shamsi-calendar-year { color: #8a8f98; font-size: 14px; }

.shamsi-cal-nav {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	border: 1px solid #e4e7eb;
	background: #fff;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
}

.shamsi-cal-nav:hover { background: #f3f4f6; }

.shamsi-calendar-grid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.shamsi-calendar-grid th {
	font-size: 11px;
	font-weight: 600;
	color: #8a8f98;
	padding: 6px 0;
}

.shamsi-calendar-grid th.shamsi-holiday,
.shamsi-calendar-grid td.shamsi-holiday { color: #e5484d; }

.shamsi-calendar-grid td {
	text-align: center;
	padding: 7px 0;
	font-size: 13px;
	border-radius: 9px;
}

.shamsi-day { position: relative; }
.shamsi-day:hover { background: #f0f4ff; }

.shamsi-today {
	background: #2271b1 !important;
	color: #fff !important;
	font-weight: 700;
}

.shamsi-today:hover { background: #135e96 !important; }

.shamsi-day-greg {
	display: block;
	font-size: 9px;
	color: #aab0b8;
	line-height: 1;
}

.shamsi-empty { padding: 0; }

.shamsi-calendar-foot {
	border-top: 1px dashed #e4e7eb;
	margin-top: 8px;
	padding-top: 8px;
	font-size: 12px;
	color: #555d66;
	text-align: center;
}

/* ---------- تقویم رومیزی ---------- */
.shamsi-desk-calendar-wrap .shamsi-calendar {
	max-width: 240px;
	border-radius: 12px 12px 0 0;
	border-bottom: 6px solid #2271b1;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}
.shamsi-desk-calendar .shamsi-calendar-grid td { padding: 4px 0; font-size: 11px; }
.shamsi-desk-calendar .shamsi-calendar-head { margin-bottom: 4px; }
.shamsi-desk-calendar .shamsi-calendar-title { font-size: 14px; }

/* ---------- تقویم دیواری ---------- */
.shamsi-wall-calendar {
	display: flex;
	gap: 20px;
	align-items: stretch;
	background: linear-gradient(160deg, #1e3a5f, #2271b1);
	border-radius: 18px;
	padding: 20px;
	color: #fff;
	flex-wrap: wrap;
}

.shamsi-wall-side {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-width: 170px;
	padding: 10px 20px;
	border-left: 1px solid rgba(255, 255, 255, .25);
}

.shamsi-wall-daynum { font-size: 84px; font-weight: 800; line-height: 1; }
.shamsi-wall-weekday { font-size: 20px; margin-top: 6px; }
.shamsi-wall-month { font-size: 15px; opacity: .9; margin-top: 4px; }
.shamsi-wall-greg, .shamsi-wall-hijri { font-size: 12px; opacity: .75; margin-top: 6px; }

.shamsi-wall-grid { flex: 1; min-width: 260px; display: flex; justify-content: center; }
.shamsi-wall-grid .shamsi-calendar { max-width: 100%; width: 100%; border: none; }

@media (max-width: 560px) {
	.shamsi-wall-side { border-left: none; border-bottom: 1px solid rgba(255,255,255,.25); min-width: 100%; }
}

/* ---------- کارت امروز ---------- */
.shamsi-today-card {
	max-width: 300px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .09);
	background: #fff;
	border: 1px solid #eceff2;
}

.shamsi-today-weekday {
	text-align: center;
	padding: 10px;
	font-weight: 700;
	color: #fff;
	background: #2271b1;
}

.shamsi-season-0 .shamsi-today-weekday { background: #2e9e5b; }
.shamsi-season-1 .shamsi-today-weekday { background: #e07b39; }
.shamsi-season-2 .shamsi-today-weekday { background: #b3541e; }
.shamsi-season-3 .shamsi-today-weekday { background: #34558b; }

.shamsi-today-main {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px 12px 8px;
}

.shamsi-today-day { font-size: 56px; font-weight: 800; line-height: 1; color: #1d2327; }
.shamsi-today-month-year { font-size: 16px; color: #555d66; }
.shamsi-today-month-year strong { display: block; font-size: 20px; color: #1d2327; }

.shamsi-today-meta {
	list-style: none;
	margin: 0;
	padding: 10px 16px 14px;
	font-size: 13px;
}

.shamsi-today-meta li {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px dashed #eceff2;
}

.shamsi-today-meta li:last-child { border-bottom: 0; }
.shamsi-today-meta li span:first-child { color: #8a8f98; }

/* ---------- ساعت ---------- */
.shamsi-clock-widget {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: #fff;
	border: 1px solid #e4e7eb;
	border-radius: 14px;
	padding: 14px 22px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.shamsi-live-clock {
	font-size: 30px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #135e96;
	letter-spacing: 2px;
}

.shamsi-clock-date { font-size: 13px; color: #555d66; }

/* ---------- فصل‌ها ---------- */
.shamsi-seasons { display: grid; gap: 18px; }
.shamsi-season {
	border: 1px solid #e4e7eb;
	border-radius: 14px;
	padding: 14px;
	background: #fff;
}
.shamsi-season-title { margin: 0 0 12px; font-size: 17px; }
.shamsi-season-0 .shamsi-season-title { color: #2e9e5b; }
.shamsi-season-1 .shamsi-season-title { color: #e07b39; }
.shamsi-season-2 .shamsi-season-title { color: #b3541e; }
.shamsi-season-3 .shamsi-season-title { color: #34558b; }

.shamsi-season-months {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
}
.shamsi-mini-calendar { max-width: 100%; box-shadow: none; padding: 8px; }
.shamsi-mini-calendar .shamsi-calendar-grid td { padding: 4px 0; font-size: 11px; }
.shamsi-mini-calendar .shamsi-calendar-grid th { font-size: 10px; }

/* ---------- مبدل ---------- */
.shamsi-converter {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.shamsi-convert-box {
	background: #fff;
	border: 1px solid #e4e7eb;
	border-radius: 14px;
	padding: 16px;
}

.shamsi-convert-box h4 { margin: 0 0 12px; }

.shamsi-convert-inputs { display: flex; gap: 8px; margin-bottom: 10px; }
.shamsi-convert-inputs input {
	width: 33%;
	padding: 8px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	text-align: center;
}

.shamsi-convert-result {
	margin-top: 10px;
	font-weight: 700;
	font-size: 15px;
	min-height: 22px;
	color: #135e96;
}

.shamsi-convert-result.shamsi-error { color: #d63638; }

/* ---------- تول‌تیپ تاریخ شمسی ---------- */
.shamsi-date { cursor: help; border-bottom: 1px dotted #aab0b8; }

/* ریسپانسیو */
@media (max-width: 480px) {
	.shamsi-calendar { max-width: 100%; }
	.shamsi-wall-daynum { font-size: 56px; }
}
