/**
 * Upcoming Events Carousel Styles
 *
 * Styles for the upcoming events carousel shortcode
 *
 * @package    Gay_Sauna_Guide
 * @subpackage Gay_Sauna_Guide/public/css
 * @since      1.19.0
 */

/* Main Container */
.gsg-upcoming-events-carousel {
	margin: 0 auto;
	max-width: 1240px;
	padding: 3rem 1.5rem;
	background: var(--gsg-background-dark, #1b2026);
}

/* Carousel Container */
.gsg-carousel-container {
	position: relative;
	margin-bottom: 2rem;
}

.gsg-carousel-wrapper {
	overflow: hidden;
	border-radius: 2px;
}

.gsg-carousel-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
}

.gsg-carousel-slide {
	min-width: 100%;
	max-width: 100%;
	width: 100%;
	flex-shrink: 0;
}

.gsg-carousel-slide__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	padding-top: 4px;
}

/* Event Card - Based on events page but with dark theme */
.gsg-upcoming-events-carousel .gsg-event-card {
	background: var(--gsg-slate-medium, #53616D);
	border-radius: 2px;
	overflow: visible;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border: 2px solid transparent;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gsg-upcoming-events-carousel .gsg-event-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
	border-color: var(--gsg-cyan-bright, #3ECFC4);
}

.gsg-event-card__image {
	position: relative;
	width: calc(100% - 36px);
	margin: 18px 18px 0 18px;
	padding-bottom: calc((100% - 36px) / 1.5); /* 3:2 aspect ratio (340x226) */
	overflow: hidden;
	background: var(--gsg-background-light, #f8f8f8);
	border-radius: var(--gsg-radius-xs, 2px);
}

.gsg-event-card__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--gsg-radius-xs, 2px);
}

.gsg-event-card__category {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--gsg-teal-bright, #35CCBD);
	color: var(--gsg-white, #fff);
	padding: 5px 10px;
	border-radius: 2px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gsg-event-card__content {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.gsg-event-card__title {
	margin: 0 0 10px 0;
	padding-bottom: 10px;
	font-size: 20px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #FFFFFF;
	line-height: 1.3;
	border-bottom: 1px solid var(--gsg-white, #fff);
}

.gsg-event-card__info {
	background: #95A6B6B0;
	border: 1px solid var(--gsg-border-light, #95a6b6);
	border-radius: var(--gsg-radius-xs, 2px);
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gsg-event-card__venue {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--gsg-white, #fff);
	font-weight: 500;
}

.gsg-event-card__venue i {
	color: var(--gsg-white, #fff);
	background: var(--gsg-orange-bright);
	font-size: 11px;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	flex-shrink: 0;
	text-align: center;
	line-height: 1;
}

.gsg-event-card__location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--gsg-white, #fff);
	font-weight: 500;
}

.gsg-event-card__location i {
	color: var(--gsg-white, #fff);
	background: var(--gsg-orange-bright);
	font-size: 11px;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	flex-shrink: 0;
	text-align: center;
	line-height: 1;
}

.gsg-event-card__city {
	color: var(--gsg-white, #fff);
}

.gsg-event-card__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: var(--gsg-white, #fff);
}

.gsg-event-card__date,
.gsg-event-card__time {
	display: flex;
	align-items: center;
	gap: 5px;
}

.gsg-event-card__meta i {
	color: var(--gsg-white, #fff);
	background: var(--gsg-orange-bright);
	font-size: 11px;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	flex-shrink: 0;
	text-align: center;
	line-height: 1;
}

.gsg-event-card__description {
	font-size: 14px;
	line-height: 1.6;
	color: var(--gsg-white, #fff);
}

.gsg-event-card__button {
	margin-top: auto;
	display: flex;
	justify-content: flex-start;
}

.gsg-event-card__cta {
	background-color: #35CCBD;
	color: var(--gsg-white, #fff);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	border-radius: 2px 2px 2px 2px;
	padding: 11px 15px 10px 15px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.gsg-event-card__cta i {
	font-size: 11px;
}

.gsg-event-card__cta i:last-child {
	margin-left: -4px;
}

.gsg-event-card:hover .gsg-event-card__cta {
	background-color: var(--gsg-cyan-bright, #3ECFC4);
}

/* Navigation Arrows */
.gsg-carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: var(--gsg-slate-medium, #53616D);
	border: none;
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	color: var(--gsg-white, #fff);
}

.gsg-carousel-nav:hover {
	background: var(--gsg-cyan-bright, #3ECFC4);
	color: var(--gsg-primary-dark, #121316);
	transform: translateY(-50%) scale(1.1);
}

.gsg-carousel-nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.gsg-carousel-nav:disabled:hover {
	background: var(--gsg-slate-medium, #53616D);
	color: var(--gsg-white, #fff);
	transform: translateY(-50%) scale(1);
}

.gsg-carousel-prev {
	left: -25px;
}

.gsg-carousel-next {
	right: -25px;
}

.gsg-carousel-nav i {
	font-size: 20px;
}

/* Carousel Indicators */
.gsg-carousel-indicators {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 1.5rem;
}

.gsg-carousel-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--gsg-slate-medium, #53616D);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.gsg-carousel-indicator:hover {
	background: var(--gsg-slate-light, #6B7785);
}

.gsg-carousel-indicator.active {
	background: var(--gsg-cyan-bright, #3ECFC4);
	width: 32px;
	border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.gsg-carousel-slide__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
	}

	.gsg-carousel-prev {
		left: 10px;
	}

	.gsg-carousel-next {
		right: 10px;
	}
}

@media (max-width: 768px) {
	.gsg-upcoming-events-carousel {
		padding: 2rem 1rem;
	}

	.gsg-carousel-slide__grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.gsg-carousel-nav {
		display: none;
	}
}

@media (max-width: 480px) {
	.gsg-upcoming-events-carousel {
		padding: 1.5rem 0.5rem;
	}
}
