/**
 * Nearby Events - Styles
 */

.mlet-nearby-events-container {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

/* ========== LOCATION PROMPT ========== */
.mlet-nearby-location-prompt {
	text-align: center;
	padding: 3rem 2rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 16px;
	color: white;
	box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.mlet-nearby-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

.mlet-nearby-location-prompt h3 {
	font-size: 2rem;
	margin: 0 0 1rem 0;
	color: white;
}

.mlet-nearby-location-prompt p {
	font-size: 1.1rem;
	margin: 0 0 2rem 0;
	opacity: 0.95;
}

.mlet-nearby-btn-primary {
	background: white;
	color: #667eea;
	border: none;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 50px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mlet-nearby-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.mlet-nearby-btn-primary:active {
	transform: translateY(0);
}

.mlet-nearby-btn-icon {
	font-size: 1.3rem;
}

.mlet-nearby-privacy-note {
	margin-top: 1.5rem;
	opacity: 0.9;
}

.mlet-nearby-privacy-note small {
	font-size: 0.9rem;
}

/* ========== LOADING ========== */
.mlet-nearby-loading {
	text-align: center;
	padding: 4rem 2rem;
}

.mlet-nearby-spinner {
	width: 50px;
	height: 50px;
	margin: 0 auto 1rem;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.mlet-nearby-loading p {
	font-size: 1.1rem;
	color: #666;
}

/* ========== RESULTS ========== */
.mlet-nearby-results {
	margin-top: 2rem;
}

.mlet-nearby-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #e0e0e0;
}

.mlet-nearby-header h3 {
	margin: 0;
	font-size: 1.8rem;
	color: #333;
}

.mlet-nearby-btn-secondary {
	background: #f5f5f5;
	color: #667eea;
	border: 1px solid #e0e0e0;
	padding: 0.6rem 1.2rem;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 25px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: all 0.3s ease;
}

.mlet-nearby-btn-secondary:hover {
	background: #667eea;
	color: white;
	border-color: #667eea;
}

/* ========== EVENTS GRID ========== */
.mlet-nearby-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.mlet-nearby-event-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.mlet-nearby-event-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mlet-nearby-event-image {
	width: 100%;
	height: 200px;
	background-size: cover;
	background-position: center;
	position: relative;
}

/* Category badge */
.mlet-nearby-event-category {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
}

.mlet-nearby-category-badge {
	display: inline-block;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
}

/* Distance badge */
.mlet-nearby-event-distance {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(255, 255, 255, 0.95);
	padding: 0.4rem 0.8rem;
	border-radius: 20px;
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-weight: 600;
	font-size: 0.9rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	z-index: 2;
}

.mlet-nearby-distance-icon {
	font-size: 1rem;
}

.mlet-nearby-distance-text {
	color: #667eea;
}

.mlet-nearby-event-content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.mlet-nearby-event-title {
	margin: 0 0 1rem 0;
	font-size: 1.3rem;
	line-height: 1.4;
}

.mlet-nearby-event-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.mlet-nearby-event-title a:hover {
	color: #667eea;
}

.mlet-nearby-event-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
	color: #666;
}

.mlet-nearby-meta-icon {
	font-size: 1rem;
}

.mlet-nearby-event-price {
	margin: 1rem 0;
	padding-top: 1rem;
	border-top: 1px solid #e0e0e0;
}

.mlet-nearby-price-free {
	display: inline-block;
	background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.95rem;
}

.mlet-nearby-price-amount {
	font-size: 1.3rem;
	font-weight: 700;
	color: #667eea;
}

.mlet-nearby-event-btn {
	display: block;
	text-align: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 0.8rem 1.5rem;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	margin-top: auto;
}

.mlet-nearby-event-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
	color: white;
}

/* ========== ERROR ========== */
.mlet-nearby-error {
	text-align: center;
	padding: 3rem 2rem;
	background: #fff3f3;
	border: 2px solid #ffcccc;
	border-radius: 12px;
}

.mlet-nearby-error-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.mlet-nearby-error h4 {
	margin: 0 0 1rem 0;
	font-size: 1.5rem;
	color: #c33;
}

.mlet-nearby-error p {
	font-size: 1rem;
	color: #666;
	margin: 0 0 2rem 0;
	line-height: 1.6;
}

/* ========== COLUMN VARIATIONS ========== */
.mlet-nearby-events-grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.mlet-nearby-events-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.mlet-nearby-events-grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
	.mlet-nearby-events-grid-4 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 1024px) {
	.mlet-nearby-events-grid-3,
	.mlet-nearby-events-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.mlet-nearby-events-grid,
	.mlet-nearby-events-grid-2,
	.mlet-nearby-events-grid-3,
	.mlet-nearby-events-grid-4 {
		grid-template-columns: 1fr;
	}
	
	.mlet-nearby-header {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}
	
	.mlet-nearby-header h3 {
		font-size: 1.4rem;
	}
	
	.mlet-nearby-location-prompt h3 {
		font-size: 1.5rem;
	}
	
	.mlet-nearby-location-prompt {
		padding: 2rem 1rem;
	}
}

