/*
 * Collectibles: K League "Certificate of Authenticity".
 * Loaded on single collectibles of the k-league collection only.
 */

@font-face {
	font-family: 'PP Mori';
	src: url('../fonts/PPMori-Regular.ttf') format('truetype');
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: 'PP Mori';
	src: url('../fonts/PPMori-Medium.ttf') format('truetype');
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: 'PP Mori';
	src: url('../fonts/PPMori-Bold.ttf') format('truetype');
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: 'PP Mori';
	src: url('../fonts/PPMori-ExtraBold.ttf') format('truetype');
	font-weight: 800;
	font-display: swap;
}

/* Atyp Display ships with the site (Elementor custom font). */
@font-face {
	font-family: 'Atyp Display';
	src: url('/wp-content/uploads/2024/07/AtypDisplay-Bold.ttf') format('truetype');
	font-weight: 700;
	font-display: swap;
}

body.single-collectibles-k-league {
	--collectible-accent: #ff0052;
	--collectible-line: rgba(255, 255, 255, 0.2);
	margin: 0;
	min-height: 100vh;
	color: #fff;
	font-family: 'PP Mori', sans-serif;
	background: #12002b url('../img/k-league-bg-desktop.jpg') center / cover no-repeat fixed;
}

.single-collectibles-k-league .collectible {
	box-sizing: border-box;
	max-width: 1172px;
	margin: 0 auto;
	padding: 0 16px 48px;
}

.single-collectibles-k-league .collectible *,
.single-collectibles-k-league .collectible *::before,
.single-collectibles-k-league .collectible *::after {
	box-sizing: inherit;
}

/* Header */
.single-collectibles-k-league .collectible-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 0;
	border-bottom: 1px solid var(--collectible-line);
}

.single-collectibles-k-league .collectible-header-logo {
	display: block;
	width: 300px;
	max-width: 50%;
	height: auto;
}

.single-collectibles-k-league .collectible-header-title {
	margin: 0;
	font-family: 'Atyp Display', sans-serif;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
}

/* Title */
.single-collectibles-k-league .collectible-title {
	margin: 40px 0;
	color: #fff;
	font-family: 'Atyp Display', sans-serif;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.single-collectibles-k-league .collectible-title-accent {
	color: var(--collectible-accent);
}

/* Body: media + details */
.single-collectibles-k-league .collectible-body {
	display: flex;
	align-items: center;
	gap: 16px;
}

.single-collectibles-k-league .collectible-media,
.single-collectibles-k-league .collectible-details {
	flex: 1 1 50%;
	min-width: 0;
}

.single-collectibles-k-league .collectible-media {
	text-align: center;
}

.single-collectibles-k-league .collectible-media-video,
.single-collectibles-k-league .collectible-media-image {
	width: 300px;
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

.single-collectibles-k-league .collectible-table {
	margin: 0;
	border-top: 1px solid var(--collectible-line);
}

.single-collectibles-k-league .collectible-table-row {
	display: flex;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--collectible-line);
	font-size: 14px;
	line-height: 1.2;
}

.single-collectibles-k-league .collectible-table dt {
	flex: 0 0 172px;
	font-weight: 800;
}

.single-collectibles-k-league .collectible-table dd {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex: 1 1 auto;
	margin: 0;
	font-weight: 500;
	text-align: right;
	overflow-wrap: anywhere;
}

.single-collectibles-k-league .collectible-separator {
	display: block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--collectible-accent);
}

/* Buttons */
.single-collectibles-k-league .collectible-buttons {
	display: flex;
	gap: 16px;
	margin-top: 32px;
}

.single-collectibles-k-league .collectible-button {
	flex: 1 1 0;
	padding: 20px;
	border: 1px solid var(--collectible-accent);
	border-radius: 50px;
	background: var(--collectible-accent);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.single-collectibles-k-league .collectible-button:hover,
.single-collectibles-k-league .collectible-button:focus-visible {
	background: transparent;
	color: #fff;
}

/* Flip card: mobile only */
.single-collectibles-k-league .collectible-card {
	display: none;
}

@media (max-width: 1024px) {
	body.single-collectibles-k-league {
		background-image: url('../img/k-league-bg-mobile.jpg');
		background-attachment: scroll;
	}

	.single-collectibles-k-league .collectible-header {
		flex-direction: column;
		gap: 12px;
	}

	.single-collectibles-k-league .collectible-header-logo {
		width: 200px;
		max-width: 100%;
	}

	.single-collectibles-k-league .collectible-header-title {
		font-size: 14px;
		letter-spacing: 3px;
	}

	.single-collectibles-k-league .collectible-title {
		margin: 24px 0;
		font-size: 28px;
	}

	.single-collectibles-k-league .collectible-body {
		display: block;
	}

	.single-collectibles-k-league .collectible-media,
	.single-collectibles-k-league .collectible-table {
		display: none;
	}

	.single-collectibles-k-league .collectible-card {
		display: block;
		perspective: 1000px;
		text-align: center;
	}

	.single-collectibles-k-league .collectible-card-inner {
		position: relative;
		display: inline-block;
		width: 240px;
		height: 380px;
		transform-style: preserve-3d;
		transition: transform 0.6s;
		cursor: pointer;
	}

	.single-collectibles-k-league .collectible-card-inner.is-flipped {
		transform: rotateY(180deg);
	}

	.single-collectibles-k-league .collectible-card-front,
	.single-collectibles-k-league .collectible-card-back {
		position: absolute;
		inset: 0;
		border-radius: 16px;
		backface-visibility: hidden;
		overflow: hidden;
	}

	.single-collectibles-k-league .collectible-card-front img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.single-collectibles-k-league .collectible-card-back {
		display: flex;
		flex-direction: column;
		padding: 8px;
		background: url('../img/k-league-card-back-bg.png') center / cover no-repeat;
		font-size: 12px;
		line-height: 1;
		text-align: left;
		transform: rotateY(180deg);
	}

	.single-collectibles-k-league .collectible-card-back-image {
		display: block;
		width: 100%;
		height: 170px;
		object-fit: contain;
	}

	.single-collectibles-k-league .collectible-card-back dl {
		margin: 0;
	}

	.single-collectibles-k-league .collectible-card-back dt {
		margin-bottom: 6px;
		font-weight: 800;
	}

	.single-collectibles-k-league .collectible-card-back dd {
		margin: 0;
		overflow-wrap: anywhere;
	}

	.single-collectibles-k-league .collectible-card-back-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}

	.single-collectibles-k-league .collectible-card-back-grid > div,
	.single-collectibles-k-league .collectible-card-back-contract {
		padding: 8px;
		border-top: 1px solid var(--collectible-line);
	}

	.single-collectibles-k-league .collectible-card-back-grid > div:nth-child(even) {
		border-left: 1px solid var(--collectible-line);
	}

	.single-collectibles-k-league .collectible-card-dots {
		display: flex;
		justify-content: center;
		gap: 10px;
		margin-top: 12px;
	}

	.single-collectibles-k-league .collectible-card-dot {
		width: 12px;
		height: 12px;
		padding: 0;
		border: 1px solid #fff;
		border-radius: 50%;
		background: transparent;
		cursor: pointer;
	}

	.single-collectibles-k-league .collectible-card-dot.is-active {
		background: #fff;
	}

	.single-collectibles-k-league .collectible-buttons {
		flex-direction: column;
		gap: 12px;
		margin-top: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.single-collectibles-k-league .collectible-card-inner {
		transition: none;
	}
}
