/* Webup Event Booking - Frontend Styles */

/* Container - follows theme content width */
.wueb-container {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* Single Event Wrapper */
.wueb-single-event-wrapper {
	padding-top: 40px;
	padding-bottom: 60px;
}

.wueb-event-header {
	margin-bottom: 30px;
}

.wueb-event-header h1 {
	margin: 0;
	font-size: 32px;
	line-height: 1.3;
}

/* Event Grid */
.wueb-events-grid {
	display: grid;
	gap: 30px;
}

.wueb-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

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

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

@media (max-width: 768px) {
	.wueb-events-grid {
		grid-template-columns: 1fr;
	}
}

/* Event Card */
.wueb-event-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
}

.wueb-event-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.wueb-event-image {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
}

.wueb-event-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wueb-availability-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: bold;
}

.wueb-availability-low {
	background: #ffc107;
	color: #000;
}

.wueb-availability-full {
	background: #dc3545;
	color: #fff;
}

.wueb-event-content {
	padding: 20px;
}

.wueb-event-title {
	margin: 0 0 15px 0;
	font-size: 18px;
}

.wueb-event-title a {
	color: inherit;
	text-decoration: none;
}

.wueb-event-title a:hover {
	color: #0073aa;
}

.wueb-event-date,
.wueb-event-location {
	font-size: 14px;
	color: #666;
	margin-bottom: 8px;
}

.wueb-more-dates {
	color: #999;
	font-size: 12px;
}

.wueb-event-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.wueb-event-price {
	font-size: 20px;
	font-weight: bold;
	color: #333;
}

.wueb-event-price small {
	display: block;
	font-size: 11px;
	font-weight: normal;
	color: #999;
}

/* Buttons */
.wueb-btn {
	display: inline-block;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.3s;
}

.wueb-btn-primary {
	background: #0073aa;
	color: #fff;
}

.wueb-btn-primary:hover {
	background: #005177;
	color: #fff;
}

.wueb-btn-secondary {
	background: #f0f0f0;
	color: #333;
}

.wueb-btn-secondary:hover {
	background: #ddd;
}

.wueb-btn-waitlist {
	background: #ffc107;
	color: #000;
}

/* Single Event */
.wueb-single-event {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 40px;
}

@media (max-width: 900px) {
	.wueb-single-event {
		grid-template-columns: 1fr;
	}
}

.wueb-event-main {
	min-width: 0;
}

.wueb-event-gallery {
	margin-bottom: 30px;
}

/* Gallery with thumbs - horizontal layout */
.wueb-event-gallery.has-thumbs {
	display: flex;
	gap: 10px;
}

.wueb-event-gallery.has-thumbs .wueb-gallery-main {
	flex: 1;
	min-width: 0;
	aspect-ratio: 2/1;
}

.wueb-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

/* Single image without thumbs */
.wueb-event-gallery:not(.has-thumbs) .wueb-gallery-main {
	aspect-ratio: 2/1;
}

.wueb-gallery-thumbs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
}

.wueb-gallery-thumb {
	aspect-ratio: 1/1;
	width: 80px;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.3s, border-color 0.3s;
	border: 2px solid transparent;
}

.wueb-gallery-thumb:hover,
.wueb-gallery-thumb.active {
	opacity: 1;
	border-color: #0073aa;
}

.wueb-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
	.wueb-event-gallery.has-thumbs {
		flex-direction: column;
	}

	.wueb-gallery-thumbs {
		flex-direction: row;
		width: 100%;
		overflow-x: auto;
	}

	.wueb-gallery-thumb {
		width: 70px;
		height: 70px;
		flex: 0 0 auto;
	}
}

.wueb-event-description {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	margin-top: 20px;
}

.wueb-event-extra-info {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	margin-top: 20px;
}

.wueb-event-extra-info h3 {
	margin-top: 0;
}

.wueb-event-extra-info dl {
	margin: 0;
}

.wueb-event-extra-info dt {
	font-weight: bold;
	margin-top: 10px;
}

.wueb-event-extra-info dd {
	margin: 5px 0 0 0;
}

/* Booking Box */
.wueb-booking-box {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 25px;
	position: sticky;
	top: 30px;
}

.wueb-availability {
	text-align: center;
	padding: 10px;
	border-radius: 5px;
	margin-bottom: 20px;
	font-weight: bold;
}

.wueb-availability-available {
	background: #d4edda;
	color: #155724;
}

.wueb-availability-low {
	background: #fff3cd;
	color: #856404;
}

.wueb-availability-full {
	background: #f8d7da;
	color: #721c24;
}

.wueb-price-display {
	text-align: center;
	margin-bottom: 20px;
}

.wueb-price-amount {
	font-size: 32px;
	font-weight: bold;
	display: block;
}

.wueb-price-vat,
.wueb-price-note {
	font-size: 12px;
	color: #666;
}

.wueb-event-dates-list {
	margin-bottom: 20px;
}

.wueb-event-dates-list h4 {
	margin-bottom: 10px;
}

.wueb-event-dates-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.wueb-event-dates-list li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.wueb-event-dates-list .wueb-time {
	display: block;
	font-size: 13px;
	color: #666;
}

.wueb-event-location-box {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
}

.wueb-event-location-box h4 {
	margin-bottom: 5px;
}

/* Checkout Form */
.wueb-checkout-form-wrapper {
	margin-top: 20px;
}

/* Quantity Selector */
.wueb-quantity-select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
	background: #fff;
}

.wueb-quantity-select:focus {
	border-color: #0073aa;
	outline: none;
}

/* Participants */
.wueb-participants-wrapper {
	margin-bottom: 20px;
}

.wueb-participant {
	background: #f9f9f9;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 15px;
}

.wueb-participant-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ddd;
}

