/* =========================================================
   Marketplace Hub Theme — Teal + Neon Purple on Black
   ========================================================= */

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--mph-black);
	color: var(--mph-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--mph-teal-bright); }
h1, h2, h3, h4 { color: #fff; line-height: 1.25; }
input, select, textarea { font-family: inherit; }

/* ---------------- Header ---------------- */
.mph-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11, 15, 17, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--mph-border);
}
.mph-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	height: var(--mph-header-h);
	display: flex;
	align-items: center;
	gap: 20px;
}
.mph-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex-shrink: 0;
}
.mph-logo-mark {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--mph-teal-bright), var(--mph-purple));
	color: #03110f;
	font-weight: 800;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 18px rgba(176, 38, 255, 0.45), 0 0 18px rgba(35, 167, 154, 0.35);
}
.mph-logo-text { color: #fff; font-weight: 700; font-size: 17px; }
.mph-logo img.custom-logo {
	max-height: 40px;
	width: auto;
	display: block;
	border-radius: 6px;
}

.mph-header-search {
	flex: 1;
	display: flex;
	max-width: 560px;
	margin: 0 auto;
}
.mph-header-search input {
	flex: 1;
	padding: 10px 16px;
	border: 1px solid var(--mph-border);
	border-radius: 10px 0 0 10px;
	background: var(--mph-surface);
	color: var(--mph-text);
	font-size: 14px;
	outline: none;
}
.mph-header-search input:focus { border-color: var(--mph-teal); }
.mph-header-search button {
	padding: 10px 18px;
	border: none;
	border-radius: 0 10px 10px 0;
	background: linear-gradient(135deg, var(--mph-teal-bright), var(--mph-purple));
	color: #03110f;
	font-weight: 700;
	cursor: pointer;
}

.mph-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mph-header-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--mph-text);
	font-size: 14px;
	position: relative;
	transition: background .15s ease;
}
.mph-header-link:hover { background: var(--mph-surface-2); color: var(--mph-teal-bright); }
.mph-hlink-icon { display: inline-flex; align-items: center; }
.mph-hlink-icon img { border-radius: 50%; width: 24px; height: 24px; }
.mph-unread-badge-nav {
	background: var(--mph-teal);
	color: #03110f;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	padding: 1px 8px;
	margin-left: 2px;
}
.mph-sell-btn { margin-left: 8px; }

.mph-nav-toggle { display: none; background: none; border: 1px solid var(--mph-border); color: var(--mph-text); border-radius: 8px; padding: 6px 12px; font-size: 18px; cursor: pointer; }

