/* Prayer Times Frontend */

.wpt-wrapper {
	margin: 2rem 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wpt-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
	padding: 1rem;
	background: #f9f9f9;
	border-radius: 4px;
}

.wpt-nav-btn {
	padding: 0.5rem 1rem;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s;
}

.wpt-nav-btn:hover:not(:disabled) {
	background: #1a472a;
	color: #fff;
	border-color: #1a472a;
}

.wpt-nav-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.wpt-date-display {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1a472a;
}

.wpt-date-picker {
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
}

/* GRID LAYOUT */

.wpt-grid {
	display: grid;
	gap: 1rem;
	width: 100%;
}

.wpt-horizontal {
	grid-auto-flow: dense;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.wpt-vertical {
	grid-template-columns: 1fr;
}

/* PRAYER BOXES */

.wpt-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	text-align: center;
	transition: all 0.3s;
	min-height: 100px;
}

.wpt-label {
	display: block;
}

.wpt-time {
	display: block;
	font-family: 'Courier New', monospace;
	letter-spacing: 1px;
}

/* CURRENT PRAYER INDICATOR */

.wpt-current {
	position: relative;
	z-index: 10;
}

.wpt-pulse-slow {
	animation: wpt-pulse-anim 2s ease-in-out infinite;
}

.wpt-pulse-medium {
	animation: wpt-pulse-anim 1s ease-in-out infinite;
}

.wpt-pulse-fast {
	animation: wpt-pulse-anim 0.6s ease-in-out infinite;
}

@keyframes wpt-pulse-anim {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.7;
		transform: scale(1.05);
	}
}

/* RESPONSIVE */

@media (max-width: 768px) {
	.wpt-horizontal {
		grid-template-columns: repeat(2, 1fr);
	}

	.wpt-nav {
		flex-direction: column;
		gap: 0.5rem;
	}

	.wpt-nav-btn {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.wpt-horizontal {
		grid-template-columns: 1fr;
	}

	.wpt-box {
		min-height: 80px;
	}

	.wpt-label {
		font-size: 0.9rem;
	}

	.wpt-time {
		font-size: 1.2rem;
	}
}