.wueb-participant-title {
	margin: 0;
	font-size: 14px;
	font-weight: bold;
	color: #333;
}

.wueb-remove-participant {
	background: none;
	border: none;
	color: #999;
	font-size: 20px;
	cursor: pointer;
	padding: 0 5px;
	line-height: 1;
	transition: color 0.2s;
}

.wueb-remove-participant:hover {
	color: #dc3545;
}

.wueb-additional-participant {
	background: #fff;
	border: 1px solid #ddd;
}

.wueb-add-participant {
	width: 100%;
	margin-top: 10px;
	text-align: center;
}

.wueb-checkout-form .wueb-form-field {
	margin-bottom: 15px;
}

.wueb-checkout-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	font-size: 14px;
}

.wueb-checkout-form input[type="text"],
.wueb-checkout-form input[type="email"],
.wueb-checkout-form input[type="tel"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
}

.wueb-checkout-form input:focus {
	border-color: #0073aa;
	outline: none;
}

.wueb-form-addons {
	margin-bottom: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 5px;
}

.wueb-form-addons h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
}

.wueb-addon-option {
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.wueb-addon-option:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.wueb-addon-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.wueb-addon-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: normal;
	cursor: pointer;
	flex: 1;
}

.wueb-addon-name {
	font-weight: 500;
}

.wueb-addon-price {
	color: #666;
	font-size: 13px;
}

.wueb-addon-quantity {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wueb-addon-quantity label {
	font-size: 13px;
	font-weight: normal;
	margin: 0;
}

.wueb-addon-qty-select {
	width: 60px;
	padding: 5px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.wueb-addon-comment {
	margin-top: 10px;
	margin-left: 22px;
}

.wueb-addon-comment input {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13px;
}

.wueb-form-total {
	padding: 15px;
	background: #f0f0f0;
	border-radius: 5px;
	margin-bottom: 20px;
	text-align: center;
}

.wueb-total-label {
	font-weight: bold;
}

.wueb-total-amount {
	font-size: 24px;
	font-weight: bold;
	display: block;
	margin: 5px 0;
}

.wueb-vat-note {
	font-size: 12px;
	color: #666;
}

.wueb-checkout-form .wueb-btn {
	width: 100%;
	padding: 15px;
	font-size: 16px;
}

.wueb-form-message {
	margin-top: 15px;
	padding: 10px;
	border-radius: 5px;
}

.wueb-form-message.success {
	background: #d4edda;
	color: #155724;
}

.wueb-form-message.error {
	background: #f8d7da;
	color: #721c24;
}

/* Calendar */
.wueb-calendar-wrapper {
	max-width: 100%;
}

.wueb-calendar {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.wueb-calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: #0073aa;
	color: #fff;
}

.wueb-calendar-title {
	margin: 0;
	font-size: 20px;
}

.wueb-calendar-nav {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	padding: 5px 15px;
	opacity: 0.8;
	transition: opacity 0.3s;
}

.wueb-calendar-nav:hover {
	opacity: 1;
}

.wueb-calendar-grid {
	padding: 20px;
}

.wueb-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
	margin-bottom: 10px;
}

.wueb-weekday {
	text-align: center;
	font-weight: bold;
	font-size: 12px;
	color: #666;
	padding: 10px 5px;
}

.wueb-weekday.wueb-weekend {
	color: #999;
}

.wueb-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.wueb-day {
	min-height: 80px;
	padding: 5px;
	border: 1px solid #eee;
	border-radius: 4px;
	background: #fff;
}

.wueb-day-empty {
	background: #f9f9f9;
	border-color: transparent;
}

.wueb-day-number {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
}

.wueb-day-today {
	border-color: #0073aa;
	background: #f0f8ff;
}

.wueb-day-today .wueb-day-number {
	color: #0073aa;
}

.wueb-day-past {
	opacity: 0.5;
}

.wueb-day-weekend {
	background: #fafafa;
}

.wueb-day-has-events {
	cursor: pointer;
}

.wueb-day-has-events:hover {
	background: #f0f0f0;
}

.wueb-day-events {
	font-size: 11px;
}

.wueb-day-event {
	padding: 2px 5px;
	margin-bottom: 2px;
	border-radius: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}

.wueb-day-event.wueb-availability-available {
	background: #d4edda;
	color: #155724;
}

.wueb-day-event.wueb-availability-low {
	background: #fff3cd;
	color: #856404;
}

.wueb-day-event.wueb-availability-full {
	background: #f8d7da;
	color: #721c24;
}

.wueb-calendar-legend {
	display: flex;
	justify-content: center;
	gap: 20px;
	padding: 15px;
	border-top: 1px solid #eee;
}

.wueb-legend-item {
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 3px;
}

/* Modal */
.wueb-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wueb-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
}

.wueb-modal-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
}

.wueb-modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
}

.wueb-modal-close:hover {
	color: #333;
}

.wueb-modal-body {
	padding: 30px;
}

/* Event Preview */
.wueb-event-preview {
	text-align: center;
}

.wueb-preview-image {
	margin-bottom: 20px;
}

.wueb-preview-image img {
	max-width: 100%;
	border-radius: 8px;
}

.wueb-preview-title {
	margin: 0 0 15px 0;
}

.wueb-preview-availability {
	display: inline-block;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 13px;
	margin-bottom: 15px;
}

.wueb-preview-meta {
	text-align: left;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 5px;
	margin-bottom: 15px;
}

.wueb-preview-meta > div {
	margin-bottom: 10px;
}

.wueb-preview-excerpt {
	text-align: left;
	margin-bottom: 20px;
	color: #666;
}

/* No Events */
.wueb-no-events {
	text-align: center;
	padding: 40px;
	color: #666;
}
