/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

* {
	font-family: "Inter", sans-serif;
}

.gradient-bg {
	background: linear-gradient(135deg, #059669 0%, #16a34a 50%, #22c55e 100%);
}

.mobile-menu {
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
}
.mobile-menu.open {
	transform: translateX(0);
}
.overlay {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.overlay.open {
	opacity: 1;
	visibility: visible;
}

/* Toggle switch component for pricing toggle */
.toggle-switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 30px;
	margin: 0 8px;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-switch .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #cbd5e0;
	transition: 0.4s;
	border-radius: 34px;
}

.toggle-switch .slider:before {
	position: absolute;
	content: "";
	height: 22px;
	width: 22px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: 0.4s;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .slider {
	background-color: #10b981;
}

.toggle-switch input:focus + .slider {
	box-shadow: 0 0 1px #10b981;
}

.toggle-switch input:checked + .slider:before {
	transform: translateX(30px);
}

/* Add animation to price transition */
.price-transition {
	transition: all 0.3s ease;
}

.glass-effect {
	backdrop-filter: blur(16px);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
	transition: all 0.3s ease;
}

.hover-lift:hover {
	transform: translateY(-8px);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.floating {
	animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
}

.fade-in {
	opacity: 0;
	transform: translateY(30px);
	animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.stagger-1 {
	animation-delay: 0.1s;
}
.stagger-2 {
	animation-delay: 0.2s;
}
.stagger-3 {
	animation-delay: 0.3s;
}
.stagger-4 {
	animation-delay: 0.4s;
}

.pulse-green {
	animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
	}
	70% {
		box-shadow: 0 0 0 20px rgba(34, 197, 94, 0);
	}
}

/* Pagy Pagination Custom Styles */
nav.pagy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	padding: 1rem 0;
}

nav.pagy a,
nav.pagy a[role="link"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	min-width: 2.5rem;
	height: 2.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
}

/* Hover state for clickable links */
nav.pagy a[href]:hover {
	background-color: #ecfdf5;
	border-color: #059669;
	color: #059669;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav.pagy a[href]:active {
	transform: translateY(0);
}

/* Current/Active page */
nav.pagy a[aria-current="page"] {
	background-color: #059669;
	border-color: #059669;
	color: #ffffff;
	font-weight: 600;
	box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
	cursor: default;
}

/* Disabled state (prev/next when not available) */
nav.pagy a[aria-disabled="true"] {
	color: #9ca3af;
	background-color: #f9fafb;
	border-color: #e5e7eb;
	cursor: not-allowed;
	opacity: 1;
	pointer-events: none;
}

/* Gap indicator (...) */
nav.pagy a[role="separator"] {
	border: none;
	background: transparent;
	color: #9ca3af;
	cursor: default;
	pointer-events: none;
}

/* Previous and Next buttons */
nav.pagy a[aria-label="Previous"],
nav.pagy a[aria-label="Next"] {
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 640px) {
	nav.pagy a {
		min-width: 2rem;
		height: 2rem;
		padding: 0.375rem 0.75rem;
		font-size: 0.8125rem;
	}
	
	nav.pagy a[aria-label="Previous"],
	nav.pagy a[aria-label="Next"] {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}
}

/* Mobile Menu Dropdown Styles */
.mobile-menu-drawer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
}

.mobile-menu-drawer.open {
	max-height: 500px;
}

.mobile-menu-overlay {
	opacity: 0 !important;
	visibility: hidden !important;
	transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu-overlay.open {
	opacity: 1 !important;
	visibility: visible !important;
}
