/**
 * Podwires Marketplace — Member Profile Page Styles
 * Unicorn Factory-inspired dark hero + light content sections.
 *
 * Classes prefixed .mp- (member profile)
 *
 * @package AktorTheme
 */

/* ===========================================
   PAGE WRAPPER
   =========================================== */
.mp-page {
	padding-top: var(--nav-height);
}

/* ===========================================
   HERO SECTION — dark banner
   =========================================== */
.mp-hero {
	position: relative;
	background: #0d0f14;
	overflow: hidden;
	padding: 60px 0 0;
}

.mp-hero__bg-blur {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center top;
	filter: blur(40px) saturate(0.4);
	opacity: 0.18;
	transform: scale(1.1);
}

.mp-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(13, 15, 20, 0.75) 0%,
		rgba(13, 15, 20, 0.95) 70%,
		#0d0f14 100%
	);
}

.mp-hero__inner {
	position: relative;
	z-index: 2;
}

.mp-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(255,255,255,0.55);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 500;
	margin-bottom: 36px;
	transition: color 0.15s;
}
.mp-back-btn:hover { color: #fff; }

.mp-hero__layout {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 36px;
	align-items: flex-end;
	padding-bottom: 48px;
}

/* Portrait */
.mp-hero__portrait-wrap {
	position: relative;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mp-hero__portrait {
	width: 180px;
	height: 240px;
	object-fit: cover;
	border-radius: 14px;
	border: 3px solid rgba(255,255,255,0.12);
	display: block;
}

.mp-hero__portrait--placeholder {
	width: 180px;
	height: 240px;
	border-radius: 14px;
	background: rgba(255,255,255,0.08);
	border: 3px solid rgba(255,255,255,0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	color: rgba(255,255,255,0.25);
}

/* Portrait frame — positions tier + availability badges as absolute overlays */
.mp-hero__portrait-frame {
	position: relative;
	display: inline-block;
	line-height: 0; /* remove ghost space under inline-block img */
}

/* Availability badge */
.mp-availability {
	position: absolute;
	bottom: 8px;
	right: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 99px;
	font-size: 0.72rem;
	font-weight: 700;
	white-space: nowrap;
	backdrop-filter: blur(8px);
}
.mp-availability__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex-shrink: 0;
}
.mp-availability--available {
	background: rgba(16, 185, 129, 0.25);
	color: #6ee7b7;
	border: 1px solid rgba(16, 185, 129, 0.35);
}
.mp-availability--available .mp-availability__dot { background: #10b981; }
.mp-availability--busy {
	background: rgba(245, 158, 11, 0.22);
	color: #fde68a;
	border: 1px solid rgba(245, 158, 11, 0.3);
}
.mp-availability--busy .mp-availability__dot { background: #f59e0b; }

/* Tier badge — overlaid top-right of portrait photo */
.mp-tier-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 99px;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	white-space: nowrap;
	backdrop-filter: blur(8px);
	line-height: 1;
}
.mp-tier-badge--unverified {
	background: rgba(107, 114, 128, 0.3);
	color: #e5e7eb;
	border: 1px solid rgba(156, 163, 175, 0.4);
}
.mp-tier-badge--verified {
	background: rgba(59, 130, 246, 0.28);
	color: #93c5fd;
	border: 1px solid rgba(59, 130, 246, 0.45);
}
.mp-tier-badge--pro {
	background: rgba(139, 92, 246, 0.28);
	color: #c4b5fd;
	border: 1px solid rgba(139, 92, 246, 0.45);
}
.mp-tier-badge--featured {
	background: rgba(245, 158, 11, 0.28);
	color: #fde68a;
	border: 1px solid rgba(245, 158, 11, 0.45);
}

/* Info block */
.mp-hero__info { padding-bottom: 4px; }

.mp-hero__type-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-accent, #4f46e5);
	margin: 0 0 10px;
}

.mp-hero__name {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 900;
	letter-spacing: -0.03em;
	color: #fff;
	margin: 0 0 8px;
	line-height: 1.1;
}

.mp-hero__tagline {
	font-size: 1.0625rem;
	color: rgba(255,255,255,0.65);
	margin: 0 0 18px;
	line-height: 1.5;
}

.mp-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-bottom: 20px;
}

.mp-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	color: rgba(255,255,255,0.88);
}
.mp-hero__meta-item .fas { color: rgba(255,255,255,0.6); font-size: 0.8rem; }

