/**
 * Comparador & Product Cards CSS - Hora Nerd Hardware Hub
 */

.hnh-compare-container {
	width: 100%;
	max-width: var(--hn-max-width, 1280px);
	margin: 0 auto 48px;
	padding: 0 16px;
}

.hnh-compare-header {
	text-align: center;
	margin-bottom: 36px;
}

.hnh-compare-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(99, 102, 241, 0.15);
	color: var(--hn-indigo, #6366f1);
	border: 1px solid rgba(99, 102, 241, 0.3);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hnh-compare-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: var(--hn-text-primary, #f8fafc);
	line-height: 1.15;
	margin-bottom: 10px;
}

.hnh-compare-title span {
	background: var(--hn-gradient, linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hnh-compare-desc {
	color: var(--hn-text-secondary, rgba(226, 232, 255, 0.72));
	font-size: 1.05rem;
	max-width: 640px;
	margin: 0 auto;
}

/* Selector Bar */
.hnh-selector-bar {
	background: var(--hn-surface, #0f1523);
	border: 1px solid var(--hn-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--hn-radius-lg, 20px);
	padding: 24px;
	margin-bottom: 32px;
	box-shadow: var(--hn-shadow-card, 0 30px 60px -40px rgba(6, 182, 212, 0.4));
	backdrop-filter: blur(16px);
}

.hnh-selector-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	align-items: end;
}

.hnh-selector-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hnh-selector-field label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--hn-cyan, #06b6d4);
	letter-spacing: 0.5px;
}

.hnh-selector-field select {
	background: var(--hn-surface-2, #161f33);
	color: var(--hn-text-primary, #f8fafc);
	border: 1px solid var(--hn-border, rgba(255, 255, 255, 0.12));
	border-radius: var(--hn-radius-sm, 12px);
	padding: 12px 14px;
	font-size: 14px;
	outline: none;
	transition: all 0.2s ease;
	cursor: pointer;
}

.hnh-selector-field select:focus {
	border-color: var(--hn-cyan, #06b6d4);
	box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* Comparison Cards Grid */
.hnh-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: stretch;
}

@media (max-width: 960px) {
	.hnh-cards-grid {
		grid-template-columns: 1fr;
	}
}

.hnh-card {
	background: var(--hn-surface, #0f1523);
	border: 1px solid var(--hn-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--hn-radius-lg, 20px);
	padding: 24px;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hnh-card:hover {
	transform: translateY(-4px);
	border-color: rgba(99, 102, 241, 0.4);
	box-shadow: var(--hn-shadow-card, 0 30px 60px -40px rgba(6, 182, 212, 0.4));
}

.hnh-card-header {
	text-align: center;
	margin-bottom: 20px;
}

.hnh-card-thumb-wrap {
	width: 100%;
	height: 180px;
	border-radius: var(--hn-radius-md, 14px);
	overflow: hidden;
	background: var(--hn-surface-2, #161f33);
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hnh-card-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.hnh-card:hover .hnh-card-thumb {
	transform: scale(1.05);
}

.hnh-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--hn-text-primary, #f8fafc);
	line-height: 1.35;
	min-height: 48px;
	margin-bottom: 8px;
}

.hnh-card-score {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(16, 185, 129, 0.15);
	color: var(--hn-emerald, #10b981);
	border: 1px solid rgba(16, 185, 129, 0.3);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	font-family: 'JetBrains Mono', monospace;
}

/* Specs Table */
.hnh-specs-list {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	border-top: 1px solid var(--hn-border, rgba(255, 255, 255, 0.08));
}

.hnh-spec-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--hn-border, rgba(255, 255, 255, 0.06));
	font-size: 13px;
}

.hnh-spec-name {
	color: var(--hn-text-tertiary, rgba(226, 232, 255, 0.56));
	font-weight: 500;
}

.hnh-spec-val {
	color: var(--hn-text-primary, #f8fafc);
	font-weight: 700;
	font-family: 'JetBrains Mono', monospace;
	text-align: right;
}

/* Price Box */
.hnh-price-box {
	margin-top: auto;
	background: var(--hn-surface-2, #161f33);
	border: 1px solid var(--hn-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--hn-radius-md, 14px);
	padding: 16px;
	text-align: center;
}

.hnh-price-label {
	font-size: 11px;
	text-transform: uppercase;
	color: var(--hn-text-tertiary, rgba(226, 232, 255, 0.56));
	font-weight: 700;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.hnh-price-val {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--hn-emerald, #10b981);
	font-family: 'JetBrains Mono', monospace;
	margin-bottom: 6px;
}

.hnh-store-badge {
	font-size: 12px;
	color: var(--hn-text-secondary, rgba(226, 232, 255, 0.72));
	margin-bottom: 14px;
}

.hnh-buy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: var(--hn-gradient, linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%));
	color: #ffffff !important;
	padding: 12px 18px;
	border-radius: var(--hn-radius-sm, 12px);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.25s ease;
	border: none;
	cursor: pointer;
}

.hnh-buy-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.6);
	color: #ffffff !important;
}

/* In-Post Product Card */
.hnh-inpost-card {
	background: var(--hn-surface, #0f1523);
	border: 1px solid var(--hn-border, rgba(255, 255, 255, 0.12));
	border-radius: var(--hn-radius-lg, 20px);
	padding: 24px;
	margin: 32px 0;
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 24px;
	box-shadow: var(--hn-shadow-card, 0 30px 60px -40px rgba(6, 182, 212, 0.4));
}

@media (max-width: 640px) {
	.hnh-inpost-card {
		grid-template-columns: 1fr;
	}
}