.mph-nav { border-top: 1px solid var(--mph-border); background: var(--mph-surface); }
.mph-nav-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}
.mph-nav-link {
	padding: 12px 14px;
	color: var(--mph-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 2px solid transparent;
}
.mph-nav-link:hover { color: var(--mph-purple-bright); border-bottom-color: var(--mph-purple); }
.mph-nav-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.mph-nav-menu li a {
	display: block;
	padding: 12px 14px;
	color: var(--mph-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 2px solid transparent;
}
.mph-nav-menu li a:hover { color: var(--mph-purple-bright); border-bottom-color: var(--mph-purple); }

/* ---------------- Content shell ---------------- */
.mph-content { min-height: 60vh; }
.mph-content-wrap { max-width: 1280px; margin: 0 auto; padding: 28px 24px; }

/* ---------------- Hero / front page ---------------- */
.mph-hero {
	background:
		radial-gradient(1000px 400px at 80% -10%, rgba(176, 38, 255, 0.25), transparent 60%),
		radial-gradient(800px 400px at 10% 110%, rgba(35, 167, 154, 0.18), transparent 60%),
		var(--mph-black);
	border-bottom: 1px solid var(--mph-border);
	padding: 72px 24px 56px;
}
.mph-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.mph-hero h1 { font-size: clamp(28px, 5vw, 46px); margin: 0 0 12px; }
.mph-hero p { color: var(--mph-text-muted); font-size: 17px; margin: 0 0 26px; }
.mph-hero-search { display: flex; max-width: 640px; margin: 0 auto; }
.mph-hero-search input {
	flex: 1;
	padding: 16px 20px;
	border: 1px solid var(--mph-border);
	border-radius: 14px 0 0 14px;
	background: var(--mph-surface);
	color: var(--mph-text);
	font-size: 16px;
	outline: none;
}
.mph-hero-search input:focus { border-color: var(--mph-teal); }
.mph-hero-search button {
	padding: 16px 30px;
	border: none;
	border-radius: 0 14px 14px 0;
	background: linear-gradient(135deg, var(--mph-teal-bright), var(--mph-purple));
	color: #03110f;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}
.mph-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.mph-hero-chips a {
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid var(--mph-border);
	background: var(--mph-surface);
	color: var(--mph-text);
	text-decoration: none;
	font-size: 13px;
}
.mph-hero-chips a:hover { border-color: var(--mph-teal); color: var(--mph-teal-bright); }

.mph-front-section { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }
.mph-front-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.mph-front-head h2 { margin: 0; font-size: 24px; }
.mph-view-all { color: var(--mph-teal-bright); text-decoration: none; font-size: 14px; font-weight: 600; }
.mph-view-all:hover { text-decoration: underline; }

.mph-front-auctions { background: linear-gradient(180deg, rgba(176, 38, 255, 0.08), transparent); }

.mph-front-banner {
	max-width: 1280px;
	margin: 20px auto 0;
	padding: 44px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	background: linear-gradient(135deg, var(--mph-purple-dark), var(--mph-purple) 45%, var(--mph-teal));
	border-radius: 18px;
	color: #03110f;
}
.mph-front-banner h2 { color: #03110f; margin: 0 0 6px; font-size: 26px; }
.mph-front-banner p { color: rgba(3, 17, 15, 0.8); margin: 0; }
.mph-front-banner .mph-btn { background: var(--mph-black); color: var(--mph-teal-bright); border: none; }

.mph-front-banner .mph-btn:hover { color: var(--mph-purple-bright); box-shadow: 0 0 18px rgba(176, 38, 255, 0.4); }

.mph-front-noplugin { text-align: center; padding: 60px 20px; }
.mph-front-noplugin p { color: var(--mph-text-muted); }

/* ---------------- Single listing ---------------- */
.mph-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mph-text-muted); margin-bottom: 20px; flex-wrap: wrap; }
.mph-breadcrumb a { color: var(--mph-text-muted); text-decoration: none; }
.mph-breadcrumb a:hover { color: var(--mph-teal-bright); }
.mph-bc-current { color: var(--mph-text); }

.mph-listing-layout {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 32px;
	align-items: start;
}

.mph-gallery-main {
	background: var(--mph-surface);
	border: 1px solid var(--mph-border);
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 4/3;
}
.mph-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.mph-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.mph-gallery-thumbs img {
	width: 76px;
	height: 76px;
	object-fit: cover;
	border-radius: 10px;
	border: 2px solid var(--mph-border);
	cursor: pointer;
	transition: border-color .15s ease;
}
.mph-gallery-thumbs img:hover { border-color: var(--mph-teal); }

.mph-listing-title { font-size: 24px; margin: 0 0 12px; }
.mph-listing-description { margin-top: 32px; }
.mph-listing-description h2 { font-size: 20px; }
.mph-desc-text { color: var(--mph-text); }
.mph-detail-list { list-style: none; padding: 0; margin: 0; }
.mph-detail-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--mph-border); font-size: 14px; }
.mph-detail-list span { color: var(--mph-text-muted); }

.mph-listing-right { align-self: start; position: sticky; top: calc(var(--mph-header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.mph-buy-box {
	background: var(--mph-surface);
	border: 1px solid var(--mph-border);
	border-radius: 14px;
	padding: 22px;
}
.mph-auction-state { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.mph-countdown { text-align: right; }
.mph-countdown small { color: var(--mph-text-muted); font-size: 12px; display: block; }
.mph-countdown-time { font-size: 20px; font-weight: 700; color: var(--mph-purple-bright); font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(176, 38, 255, 0.5); }
.mph-bid-price, .mph-buy-price { margin: 10px 0; }
.mph-current-bid { font-size: 30px; font-weight: 800; color: var(--mph-teal-bright); }
.mph-bid-price small { color: var(--mph-text-muted); margin-left: 10px; }
.mph-price-lg { font-size: 30px; font-weight: 800; }
.mph-reserve-note { color: var(--mph-warn); font-size: 13px; margin: 6px 0; }
.mph-ship-note { color: var(--mph-text-muted); font-size: 13px; margin: 4px 0 14px; }
.mph-sold-note { color: var(--mph-danger); font-weight: 600; }

.mph-bid-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mph-text-muted); }
.mph-bid-form input {
	padding: 12px 16px;
	border: 1px solid var(--mph-border);
	border-radius: 10px;
	background: var(--mph-black);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	outline: none;
}
.mph-bid-form input:focus { border-color: var(--mph-teal); }
.mph-bid-hint { color: var(--mph-text-muted); font-size: 12px; margin: 6px 0 10px; }
.mph-note { color: var(--mph-text-muted); font-size: 14px; }

.mph-offer-inline { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mph-offer-inline input {
	padding: 10px 14px;
	border: 1px solid var(--mph-border);
	border-radius: 8px;
	background: var(--mph-black);
	color: var(--mph-text);
}

.mph-save-listing.is-saved { color: var(--mph-danger); border-color: var(--mph-danger); }

.mph-seller-box { margin-top: 4px; }
.mph-seller-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mph-seller-head img { border-radius: 50%; border: 2px solid var(--mph-teal); }
.mph-seller-rating { font-size: 13px; color: var(--mph-text-muted); }
.mph-seller-meta { list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--mph-text-muted); }
.mph-seller-meta li { padding: 4px 0; }

.mph-listing-reviews { margin-top: 32px; }
.mph-review-summary { display: flex; align-items: center; gap: 10px; }

/* ---------------- Blog / misc ---------------- */
.mph-blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mph-blog-card .mph-card-media { aspect-ratio: 16/9; }
.mph-page-content { max-width: 820px; }
.mph-archive-header { margin-bottom: 24px; }
.mph-archive-header h1 { margin: 0 0 8px; }

.mph-widget { margin-bottom: 20px; }
.mph-widget-title { font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--mph-text-muted); }

/* ---------------- Footer ---------------- */
.mph-footer { background: var(--mph-surface); border-top: 1px solid var(--mph-border); margin-top: 40px; }
.mph-footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 24px 24px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 32px;
}
.mph-footer-col h4 { margin: 0 0 12px; font-size: 15px; color: var(--mph-purple-bright); }
.mph-footer-col p { color: var(--mph-text-muted); font-size: 14px; }
.mph-footer-col ul, .mph-footer-menu { list-style: none; padding: 0; margin: 0; }
.mph-footer-col li { margin: 6px 0; }
.mph-footer-col a { color: var(--mph-text); text-decoration: none; font-size: 14px; }
.mph-footer-col a:hover { color: var(--mph-teal-bright); }
.mph-footer-menu li a { display: block; padding: 6px 0; }
.mph-footer-bottom { border-top: 1px solid var(--mph-border); padding: 16px 24px; text-align: center; color: var(--mph-text-muted); font-size: 13px; }
.mph-footer-bottom p { margin: 0; }

