/* ===== Namaz Time — design tokens =====
   --night-deep #0A1128   --night-mid #16244B
   --gold #C9A227   --gold-bright #E8C468   --ivory #F6F1E4
   --teal #2E7D6B (used sparingly, next-prayer accent)
   Display: 'Amiri' (Arabic-inspired serif) | Body: 'Hind Siliguri' | Digits: 'DM Mono'
*/

/* ===== Break the theme's content container so this page runs full-bleed ===== */
body.nt-fullpage {
	overflow-x: hidden;
}
body.nt-fullpage .entry-header,
body.nt-fullpage .page-header,
body.nt-fullpage .page-title,
body.nt-fullpage .entry-title,
body.nt-fullpage h1.entry-title,
body.nt-fullpage header.entry-header,
body.nt-fullpage .breadcrumbs,
body.nt-fullpage .rank-math-breadcrumb {
	display: none !important;
}
body.nt-fullpage #content,
body.nt-fullpage #primary,
body.nt-fullpage .site-content,
body.nt-fullpage .content-area,
body.nt-fullpage .entry-content,
body.nt-fullpage main,
body.nt-fullpage article {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

.nt-wrap {
	--night-deep: #0a1128;
	--night-mid: #16244b;
	--gold: #c9a227;
	--gold-bright: #e8c468;
	--ivory: #f6f1e4;
	--teal: #2e7d6b;
	--glass: rgba(246, 241, 228, 0.06);
	--glass-strong: rgba(246, 241, 228, 0.1);
	--hairline: rgba(232, 201, 104, 0.35);

	position: relative;
	min-height: 100vh;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
	background: var(--night-deep);
	font-family: 'Hind Siliguri', 'Segoe UI', sans-serif;
	color: var(--ivory);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0 16px 48px;
	box-sizing: border-box;
}

.nt-wrap * { box-sizing: border-box; }

.nt-scene {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.nt-scene-svg {
	width: 100%;
	height: 100%;
	display: block;
}
.nt-stars circle {
	animation: nt-twinkle 4s ease-in-out infinite;
}
.nt-stars circle:nth-child(3n) { animation-delay: 0.6s; }
.nt-stars circle:nth-child(4n) { animation-delay: 1.4s; }
.nt-stars circle:nth-child(5n) { animation-delay: 2.2s; }

@keyframes nt-twinkle {
	0%, 100% { opacity: 0.35; }
	50% { opacity: 1; }
}

/* ===== Card ===== */
.nt-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	margin-top: 18vh;
	background: var(--glass);
	border: 1px solid var(--hairline);
	border-radius: 22px;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	padding: 34px 30px 30px;
	text-align: center;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.nt-eyebrow {
	letter-spacing: 0.35em;
	text-transform: uppercase;
	font-size: 12px;
	color: var(--gold-bright);
	margin-bottom: 6px;
}

.nt-title {
	font-family: 'Amiri', serif;
	font-weight: 700;
	font-size: 40px;
	margin: 0 0 4px;
	color: var(--ivory);
}

.nt-arabic {
	font-family: 'Amiri', serif;
	font-size: 20px;
	color: var(--gold-bright);
	margin-bottom: 22px;
	direction: rtl;
}

.nt-select-label {
	display: block;
	font-size: 13px;
	color: rgba(246, 241, 228, 0.7);
	margin-bottom: 8px;
	text-align: left;
}

.nt-select {
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--hairline);
	background: var(--night-mid);
	color: var(--ivory);
	font-family: inherit;
	font-size: 15px;
	margin-bottom: 18px;
	appearance: none;
	cursor: pointer;
}
.nt-select:focus-visible {
	outline: 2px solid var(--gold-bright);
	outline-offset: 2px;
}

.nt-status {
	min-height: 18px;
	font-size: 13px;
	color: rgba(246, 241, 228, 0.6);
	margin-bottom: 6px;
}

/* ===== Prayer tiles ===== */
.nt-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 14px 0 18px;
}
.nt-tile {
	background: var(--glass-strong);
	border: 1px solid var(--hairline);
	border-radius: 14px;
	padding: 12px 6px;
}
.nt-tile-name {
	font-size: 12px;
	color: rgba(246, 241, 228, 0.65);
	margin-bottom: 4px;
}
.nt-tile-time {
	font-family: 'DM Mono', monospace;
	font-size: 17px;
	color: var(--ivory);
}
.nt-tile.is-next {
	border-color: var(--gold-bright);
	box-shadow: 0 0 0 1px var(--gold-bright), 0 0 24px rgba(232, 201, 104, 0.35);
	animation: nt-pulse 2.6s ease-in-out infinite;
}
@keyframes nt-pulse {
	0%, 100% { box-shadow: 0 0 0 1px var(--gold-bright), 0 0 18px rgba(232, 201, 104, 0.25); }
	50% { box-shadow: 0 0 0 1px var(--gold-bright), 0 0 30px rgba(232, 201, 104, 0.5); }
}

.nt-next {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(90deg, rgba(46, 125, 107, 0.18), rgba(201, 162, 39, 0.18));
	border: 1px solid var(--hairline);
	border-radius: 14px;
	padding: 12px;
	margin-bottom: 20px;
}
.nt-next-label { font-size: 12px; color: rgba(246,241,228,0.7); }
.nt-next-name { font-weight: 600; color: var(--gold-bright); }
.nt-next-count { font-family: 'DM Mono', monospace; color: var(--ivory); }

.nt-divider {
	height: 1px;
	background: var(--hairline);
	margin: 6px 0 20px;
}

.nt-clock-block { margin-bottom: 18px; }
.nt-clock-label {
	font-size: 12px;
	letter-spacing: 0.08em;
	color: rgba(246, 241, 228, 0.6);
	margin-bottom: 6px;
}
.nt-clock {
	font-family: 'DM Mono', monospace;
	font-size: 46px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--gold-bright);
	text-shadow: 0 0 30px rgba(232, 201, 104, 0.35);
}

.nt-dates {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.nt-date-pill {
	background: var(--glass-strong);
	border: 1px solid var(--hairline);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	display: flex;
	gap: 6px;
	align-items: center;
}
.nt-date-tag {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gold-bright);
}

@media (max-width: 480px) {
	.nt-card { margin-top: 12vh; padding: 26px 18px 24px; }
	.nt-title { font-size: 32px; }
	.nt-clock { font-size: 36px; }
	.nt-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.nt-stars circle, .nt-tile.is-next { animation: none; }
}
