/*
 * Spotmart design tokens and global components.
 * These rules provide unified styling across marketing pages,
 * WooCommerce templates, and Dokan dashboards without altering layout HTML.
 */

:root {
	--spotmart-font-family: "Poppins", "Segoe UI", sans-serif;
	--spotmart-color-primary: #0ca53c;
	--spotmart-color-primary-dark: #06772a;
	--spotmart-color-secondary: #f6fdf7;
	--spotmart-color-accent: #1bcc6a;
	--spotmart-color-border: rgba(12, 165, 60, 0.18);
	--spotmart-color-muted: #627065;
	--spotmart-color-heading: #142914;
	--spotmart-color-text: #1c2b1c;
	--spotmart-shadow-sm: 0 10px 24px rgba(12, 102, 42, 0.08);
	--spotmart-shadow-md: 0 18px 38px rgba(12, 102, 42, 0.12);
	--spotmart-radius-sm: 12px;
	--spotmart-radius-md: 18px;
	--spotmart-radius-lg: 26px;
	--spotmart-radius-pill: 999px;
}

body {
	font-family: var(--spotmart-font-family);
	color: var(--spotmart-color-text);
}

.spotmart-surface {
	background: #ffffff;
	border-radius: var(--spotmart-radius-md);
	border: 1px solid rgba(12, 165, 60, 0.08);
	box-shadow: var(--spotmart-shadow-sm);
	overflow: hidden;
}

.spotmart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.4rem;
	border-radius: var(--spotmart-radius-pill);
	font-weight: 600;
	letter-spacing: 0.02em;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	font-size: 0.95rem;
}

.spotmart-btn--primary {
	background: linear-gradient(125deg, var(--spotmart-color-accent) 0%, var(--spotmart-color-primary) 100%);
	color: #ffffff;
	box-shadow: var(--spotmart-shadow-md);
}

.spotmart-btn--primary:hover {
	transform: translateY(-2px);
	background: linear-gradient(125deg, #16bb5c 0%, var(--spotmart-color-primary-dark) 100%);
}

.spotmart-btn--secondary {
	background: var(--spotmart-color-secondary);
	color: var(--spotmart-color-primary);
	border-color: rgba(12, 165, 60, 0.45);
}

.spotmart-btn--secondary:hover {
	background: rgba(12, 165, 60, 0.12);
	color: var(--spotmart-color-primary-dark);
}

.spotmart-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.35rem 0.9rem;
	border-radius: var(--spotmart-radius-pill);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: rgba(12, 165, 60, 0.12);
	color: var(--spotmart-color-primary-dark);
}

.spotmart-card {
	background: #ffffff;
	border-radius: var(--spotmart-radius-md);
	border: 1px solid rgba(0, 0, 0, 0.03);
	box-shadow: var(--spotmart-shadow-sm);
	padding: 1.2rem 1.4rem;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spotmart-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--spotmart-shadow-md);
}

.spotmart-card__title {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--spotmart-color-heading);
	margin-bottom: 0.35rem;
}

.spotmart-card__meta {
	color: var(--spotmart-color-muted);
	font-size: 0.9rem;
}

.spotmart-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.spotmart-table thead th {
	background: rgba(12, 165, 60, 0.08);
	color: var(--spotmart-color-heading);
	padding: 0.9rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.spotmart-table tbody tr:nth-child(every) {
	background: #ffffff;
}

.spotmart-table tbody td {
	padding: 0.9rem;
	border-bottom: 1px solid rgba(12, 165, 60, 0.08);
	color: var(--spotmart-color-text);
	font-size: 0.92rem;
}

.spotmart-table tbody tr:hover td {
	background: rgba(12, 165, 60, 0.04);
}

.spotmart-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0.25rem 0.8rem;
	border-radius: var(--spotmart-radius-pill);
	font-weight: 600;
	font-size: 0.75rem;
}

.spotmart-status-pill--success {
	background: rgba(28, 200, 106, 0.15);
	color: #0d7a38;
}

.spotmart-status-pill--warning {
	background: rgba(247, 181, 0, 0.15);
	color: #916400;
}

.spotmart-status-pill--danger {
	background: rgba(220, 68, 45, 0.18);
	color: #9d1d0a;
}

.spotmart-metric-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 18px;
}

.spotmart-metric {
	padding: 1.2rem;
	border-radius: var(--spotmart-radius-md);
	background: linear-gradient(180deg, rgba(12, 165, 60, 0.08) 0%, rgba(12, 165, 60, 0) 85%);
	border: 1px solid rgba(12, 165, 60, 0.12);
}

.spotmart-metric strong {
	display: block;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--spotmart-color-primary-dark);
}

.spotmart-metric span {
	display: block;
	color: var(--spotmart-color-muted);
	font-size: 0.85rem;
}


.auction-sale-badge {
	position: absolute;
	top: 6px;
	left: 10px;
	z-index: 12;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 11px;
	background: #fffbe6;
	border: 1px solid rgba(247, 181, 0, 0.35);
	border-radius: var(--spotmart-radius-pill);
	color: #8a5d00;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	box-shadow: 0 3px 10px rgba(166, 112, 0, 0.18);
	animation: auction-sale-badge-fade-in 0.25s ease-out;
}

.auction-sale-badge__label {
	line-height: 1.1;
}

.auction-sale-badge:hover {
	background: #fff3c1;
}

@media (max-width: 768px) {
	.auction-sale-badge {
		top: 10px;
		left: 8px;
		padding: 3px 9px;
		font-size: 10px;
	}
}

@keyframes auction-sale-badge-fade-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