/* ---------------- Toasts & modals ---------------- */
.mph-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--mph-teal);
	color: #03110f;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 22px;
	border-radius: 10px;
	z-index: 9999;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
	transition: opacity .3s ease, transform .3s ease;
	opacity: 1;
}
.mph-toast.is-out { opacity: 0; transform: translate(-50%, 12px); }
.mph-toast-error { background: var(--mph-danger); color: #fff; }

.mph-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 20px;
}
.mph-modal-box {
	background: var(--mph-surface);
	border: 1px solid var(--mph-border);
	border-radius: 14px;
	padding: 26px;
	width: 100%;
	max-width: 460px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mph-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	color: var(--mph-text-muted);
	font-size: 22px;
	cursor: pointer;
}
.mph-modal-box input, .mph-modal-box textarea {
	padding: 10px 14px;
	border: 1px solid var(--mph-border);
	border-radius: 8px;
	background: var(--mph-black);
	color: var(--mph-text);
	width: 100%;
}
.mph-rating-input { display: flex; gap: 6px; }
.mph-rating-input button {
	background: none;
	border: none;
	color: var(--mph-border);
	font-size: 26px;
	cursor: pointer;
	transition: color .15s ease;
}
.mph-rating-input button.is-active, .mph-rating-input button:hover { color: var(--mph-warn); }

/* ---------------- Brand accents (overrides plugin palette) ---------------- */
.mph-btn-primary {
	background: linear-gradient(135deg, var(--mph-teal-bright), var(--mph-purple));
	border-color: var(--mph-purple);
}
.mph-btn-primary:hover { box-shadow: 0 0 0 3px rgba(176, 38, 255, 0.28), 0 0 16px rgba(176, 38, 255, 0.35); }
.mph-badge-live, .mph-badge-active { background: rgba(176, 38, 255, 0.16); color: var(--mph-purple-bright); border-color: var(--mph-purple); }
.mph-card-badge.mph-badge-live { background: var(--mph-purple); }
.mph-header-link:hover { color: var(--mph-purple-bright); }
.mph-view-all { color: var(--mph-teal-bright); }
.mph-view-all:hover { color: var(--mph-purple-bright); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
	.mph-listing-layout { grid-template-columns: 1fr; }
	.mph-listing-right { position: static; }
	.mph-header-search { display: none; }
	.mph-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
	.mph-header-inner { gap: 10px; }
	.mph-hlink-label { display: none; }
	.mph-sell-btn { font-size: 13px; padding: 8px 12px; }
	.mph-nav-toggle { display: block; }
	.mph-nav { display: none; }
	.mph-nav.is-open { display: block; }
	.mph-nav-inner { flex-direction: column; align-items: stretch; padding: 8px 24px 16px; }
	.mph-blog-list { grid-template-columns: 1fr; }
	.mph-footer-inner { grid-template-columns: 1fr; gap: 20px; }
	.mph-hero { padding: 48px 20px 40px; }
}
