/**
 * Frontend Styles
 *
 * @package ND_Event_Ticket
 */

.ndet-event-list {
	margin: 20px 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

/* Month separator */
.ndet-event-month-separator {
	grid-column: 1 / -1;
	margin: 20px 0 10px 0;
	padding: 10px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 25px;
}

.ndet-event-month-separator::before,
.ndet-event-month-separator::after {
	content: '';
	flex: 1;
	height: 1px;
	background-color: #000;
}

.ndet-event-month-separator-text {
	font-size: 1.5rem;
	font-weight: 600;
	color: #000;
	text-transform: capitalize;
	white-space: nowrap;
}

.ndet-event-list.ndet-theme-light .ndet-event-month-separator::before,
.ndet-event-list.ndet-theme-light .ndet-event-month-separator::after {
	background-color: var(--darkestgrey, #000);
}

.ndet-event-list.ndet-theme-light .ndet-event-month-separator-text {
	color: var(--darkestgrey, #000);
}

@media (max-width: 767px) {
	.ndet-event-list {
		grid-template-columns: 1fr;
	}
}

.ndet-event-item {
	background-color: var(--darkestgrey, #000);
	color: var(--darksilver, #fff);
	display: flex;
	flex-direction: row;
	position: relative;
	min-height: 200px;
}

.ndet-event-item a {
	color: #fff;
	text-decoration: none;
}

.ndet-event-item a:hover {
	color: #fff;
	opacity: 0.8;
}

/* Date section */
.ndet-event-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	padding: 20px;
}

.ndet-event-weekday {
	font-size: .85rem;
	letter-spacing: 0.03em;
	margin-bottom: 5px;
}

.ndet-event-day {
	font-size: 2.5rem;
	line-height: 1;
	letter-spacing: 0.03em;	
	margin: 5px 0;
}

.ndet-event-month {
	font-size: 1.1rem;
	letter-spacing: 0.03em;
	margin-top: 5px;
}

/* Time section */
.ndet-event-time {
	background-color: var(--black, #000);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 40px;
	border-right: 1px solid var(--darksilver, #AAA);
	border-left: 1px solid var(--darksilver, #AAA);
	padding: 20px 5px;
	color: var(--white, #fff);
	position: relative;
}

.ndet-event-time-text {
	position: absolute;
	transform: rotate(-90deg);
	font-size: 1.1rem;
	letter-spacing: 0.1em;
	line-height: 1;
	white-space: nowrap;
}

/* Content section */
.ndet-event-content {
	padding: 15px 20px;
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.ndet-event-headnote {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin-bottom: 10px;
}

.ndet-event-type {
	letter-spacing: 0.05em;
	font-size: .9rem;
}

.ndet-event-list.ndet-theme-dark .ndet-event-type {
	color: #CCC;
}

.ndet-event-stock-text {
	color: #AAA;
	font-size: 1rem;
	margin-left: auto;
}

.ndet-event-title {
	margin-bottom: 0.5rem;
	margin-top: 0;
	letter-spacing: 0.03em;
	font-size: 1.5rem;
	line-height: 1.3;
}

.ndet-event-list.ndet-theme-dark .ndet-event-title {
	color: #fff;
}

.ndet-event-excerpt {
	font-size: 1rem;
	margin: 10px 0;
	line-height: 1.6;
}

.ndet-event-footnote {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin-top: 20px;
}

.ndet-event-link {
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	column-gap: 0.3em;
}

.ndet-event-link-icon {
	display: inline-flex;
	align-items: center;
}

.ndet-event-link-icon svg {
	width: 1.2em;
	height: 1.2em;
	fill: currentColor;
}

.ndet-event-location {
	font-size: 1rem;
	margin-left: auto;
}

/* Ticket link section */
.ndet-event-ticket-link {
	background-color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	line-height: 1;
	font-weight: 600;
	width: 60px;
	color: var(--white, #fff);
	min-width: 60px;
	border-right: 1px solid var(--darksilver, #AAA);
	border-left: 1px solid var(--darksilver, #AAA);
	padding: 20px 5px;
	position: relative;
	transition: background-color 0.2s, width 0.2s;
}

.ndet-event-ticket-link:hover,
.ndet-event-ticket-link:focus {
	background-color: #fff !important;
	color: #000 !important;
	opacity: 1 !important;
	width: 50px;
}

.ndet-event-ticket-link:hover .ndet-event-ticket-text,
.ndet-event-ticket-link:focus .ndet-event-ticket-text {
	color: #000 !important;
}

.ndet-event-ticket-text {
	position: absolute;
	transform: rotate(-90deg);
	color: inherit;
	text-wrap: nowrap;
	max-height: 50px;
}

/* Image section */
.ndet-event-image {
	position: relative;
	line-height: 0;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	object-fit: cover;
	height: 100%;
	width: 100%;
	max-width: 300px;
}

/* Light theme styles */
.ndet-event-list.ndet-theme-light .ndet-event-item {
	border: 1px solid #000;
	background-color: #fcfcfc;
	color: #000;
}

.ndet-event-list.ndet-theme-light .ndet-event-item a {
	color: #000;
}

.ndet-event-list.ndet-theme-light .ndet-event-time {
	background-color: inherit;
	color: #000;
	border-right: 1px solid #000;
	border-left: 1px solid #000;
}

.ndet-event-list.ndet-theme-light .ndet-event-time-text {
	color: #000;
}

.ndet-event-list.ndet-theme-light .ndet-event-type,
.ndet-event-list.ndet-theme-light .ndet-event-stock-text {
	color: #888;
}

.ndet-event-list.ndet-theme-light .ndet-event-ticket-link {
	background-color: inherit;
	color: #000;
	border-right: 1px solid #000;
	border-left: 1px solid #000;
}

.ndet-event-list.ndet-theme-light .ndet-event-ticket-link:hover,
.ndet-event-list.ndet-theme-light .ndet-event-ticket-link:focus {
	background-color: #000 !important;
	color: #fff !important;
	opacity: 1 !important;
}

.ndet-event-list.ndet-theme-light .ndet-event-ticket-link:hover .ndet-event-ticket-text,
.ndet-event-list.ndet-theme-light .ndet-event-ticket-link:focus .ndet-event-ticket-text {
	color: #fff !important;
}

.ndet-event-list.ndet-theme-light .ndet-event-ticket-text {
	color: #000;
}


/* Mobile styles */
@media (max-width: 767px) {
	.ndet-event-item {
		flex-direction: column;
		align-items: center;
	}
	
	.ndet-event-date {
		width: 100%;
		min-width: auto;
	}
	
	.ndet-event-time {
		border-right: 0;
		border-left: 0;
		border-bottom: 1px solid #AAA;
		border-top: 1px solid #AAA;
		width: 100%;
		height: 50px;
		padding: 10px;
	}
	
	.ndet-event-list.ndet-theme-light .ndet-event-time {
		border-bottom: 1px solid #CCC;
		border-top: 1px solid #CCC;
	}
	
	.ndet-event-time-text {
		transform: rotate(0deg);
		position: static;
	}
	
	.ndet-event-content {
		width: 100%;
	}
	
	.ndet-event-ticket-link {
		height: 50px;
		border-right: 0;
		border-left: 0;
		border-bottom: 1px solid #AAA;
		border-top: 1px solid #AAA;
		width: 100%;
	}
	
	.ndet-event-list.ndet-theme-light .ndet-event-ticket-link {
		border-bottom: 1px solid #CCC;
		border-top: 1px solid #CCC;
	}
	
	.ndet-event-ticket-link:hover,
	.ndet-event-ticket-link:focus {
		width: 100%;
	}
	
	.ndet-event-ticket-text {
		transform: rotate(0deg);
		position: static;
	}
	
	.ndet-event-image {
		min-height: 200px;
		max-width: 100%;
	}
}

/* Event details below product title */
.ndet-event-details-below-title {
	font-size: 1rem;
	margin-bottom: 20px;
}

.ndet-cart-event-details,
.woocommerce td.product-name dl.variation,
.woocommerce .woocommerce-order-details {
	font-size: .9rem !important;
}

.woocommerce td.product-name dl.variation dt {
	font-weight: 500 !important;
}

.ndet-event-details-below-title .ndet-event-start-date {
	font-weight: 500;
}

/* Event ID in product_meta */
.product_meta .ndet-event-id {
	display: block;
}

.product_meta .ndet-event-id-label {
	font-weight: normal;
}

.product_meta .ndet-event-id-value {
	color: inherit;
}

/* Hide labels in Cart and Checkout (classic templates) */
.woocommerce-cart .variation dt,
.woocommerce-checkout .variation dt {
	display: none !important;
}

.woocommerce-cart .variation dd,
.woocommerce-checkout .variation dd {
	margin-left: 0 !important;
}

/* WooCommerce Anpassungen */
.woocommerce-order-downloads a.woocommerce-MyAccount-downloads-file {
	padding: 6px 10px !important;
	font-size: 0.8rem !important;
	line-height: 1.2 !important;
}