@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

:root {
	--background: 40 33% 97%;
	--foreground: 160 25% 12%;
	--card: 0 0% 100%;
	--card-foreground: 160 25% 12%;
	--popover: 0 0% 100%;
	--popover-foreground: 160 25% 12%;
	--primary: 160 45% 22%;
	--primary-foreground: 40 33% 97%;
	--secondary: 40 25% 92%;
	--secondary-foreground: 160 25% 12%;
	--muted: 40 20% 94%;
	--muted-foreground: 160 10% 45%;
	--accent: 38 70% 50%;
	--accent-foreground: 0 0% 100%;
	--destructive: 0 84.2% 60.2%;
	--destructive-foreground: 210 40% 98%;
	--border: 40 20% 88%;
	--input: 40 20% 88%;
	--ring: 160 45% 22%;
	--radius: 0.75rem;
	--prayer-highlight: 160 50% 95%;
	--prayer-highlight-border: 160 45% 40%;
	--prayer-active: 160 45% 22%;
	--prayer-active-foreground: 40 33% 97%;
	--hero-gradient-from: 160 45% 18%;
	--hero-gradient-to: 160 35% 28%;
	--gold: 38 70% 50%;
	--gold-light: 38 60% 92%;
	--font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
	--font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
	--font-arabic: 'Amiri', serif;
}

* {
	border-color: hsl(var(--border));
}

body {
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
}

/* Container utility */
.container {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding-right: 1rem;
	padding-left: 1rem;
}

@media (min-width: 1200px) {
	.container {
		max-width: 1200px;
	}
}

/* Font utilities */
.font-display {
	font-family: var(--font-display);
}

.font-body {
	font-family: var(--font-body);
}

.font-arabic {
	font-family: var(--font-arabic);
}

/* Custom gradients */
.hero-gradient {
	background: linear-gradient(135deg, hsl(var(--hero-gradient-from)), hsl(var(--hero-gradient-to)));
}

.gold-shimmer {
	background: linear-gradient(135deg, hsl(var(--gold)), hsl(38 80% 58%));
}

/* Text color utilities */
.text-foreground {
	color: hsl(var(--foreground));
}

.text-primary {
	color: hsl(var(--primary));
}

.text-primary-foreground {
	color: hsl(var(--primary-foreground));
}

.text-muted-foreground {
	color: hsl(var(--muted-foreground));
}

.text-card-foreground {
	color: hsl(var(--card-foreground));
}

.text-primary-foreground\/70 {
	color: hsl(var(--primary-foreground) / 0.7);
}

/* Background utilities */
.bg-background {
	background-color: hsl(var(--background));
}

.bg-card {
	background-color: hsl(var(--card));
}

.bg-muted {
	background-color: hsl(var(--muted));
}

.bg-primary {
	background-color: hsl(var(--primary));
}

.bg-card\/80 {
	background-color: hsl(var(--card) / 0.8);
}

.bg-prayer-active {
	background-color: hsl(var(--prayer-active));
}

.bg-prayer-highlight {
	background-color: hsl(var(--prayer-highlight));
}

.bg-muted\/50 {
	background-color: hsl(var(--muted) / 0.5);
}

.bg-transparent {
	background-color: transparent;
}

/* Border utilities */
.border-border {
	border-color: hsl(var(--border));
}

/* Hover states */
.hover\:text-primary:hover {
	color: hsl(var(--primary));
}

.hover\:bg-primary:hover {
	background-color: hsl(var(--primary));
}

.hover\:bg-muted:hover {
	background-color: hsl(var(--muted));
}

.hover\:text-primary-foreground:hover {
	color: hsl(var(--primary-foreground));
}

.hover\:bg-muted\/50:hover {
	background-color: hsl(var(--muted) / 0.5);
}

/* Flexbox utilities */
.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.flex-wrap {
	flex-wrap: wrap;
}

.items-center {
	align-items: center;
}

.items-start {
	align-items: flex-start;
}

.items-end {
	align-items: flex-end;
}

.justify-between {
	justify-content: space-between;
}

.justify-center {
	justify-content: center;
}

.gap-1 {
	gap: 0.25rem;
}

.gap-1\.5 {
	gap: 0.375rem;
}

.gap-2 {
	gap: 0.5rem;
}

.gap-3 {
	gap: 0.75rem;
}

.gap-4 {
	gap: 1rem;
}

.gap-6 {
	gap: 1.5rem;
}

/* Spacing utilities */
.p-4 {
	padding: 1rem;
}

.p-5 {
	padding: 1.25rem;
}

.p-6 {
	padding: 1.5rem;
}

.px-3 {
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}

.py-1 {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}

.py-2\.5 {
	padding-top: 0.625rem;
	padding-bottom: 0.625rem;
}

