/**
 * Taxonomy Header Styles
 *
 * Styles for musicartist and musiclabel archive pages.
 * Design v4: Premium card layout with refined typography and interactions
 */

/* Main container */
.yoyaku-taxonomy-header {
	margin-bottom: 40px;
	padding: 0;
}

/* Center header on chart view pages (matches chart content max-width) */
body.yoyaku-chart-view .yoyaku-taxonomy-header {
	padding: 0 24px;
	max-width: 908px;
	margin-left: auto;
	margin-right: auto;
}

/* Card layout with subtle background */
.taxonomy-header-content {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 28px;
	padding: 24px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
}

/* Header badges — top-right corner of artist header card */
.taxonomy-header-badges {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 2;
}

.taxonomy-header-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: 'Spline Sans Mono', monospace;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 4px;
	text-decoration: none;
	transition: opacity 0.2s;
}

.taxonomy-header-badge:hover {
	opacity: 0.85;
	text-decoration: none;
}

.badge-session {
	background: #E53935;
	color: #fff;
}

.badge-charts {
	background: #FF8C00;
	color: #fff;
}

.taxonomy-header-badge svg {
	flex-shrink: 0;
}

/* Left side: image with hover effect */
.taxonomy-header-image {
	flex-shrink: 0;
}

.taxonomy-image-wrapper {
	position: relative;
	width: 160px;
	height: 160px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.taxonomy-image-wrapper:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.taxonomy-image-wrapper .taxonomy-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.taxonomy-image-wrapper:hover .taxonomy-image {
	transform: scale(1.05);
}

/* Right side: info block */
.taxonomy-header-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Top row: title + country */
.taxonomy-header-top {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

/* Artist/Label name as main title */
.taxonomy-title {
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	margin: 0;
	padding: 0;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* Country tag - pill style */
.taxonomy-country {
	display: inline-flex;
	align-items: center;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: rgba(255, 255, 255, 0.9);
	padding: 5px 12px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
}

/* Real name (aka) - elegant italic */
.taxonomy-real-name {
	font-size: 15px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.5);
	font-style: italic;
	margin-top: -4px;
}

/* Profile/bio text */
.taxonomy-profile {
	font-size: 14px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.8);
	max-width: 600px;
	margin-top: 4px;
}

.taxonomy-profile .profile-content {
	position: relative;
}

.taxonomy-profile p {
	margin: 0 0 8px 0;
}

.taxonomy-profile p:last-child {
	margin-bottom: 0;
}

/* Truncated profile with gradient fade */
.taxonomy-profile.is-truncated .profile-content {
	max-height: 5.25em; /* ~3 lines at 1.75 line-height */
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
	mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* Expanded state */
.taxonomy-profile.is-truncated.is-expanded .profile-content {
	max-height: none;
	-webkit-mask-image: none;
	mask-image: none;
}

/* Read more button */
.taxonomy-profile .profile-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	padding: 0;
	background: none;
	border: none;
	color: var(--theme-palette-color-1, #febc2c);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.taxonomy-profile .profile-toggle:hover {
	opacity: 0.8;
}

.taxonomy-profile .profile-toggle .toggle-less {
	display: none;
}

.taxonomy-profile.is-expanded .profile-toggle .toggle-more {
	display: none;
}

.taxonomy-profile.is-expanded .profile-toggle .toggle-less {
	display: inline;
}

/* Discogs markup links (labels, artists) */
.taxonomy-profile a.discogs-label-link,
.taxonomy-profile a.discogs-artist-link {
	color: var(--theme-palette-color-1, #febc2c);
	text-decoration: none;
	border-bottom: 1px dotted rgba(254, 188, 44, 0.4);
	transition: all 0.2s ease;
}

.taxonomy-profile a.discogs-label-link:hover,
.taxonomy-profile a.discogs-artist-link:hover {
	border-bottom-color: var(--theme-palette-color-1, #febc2c);
	border-bottom-style: solid;
}

/* Aliases (Also known as) - refined style */
.taxonomy-aliases {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
	margin-top: 4px;
}

.taxonomy-aliases .aliases-label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.4);
	padding: 2px 6px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 3px;
}

.taxonomy-aliases .aliases-list {
	color: rgba(255, 255, 255, 0.55);
	font-style: italic;
}

/* Social links row - refined buttons */
.taxonomy-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.taxonomy-social-links .social-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.25s ease;
}

.taxonomy-social-links .social-link:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.taxonomy-social-links .social-link svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.taxonomy-social-links .social-label {
	display: inline;
}

/* Platform-specific hover colors */
.taxonomy-social-links .social-link-discogs:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
}

.taxonomy-social-links .social-link-instagram:hover {
	color: #E4405F;
	border-color: rgba(228, 64, 95, 0.4);
}

.taxonomy-social-links .social-link-soundcloud:hover {
	color: #FF5500;
	border-color: rgba(255, 85, 0, 0.4);
}

.taxonomy-social-links .social-link-spotify:hover {
	color: #1DB954;
	border-color: rgba(29, 185, 84, 0.4);
}

.taxonomy-social-links .social-link-youtube:hover {
	color: #FF0000;
	border-color: rgba(255, 0, 0, 0.4);
}

.taxonomy-social-links .social-link-website:hover {
	color: var(--theme-palette-color-1, #febc2c);
	border-color: rgba(254, 188, 44, 0.4);
}

.taxonomy-social-links .social-link-charts {
	color: #FF8C00;
	background: rgba(255, 140, 0, 0.08);
	border-color: rgba(255, 140, 0, 0.25);
	font-weight: 700;
}

.taxonomy-social-links .social-link-charts:hover {
	color: #FFB347;
	background: rgba(255, 140, 0, 0.15);
	border-color: rgba(255, 140, 0, 0.5);
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
	.taxonomy-header-content {
		flex-direction: column;
		gap: 20px;
		padding: 20px;
	}

	.taxonomy-image-wrapper {
		width: 120px;
		height: 120px;
	}

	.taxonomy-title {
		font-size: 24px;
	}

	.taxonomy-profile {
		max-width: 100%;
		font-size: 13px;
	}

	.taxonomy-social-links .social-label {
		display: none;
	}

	.taxonomy-social-links .social-link {
		padding: 10px;
		border-radius: 50%;
	}

	.taxonomy-social-links .social-link svg {
		width: 18px;
		height: 18px;
	}
}

/* Hide default WooCommerce archive title since we have our own */
.has-enriched-header .woocommerce-products-header__title {
	display: none;
}

/* Hide Blocksy hero page title ONLY when enriched header is present */
.has-enriched-header .hero-section {
	display: none;
}
