/* Haven Core — Public CSS
   All classes prefixed with .hmg-
   No unscoped selectors. No !important unless overriding known theme conflicts.
   Compatible with Theme Family A (#primary) and Theme Family B (#primary-content). */

/* ---------------------------------------------------------------
   Editorial Labels (Advertorial Injector)
   ------------------------------------------------------------- */

.hmg-label {
	display: inline-block;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 2px;
	margin-bottom: 16px;
	line-height: 1;
}

.hmg-label--breaking  { background: #e63946; }
.hmg-label--exclusive { background: #2d6a4f; }
.hmg-label--sponsored { background: #f4a261; color: #1a1a1a; }
.hmg-label--advertorial { background: #457b9d; }

/* ---------------------------------------------------------------
   Gallery Monetizer
   ------------------------------------------------------------- */

.hmg-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px 0;
}

.hmg-gallery-item {
	flex: 1 1 200px;
	min-width: 0;
}

.hmg-gallery-img {
	width: 100%;
	height: auto;
	display: block;
}

.hmg-gallery-ad-slot {
	flex: 1 1 100%;
	min-width: 0;
}

.hmg-ad-slot-wrapper {
	background: #f9f9f9;
	border: 1px dashed #ddd;
	padding: 12px;
	text-align: center;
	min-height: 90px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.hmg-ad-label {
	display: block;
	font-size: 10px;
	color: #999;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------
   Embed Enhancer
   ------------------------------------------------------------- */

.hmg-embed-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	margin: 20px 0;
}

.hmg-embed-wrap iframe,
.hmg-embed-wrap object,
.hmg-embed-wrap embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Twitter/X embeds are not 16:9 — override */
.hmg-embed--twitter,
.hmg-embed--instagram {
	padding-bottom: 0;
	height: auto;
}

.hmg-embed--twitter iframe,
.hmg-embed--instagram iframe {
	position: static;
	width: 100%;
	height: auto;
}

/* ---------------------------------------------------------------
   Talent Profile Templates
   ------------------------------------------------------------- */

.hmg-talent-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 60px;
	font-family: 'Inter', 'Roboto', -apple-system, sans-serif;
	color: #1a1a1a;
}

/* Hero */
.hmg-talent-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding: 40px 0 32px;
	border-bottom: 3px solid var(--hmg-accent, #1a1a1a);
	align-items: center;
}

@media (max-width: 768px) {
	.hmg-talent-hero { grid-template-columns: 1fr; }
}

.hmg-talent-hero__text {}

.hmg-talent-hero__kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--hmg-accent, #1a1a1a);
	margin: 0 0 10px;
}

.hmg-talent-hero__name {
	font-size: clamp(40px, 7vw, 72px);
	font-weight: 900;
	line-height: 1;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.hmg-talent-hero__tagline {
	font-size: 16px;
	color: #555;
	margin: 0 0 20px;
}

.hmg-talent-hero__accent-bar {
	width: 60px;
	height: 4px;
	background: var(--hmg-accent, #1a1a1a);
}

.hmg-talent-hero__image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

/* Quick Bio Card */
.hmg-bio-card {
	background: #f8f8f8;
	border-left: 4px solid var(--hmg-accent, #1a1a1a);
	padding: 24px;
	margin: 32px 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.hmg-bio-card__field {}

.hmg-bio-card__label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #888;
	margin: 0 0 4px;
}

.hmg-bio-card__value {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0;
}

/* Video Section */
.hmg-video-section {
	margin: 32px 0;
}

.hmg-section-heading {
	font-size: 22px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-left: 4px solid var(--hmg-accent, #1a1a1a);
	padding-left: 12px;
}

/* Stats Snapshot */
.hmg-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
	margin: 16px 0 32px;
}

.hmg-stat-card {
	background: #f8f8f8;
	border: 1px solid #e8e8e8;
	border-top: 3px solid var(--hmg-accent, #1a1a1a);
	padding: 16px 20px;
	text-align: center;
}

.hmg-stat-card__value {
	display: block;
	font-size: 28px;
	font-weight: 900;
	color: var(--hmg-accent, #1a1a1a);
	line-height: 1;
}

.hmg-stat-card__label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #666;
	margin-top: 6px;
}

/* Ad Slot — Profile Pages */
.hmg-profile-ad {
	background: #f9f9f9;
	border: 1px dashed #ccc;
	padding: 20px;
	text-align: center;
	margin: 24px 0;
}

.hmg-profile-ad__label {
	display: block;
	font-size: 10px;
	color: #aaa;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 10px;
}

/* Latest Coverage */
.hmg-coverage-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin: 16px 0 32px;
}

.hmg-coverage-card {
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.hmg-coverage-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.hmg-coverage-card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.hmg-coverage-card__body {
	padding: 14px 16px;
}

.hmg-coverage-card__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
}

.hmg-coverage-card__title a {
	color: #1a1a1a;
	text-decoration: none;
}

.hmg-coverage-card__title a:hover {
	color: var(--hmg-accent, #555);
}

.hmg-coverage-card__excerpt {
	font-size: 13px;
	color: #666;
	margin: 0 0 8px;
}

.hmg-coverage-card__date {
	font-size: 11px;
	color: #aaa;
}

.hmg-coverage-empty {
	background: #f8f8f8;
	padding: 30px;
	text-align: center;
	color: #888;
	font-size: 14px;
	border-radius: 4px;
}

/* Related Talent */
.hmg-related-talent {
	margin: 32px 0;
}

.hmg-related-talent__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hmg-related-talent__list li a {
	display: inline-block;
	padding: 8px 16px;
	background: #f8f8f8;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	text-decoration: none;
	transition: background 0.2s ease;
}

.hmg-related-talent__list li a:hover {
	background: var(--hmg-accent, #1a1a1a);
	color: #fff;
	border-color: var(--hmg-accent, #1a1a1a);
}
