/**
 * Ranking CSS - Hora Nerd Hardware Hub
 */

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

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

.hnh-ranking-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(245, 158, 11, 0.15);
	color: var(--hn-amber, #f59e0b);
	border: 1px solid rgba(245, 158, 11, 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-ranking-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-ranking-title span {
	background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

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

/* List of Cards */
.hnh-ranking-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hnh-ranking-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;
	align-items: center;
	gap: 24px;
	position: relative;
	transition: all 0.3s ease;
	backdrop-filter: blur(16px);
}

.hnh-ranking-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

/* Podium Styling */
.hnh-ranking-card.pos-1 {
	border-color: rgba(245, 158, 11, 0.4);
	box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.2);
}

.hnh-ranking-card.pos-2 {
	border-color: rgba(6, 182, 212, 0.4);
	box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.2);
}

.hnh-ranking-card.pos-3 {
	border-color: rgba(244, 63, 94, 0.4);
	box-shadow: 0 10px 30px -10px rgba(244, 63, 94, 0.2);
}

.hnh-pos-num {
	min-width: 70px;
	text-align: center;
	font-size: 2.5rem;
	font-weight: 900;
	font-family: 'JetBrains Mono', monospace;
	line-height: 1;
}

.pos-1 .hnh-pos-num {
	color: #f59e0b;
	text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.pos-2 .hnh-pos-num {
	color: #06b6d4;
	text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.pos-3 .hnh-pos-num {
	color: #f43f5e;
	text-shadow: 0 0 20px rgba(244, 63, 94, 0.5);
}

.pos-other .hnh-pos-num {
	color: var(--hn-text-tertiary, rgba(226, 232, 255, 0.4));
}

.hnh-ranking-thumb-wrap {
	width: 120px;
	height: 120px;
	border-radius: var(--hn-radius-md, 14px);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--hn-surface-2, #161f33);
}

.hnh-ranking-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hnh-ranking-info {
	flex-grow: 1;
}

.hnh-ranking-item-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--hn-text-primary, #f8fafc);
	margin-bottom: 6px;
	line-height: 1.3;
}

.hnh-ranking-item-title a {
	color: inherit;
	text-decoration: none;
}

.hnh-ranking-item-title a:hover {
	color: var(--hn-cyan, #06b6d4);
}

.hnh-ranking-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.hnh-ranking-tag {
	background: var(--hn-surface-2, #161f33);
	color: var(--hn-text-secondary, rgba(226, 232, 255, 0.72));
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-family: 'JetBrains Mono', monospace;
	border: 1px solid var(--hn-border, rgba(255, 255, 255, 0.08));
}

.hnh-ranking-score-pill {
	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: 13px;
	font-weight: 800;
	font-family: 'JetBrains Mono', monospace;
}

/* Action Area */
.hnh-ranking-action {
	text-align: right;
	min-width: 200px;
	flex-shrink: 0;
}

.hnh-ranking-price {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--hn-emerald, #10b981);
	font-family: 'JetBrains Mono', monospace;
	line-height: 1.1;
	margin-bottom: 4px;
}

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

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

.hnh-ranking-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px -4px rgba(99, 102, 241, 0.5);
}

@media (max-width: 820px) {
	.hnh-ranking-card {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}
	.hnh-ranking-action {
		text-align: center;
		width: 100%;
	}
	.hnh-ranking-tags {
		justify-content: center;
	}
}
