/**
 * GigPress Reborn — Front-end styles.
 *
 * @since 1.0.0
 */

/* ==========================================================================
   List template
   ========================================================================== */

.gigpress-reborn-list {
	margin: 1.5em 0;
}

.gigpress-reborn-show {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5em 1.5em;
	padding: 0.75em 0;
	border-bottom: 1px solid #e0e0e0;
}

.gigpress-reborn-show:first-child {
	border-top: 1px solid #e0e0e0;
}

.gigpress-reborn-show__date {
	flex: 0 0 auto;
	font-weight: 600;
	white-space: nowrap;
}

.gigpress-reborn-show__time {
	margin-left: 0.5em;
	font-weight: 400;
	color: #666;
}

.gigpress-reborn-show__details {
	flex: 1 1 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 0.75em;
	align-items: baseline;
}

.gigpress-reborn-show__artist {
	font-weight: 600;
}

.gigpress-reborn-show__venue a,
.gigpress-reborn-show__artist a {
	text-decoration: none;
}

.gigpress-reborn-show__venue a:hover,
.gigpress-reborn-show__artist a:hover {
	text-decoration: underline;
}

.gigpress-reborn-show__city::before {
	content: "\2014\00a0";
}

.gigpress-reborn-show__country::before {
	content: ",\00a0";
}

.gigpress-reborn-show__tour {
	color: #666;
	font-style: italic;
}

.gigpress-reborn-show__status {
	display: inline-block;
	padding: 0.1em 0.5em;
	border-radius: 3px;
	font-size: 0.85em;
	font-weight: 600;
	line-height: 1.4;
}

.gigpress-reborn-show__status--cancelled {
	background: #facfd2;
	color: #8a1116;
}

.gigpress-reborn-show__status--sold_out {
	background: #fef0c7;
	color: #93370d;
}

.gigpress-reborn-show__actions {
	flex: 0 0 auto;
	display: flex;
	gap: 0.5em;
}

/* Cancelled/sold-out show styling */
.gigpress-reborn-show--cancelled .gigpress-reborn-show__date,
.gigpress-reborn-show--cancelled .gigpress-reborn-show__details {
	opacity: 0.6;
}

.gigpress-reborn-show--cancelled .gigpress-reborn-show__artist {
	text-decoration: line-through;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.gigpress-reborn-btn {
	display: inline-block;
	padding: 0.35em 0.85em;
	border: 1px solid currentColor;
	border-radius: 3px;
	font-size: 0.85em;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.gigpress-reborn-btn:hover {
	text-decoration: none;
}

.gigpress-reborn-btn--ticket {
	background: #1d2327;
	border-color: #1d2327;
	color: #fff;
}

.gigpress-reborn-btn--ticket:hover {
	background: #3c434a;
	border-color: #3c434a;
	color: #fff;
}

.gigpress-reborn-btn--external {
	background: transparent;
	color: #1d2327;
}

.gigpress-reborn-btn--external:hover {
	background: #1d2327;
	color: #fff;
}

/* ==========================================================================
   Table template
   ========================================================================== */

.gigpress-reborn-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
}

.gigpress-reborn-table th {
	text-align: left;
	padding: 0.5em 0.75em;
	border-bottom: 2px solid #1d2327;
	font-weight: 600;
	font-size: 0.9em;
}

.gigpress-reborn-table td {
	padding: 0.5em 0.75em;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: middle;
}

.gigpress-reborn-table tbody tr:hover {
	background: #f9f9f9;
}

.gigpress-reborn-table a {
	text-decoration: none;
}

.gigpress-reborn-table a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Classic template
   ========================================================================== */

.gigpress-reborn-classic,
.gigpress-reborn-classic th,
.gigpress-reborn-classic td {
	border-collapse: collapse;
	border-style: none;
	border-width: 0;
}
.gigpress-reborn-classic {
	border-top: 1px solid #ccc;
	width: 100%;
}
.gigpress-reborn-classic th,
.gigpress-reborn-classic td {
	border-bottom: 1px solid #ccc;
	padding: 6px 8px;
}
.gigpress-reborn-classic__top-row td {
	border-bottom-color: #eee;
}
.gigpress-reborn-classic__tour-row td {
	background-color: #eee;
	font-weight: bold;
}
.gigpress-reborn-classic .gigpress-reborn-classic__divider td {
	border-top: 2px solid #ccc;
}
.gigpress-reborn-classic__row--tour td {
	background-color: #f6f6f6;
}
td.gigpress-reborn-classic__notes {
	color: #333;
	font-size: 0.9em;
}
.gigpress-reborn-classic .label {
	color: #666;
}
/* ==========================================================================
   Widget
   ========================================================================== */

.gigpress-reborn-widget {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gigpress-reborn-widget__show {
	padding: 0.5em 0;
	border-bottom: 1px solid #e0e0e0;
}

.gigpress-reborn-widget__show:last-child {
	border-bottom: none;
}

.gigpress-reborn-widget__date {
	display: block;
	font-weight: 600;
	font-size: 0.9em;
}

.gigpress-reborn-widget__time {
	margin-left: 0.4em;
	font-weight: 400;
	color: #666;
}

.gigpress-reborn-widget__artist {
	display: block;
}

.gigpress-reborn-widget__artist a {
	text-decoration: none;
}

.gigpress-reborn-widget__artist a:hover {
	text-decoration: underline;
}

.gigpress-reborn-widget__venue {
	display: block;
	font-size: 0.9em;
	color: #555;
}

.gigpress-reborn-widget__venue a {
	text-decoration: none;
	color: inherit;
}

.gigpress-reborn-widget__venue a:hover {
	text-decoration: underline;
}

.gigpress-reborn-widget__city::before {
	content: "\2014\00a0";
}

.gigpress-reborn-widget__country::before {
	content: ",\00a0";
}

.gigpress-reborn-widget__status {
	display: inline-block;
	padding: 0.1em 0.4em;
	border-radius: 3px;
	font-size: 0.8em;
	font-weight: 600;
}

.gigpress-reborn-widget__ticket {
	display: inline-block;
	margin-top: 0.25em;
	font-size: 0.85em;
	font-weight: 600;
	text-decoration: none;
}

.gigpress-reborn-widget__ticket:hover {
	text-decoration: underline;
}

.gigpress-reborn-widget__show--cancelled .gigpress-reborn-widget__artist {
	text-decoration: line-through;
	opacity: 0.6;
}

/* ==========================================================================
   No results
   ========================================================================== */

.gigpress-reborn-no-shows {
	margin: 1.5em 0;
	color: #666;
	font-style: italic;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
	.gigpress-reborn-show {
		flex-direction: column;
		gap: 0.25em;
	}

	.gigpress-reborn-show__actions {
		margin-top: 0.5em;
	}

	.gigpress-reborn-table {
		display: block;
		overflow-x: auto;
	}
}