.mp-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border-radius: 99px;
	font-size: 0.72rem;
	font-weight: 700;
}
.mp-hero__badge--gold       { background: rgba(245,158,11,0.2);  color: #fde68a; border: 1px solid rgba(245,158,11,0.3); }
.mp-hero__badge--silver     { background: rgba(148,163,184,0.2); color: #cbd5e1; border: 1px solid rgba(148,163,184,0.25); }
.mp-hero__badge--bronze     { background: rgba(180,107,66,0.2);  color: #fca47a; border: 1px solid rgba(180,107,66,0.3); }
/* ID Verification badges */
.mp-hero__badge--id-verified { background: rgba(16,185,129,0.2);  color: #6ee7b7; border: 1px solid rgba(16,185,129,0.35); }
.mp-hero__badge--id-pending  { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); opacity: 0.9; }

/* Socials */
.mp-hero__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mp-social-link {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.65);
	text-decoration: none;
	font-size: 0.8125rem;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.mp-social-link:hover {
	background: var(--color-accent, #4f46e5);
	border-color: var(--color-accent, #4f46e5);
	color: #fff;
}

/* Tab nav bar (sticky at bottom of hero) */
.mp-tab-nav {
	display: flex;
	gap: 0;
	border-top: 1px solid rgba(255,255,255,0.1);
	position: relative;
	z-index: 2;
}
.mp-tab-link {
	padding: 14px 22px;
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(255,255,255,0.5);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color 0.15s, border-color 0.15s;
	white-space: nowrap;
}
.mp-tab-link:hover { color: rgba(255,255,255,0.85); }
.mp-tab-link--active {
	color: #fff;
	border-bottom-color: var(--color-accent, #4f46e5);
}

/* ===========================================
   CONTENT SECTIONS
   =========================================== */
.mp-section {
	padding: 64px 0;
}
.mp-section--alt {
	background: var(--color-surface, #f4f4f8);
}

.mp-section__inner {
	max-width: 820px;
}
.mp-section__inner--narrow {
	max-width: 640px;
}

.mp-section__title {
	font-size: clamp(1.25rem, 3vw, 1.875rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--color-text, #111);
	margin: 0 0 8px;
}

.mp-section__subtitle {
	font-size: 0.9375rem;
	color: var(--color-text-muted, #6b6b80);
	margin: 0 0 32px;
}

/* About section */
.mp-about__body {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--color-text, #111);
}
.mp-about__empty { color: var(--color-text-muted); font-style: italic; }

/* ===========================================
   SERVICES / SKILLS TAGS
   =========================================== */
.mp-skills-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mp-skill-tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 18px;
	background: #fff;
	border: 1.5px solid var(--color-border, #e2e2ec);
	border-radius: 99px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text, #111);
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.mp-skill-tag .fas {
	font-size: 0.75rem;
	color: var(--color-accent, #4f46e5);
}
.mp-skill-tag:hover {
	background: var(--color-accent, #4f46e5);
	border-color: var(--color-accent, #4f46e5);
	color: #fff;
	transform: translateY(-1px);
}
.mp-skill-tag:hover .fas { color: #fff; }

/* ===========================================
   PORTFOLIO GRID
   =========================================== */
.mp-portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.mp-project-card {
	background: #fff;
	border: 1px solid var(--color-border, #e2e2ec);
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
}
.mp-project-card:hover {
	box-shadow: 0 8px 32px rgba(0,0,0,0.1);
	transform: translateY(-3px);
}

.mp-project-card__thumb-link { display: block; text-decoration: none; }

.mp-project-card__thumb {
	width: 100%;
	height: 200px;
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
}

.mp-project-card__thumb--placeholder {
	height: 200px;
	background: var(--color-surface, #f4f4f8);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	color: var(--color-text-muted, #6b6b80);
}

.mp-project-card__embed { overflow: hidden; max-height: 200px; }

.mp-project-card__hover-overlay {
	position: absolute;
	inset: 0;
	background: rgba(79, 70, 229, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s;
	color: #fff;
	font-size: 1.5rem;
}
.mp-project-card:hover .mp-project-card__hover-overlay { opacity: 1; }

.mp-project-card__body { padding: 18px 20px 20px; }

.mp-project-card__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 8px;
}
.mp-project-card__cat {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--color-accent, #4f46e5);
	background: rgba(79,70,229,0.08);
	padding: 2px 8px;
	border-radius: 4px;
}

.mp-project-card__title {
	font-size: 0.9375rem;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.35;
}
.mp-project-card__title a { color: var(--color-text); text-decoration: none; }
.mp-project-card__title a:hover { color: var(--color-accent); }

.mp-project-card__tagline {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin: 0 0 12px;
	line-height: 1.5;
}

.mp-project-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}
.mp-project-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.78rem;
	color: var(--color-text-muted);
}
.mp-project-card__listen {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--color-accent);
	text-decoration: none;
}
.mp-project-card__listen:hover { text-decoration: underline; }

/* ===========================================
   CONTACT FORM
   =========================================== */
.mp-contact-form { display: flex; flex-direction: column; gap: 18px; }

.mp-form-group { display: flex; flex-direction: column; gap: 6px; }

.mp-form-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-text);
}

.mp-form-textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1.5px solid var(--color-border);
	border-radius: 10px;
	font-size: 0.9375rem;
	color: var(--color-text);
	background: var(--color-bg-card, #fff);
	resize: vertical;
	min-height: 140px;
	transition: border-color 0.15s;
	font-family: inherit;
}
.mp-form-textarea:focus { outline: none; border-color: var(--color-accent); }

.mp-form-counter {
	font-size: 0.75rem;
	color: var(--color-text-muted);
	margin: 0;
	text-align: right;
}

.mp-contact-btn { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

.mp-form-msg {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 0.875rem;
}
.mp-form-msg--success { background: #d1fae5; color: #065f46; }
.mp-form-msg--error   { background: #fee2e2; color: #991b1b; }

/* ===========================================
   GUEST CTA
   =========================================== */
.mp-guest-cta {
	text-align: center;
	padding: 20px 0;
}
.mp-guest-cta__icon-wrap {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(79, 70, 229, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.875rem;
	color: var(--color-accent);
	margin: 0 auto 20px;
}
.mp-guest-cta__title {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 10px;
}
.mp-guest-cta__desc {
	font-size: 0.9375rem;
	color: var(--color-text-muted);
	max-width: 460px;
	margin: 0 auto 28px;
	line-height: 1.6;
}
.mp-guest-cta__actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}
.btn-outline--light {
	background: transparent;
	color: var(--color-text);
	border: 1.5px solid var(--color-border);
}
.btn-outline--light:hover {
	background: var(--color-bg-alt);
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
	.mp-hero__layout {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		padding-bottom: 36px;
		gap: 24px;
	}
	.mp-hero__portrait { width: 140px; height: 188px; }
	.mp-hero__portrait--placeholder { width: 140px; height: 188px; }
	.mp-hero__meta { justify-content: center; }
	.mp-hero__socials { justify-content: center; }
	.mp-tab-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.mp-tab-link { padding: 12px 16px; font-size: 0.8125rem; }
	.mp-section { padding: 44px 0; }
	.mp-portfolio-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
	.mp-back-btn { margin-bottom: 20px; }
}

@media (max-width: 540px) {
	.mp-hero { padding: 40px 0 0; }
	.mp-portfolio-grid { grid-template-columns: 1fr; }
	.mp-hero__portrait { width: 120px; height: 160px; }
	.mp-hero__portrait--placeholder { width: 120px; height: 160px; }
	.mp-guest-cta__actions { flex-direction: column; align-items: center; }
	.mp-contact-btn { font-size: 0.9375rem; }
}
