/* ProductMatcher - Module Styles
 * Copyright (C) 2024-2026
 * License: GPLv3+
 */

/* Header */
.productmatcher-header {
	margin-bottom: 20px;
	padding: 20px 0 10px;
}
.productmatcher-header h1 {
	font-size: 1.5em;
	margin: 0 0 4px;
}
.productmatcher-header p {
	margin: 0;
	font-size: 0.9em;
}

/* Stats bar */
.productmatcher-stats {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.pm-stat {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 14px 20px;
	display: flex;
	flex-direction: column;
	min-width: 120px;
}
.pm-stat-success {
	background: #d4edda;
	border-color: #c3e6cb;
}
.pm-stat-number {
	font-size: 1.5em;
	font-weight: 700;
	color: #2d3436;
	line-height: 1.2;
}
.pm-stat-label {
	font-size: 0.8em;
	color: #636e72;
	margin-top: 4px;
}

/* Main table */
.productmatcher-table .pm-description {
	color: #2d3436;
}
.productmatcher-row:hover {
	background: #f0f3ff !important;
}
.pm-match-preview {
	font-size: 0.85em;
	margin-bottom: 4px;
	white-space: nowrap;
}
.pm-match-preview a {
	color: #0984e3;
	text-decoration: none;
}
.pm-match-preview a:hover {
	text-decoration: underline;
}

/* Match section (expanded) */
.pm-match-section {
	background: #f8f9fa;
	border-top: 2px solid #6c5ce7;
	padding: 20px !important;
}
.pm-match-header {
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #dee2e6;
}
.pm-match-header h3 {
	margin: 0 0 4px;
	font-size: 1.1em;
	color: #2d3436;
}
.pm-match-header em {
	color: #6c5ce7;
}
.pm-section {
	margin-bottom: 20px;
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 16px;
}
.pm-section h4 {
	margin: 0 0 12px;
	font-size: 1em;
	color: #2d3436;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}
.pm-section-new {
	border-color: #00b894;
	border-left: 4px solid #00b894;
}
.pm-section-new h4 {
	color: #00b894;
}

/* Match table inside expanded section */
.pm-match-table {
	width: 100%;
	font-size: 0.9em;
}
.pm-match-table td,
.pm-match-table th {
	padding: 8px 10px !important;
}
.pm-match-table .butActionSmall {
	padding: 4px 10px;
	font-size: 0.85em;
	margin: 1px;
}

/* New product form */
.pm-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
}
.pm-form-field {
	display: flex;
	flex-direction: column;
}
.pm-form-field label {
	font-size: 0.8em;
	color: #636e72;
	margin-bottom: 4px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.pm-form-field input,
.pm-form-field textarea,
.pm-form-field select {
	padding: 8px 10px;
	font-size: 0.9em;
}
.pm-form-field-full {
	grid-column: 1 / -1;
}

/* Button overrides */
.butActionSmall {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 0.85em;
	cursor: pointer;
	text-decoration: none !important;
	border: none;
}

/* Responsive */
@media (max-width: 768px) {
	.pm-form-grid {
		grid-template-columns: 1fr;
	}
	.productmatcher-stats {
		flex-direction: column;
	}
}