.py-3 {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.py-8 {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.py-12 {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.py-16 {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.py-24 {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

.pt-6 {
	padding-top: 1.5rem;
}

.pt-10 {
	padding-top: 2.5rem;
}

.pb-10 {
	padding-bottom: 2.5rem;
}

.pb-12 {
	padding-bottom: 3rem;
}

.mb-1 {
	margin-bottom: 0.25rem;
}

.mb-2 {
	margin-bottom: 0.5rem;
}

.mb-3 {
	margin-bottom: 0.75rem;
}

.mb-4 {
	margin-bottom: 1rem;
}

.mb-6 {
	margin-bottom: 1.5rem;
}

.mb-8 {
	margin-bottom: 2rem;
}

.mt-8 {
	margin-top: 2rem;
}

.mt-16 {
	margin-top: 4rem;
}

.mx-auto {
	margin-right: auto;
	margin-left: auto;
}

.max-w-lg {
	max-width: 32rem;
}

.max-w-md {
	max-width: 28rem;
}

.max-w-sm {
	max-width: 24rem;
}

.max-w-3xl {
	max-width: 48rem;
}

/* Text sizing */
.text-xs {
	font-size: 0.75rem;
	line-height: 1rem;
}

.text-sm {
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.text-base {
	font-size: 1rem;
	line-height: 1.5rem;
}

.text-lg {
	font-size: 1.125rem;
	line-height: 1.75rem;
}

.text-xl {
	font-size: 1.25rem;
	line-height: 1.75rem;
}

.text-3xl {
	font-size: 1.875rem;
	line-height: 2.25rem;
}

.text-4xl {
	font-size: 2.25rem;
	line-height: 2.5rem;
}

.text-5xl {
	font-size: 3rem;
	line-height: 1;
}

@media (min-width: 768px) {
	.md\:text-4xl {
		font-size: 2.25rem;
		line-height: 2.5rem;
	}

	.md\:text-5xl {
		font-size: 3rem;
		line-height: 1;
	}

	.md\:text-sm {
		font-size: 0.875rem;
		line-height: 1.25rem;
	}

	.md\:py-12 {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.md\:py-24 {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}

	.md\:p-5 {
		padding: 1.25rem;
	}

	.md\:grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.md\:grid-cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.md\:flex {
		display: flex;
	}

	.md\:block {
		display: block;
	}

	.md\:hidden {
		display: none;
	}

	.md\:w-auto {
		width: auto;
	}
}

/* Font weight */
.font-medium {
	font-weight: 500;
}

.font-semibold {
	font-weight: 600;
}

.font-bold {
	font-weight: 700;
}

/* Grid utilities */
.grid {
	display: grid;
}

.grid-cols-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.sm\:grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.lg\:grid-cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.lg\:col-span-2 {
		grid-column: span 2 / span 2;
	}

	.lg\:col-span-3 {
		grid-column: span 3 / span 3;
	}
}

/* Border radius */
.rounded-lg {
	border-radius: 0.5rem;
}

.rounded-xl {
	border-radius: 0.75rem;
}

.rounded-md {
	border-radius: calc(var(--radius) - 2px);
}

.rounded-full {
	border-radius: 9999px;
}

.rounded-t-xl {
	border-top-left-radius: 0.75rem;
	border-top-right-radius: 0.75rem;
}

.rounded-b-xl {
	border-bottom-left-radius: 0.75rem;
	border-bottom-right-radius: 0.75rem;
}

/* Border */
.border {
	border-width: 1px;
	border-style: solid;
}

.border-t {
	border-top-width: 1px;
	border-top-style: solid;
}

.border-b {
	border-bottom-width: 1px;
	border-bottom-style: solid;
}

.border-r {
	border-right-width: 1px;
	border-right-style: solid;
}

/* Colors */
.opacity-80 {
	opacity: 0.8;
}

.opacity-70 {
	opacity: 0.7;
}

.text-prayer-active-foreground {
	color: hsl(var(--prayer-active-foreground));
}

/* Transition */
.transition-colors {
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

.transition-shadow {
	transition-property: box-shadow;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

/* Sizing */
.min-h-screen {
	min-height: 100vh;
}

.w-full {
	width: 100%;
}

.w-2\/3 {
	width: 66.666667%;
}

.w-3 {
	width: 0.75rem;
}

.w-4 {
	width: 1rem;
}

.w-8 {
	width: 2rem;
}

.w-14 {
	width: 3.5rem;
}

.h-2\.5 {
	height: 0.625rem;
}

.h-3 {
	height: 0.75rem;
}

.h-4 {
	height: 1rem;
}

.h-8 {
	height: 2rem;
}

.h-14 {
	height: 3.5rem;
}

/* Position */
.relative {
	position: relative;
}

.sticky {
	position: sticky;
}

.top-0 {
	top: 0px;
}

.z-40 {
	z-index: 40;
}

.z-50 {
	z-index: 50;
}

/* Flex items */
.shrink-0 {
	flex-shrink: 0;
}

/* Space utilities */
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
	margin-top: 0.25rem;
}

.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
	margin-top: 0.375rem;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
	margin-top: 0.5rem;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
	margin-top: 1rem;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
	margin-top: 1.5rem;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
	margin-left: 0.5rem;
}

/* Display */
.inline-block {
	display: inline-block;
}

.hidden {
	display: none;
}

.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.capitalize {
	text-transform: capitalize;
}

.uppercase {
	text-transform: uppercase;
}

.leading-tight {
	line-height: 1.25;
}

.leading-relaxed {
	line-height: 1.625;
}

.tabular-nums {
	font-variant-numeric: tabular-nums;
}

/* Overflow */
.overflow-hidden {
	overflow: hidden;
}

.overflow-x-auto {
	overflow-x: auto;
}

/* Ring */
.focus-within\:ring-2:focus-within {
	--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
	--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
	box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow);
}

/* Shadow */
.shadow-md {
	--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-shadow);
}

/* Outline */
.outline-none {
	outline: 2px solid transparent;
	outline-offset: 2px;
}

/* Placeholder */
.placeholder\:text-muted-foreground::placeholder {
	color: hsl(var(--muted-foreground));
}

/* Animation */
.animate-pulse-gentle {
	animation: pulse-gentle 2s ease-in-out infinite;
}

@keyframes pulse-gentle {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

/* Backdrop */
.backdrop-blur-md {
	--tw-backdrop-blur: blur(12px);
	backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

/* Table */
.sticky {
	position: sticky;
}

.left-0 {
	left: 0px;
}

.bg-inherit {
	background-color: inherit;
}

.whitespace-nowrap {
	white-space: nowrap;
}

/* Table specific */
.text-center {
	text-align: center;
}
