/* ==========================================================================
   DCC Toplist — matches capibonus.org layout
   Desktop: Logo+Rank (dark) | Bonus+USPs | CTA button + Score badge
   Mobile:  Logo+Rank+Score (dark) | Bonus+USPs | CTA
   Below:   Payment Methods (grey bg, white list container, scrollable)
   ========================================================================== */

.dcc-toplist {
	position: relative;
	left: 50%;
	width: calc(100vw - 2rem);
	max-width: 960px;
	margin: 2rem 0;
	transform: translateX(-50%);
}
.dcc-toplist__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 1rem;
	color: #1a1a2e;
}
.dcc-toplist__list {
	display: flex;
	flex-direction: column;

	gap: 24px;
}
/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */

.dcc-toplist__item {
	overflow: hidden;
	transition: box-shadow 0.2s ease;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}
.dcc-toplist__item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.dcc-toplist__item--top {
	border-width: 2px;
	border-color: #7a2cee;
}
.dcc-toplist__main {
	display: flex;
	flex-direction: column;
}
/* --------------------------------------------------------------------------
   Logo Column (dark) — rank badge + logo + score (mobile)
   -------------------------------------------------------------------------- */

.dcc-toplist__logo-col {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 80px;
	padding: 1.25rem;
	text-decoration: none;
	background: #12121f;
}
.dcc-toplist__logo-col:hover {
	text-decoration: none;
	opacity: 0.92;
}
.dcc-toplist__logo-col:focus-visible {
	outline: 2px solid #7a2cee;
	outline-offset: -2px;
}
.dcc-toplist__rank {
	font-size: 12px;
	font-weight: 700;
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: rgba(255, 255, 255, 0.7);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.15);
}

.dcc-toplist__item--top .dcc-toplist__rank {
	color: #000;
	background: #ffd700;
}

.dcc-toplist__item--rank-2 .dcc-toplist__rank {
	color: #000;
	background: #c0c0c0;
}

.dcc-toplist__item--rank-3 .dcc-toplist__rank {
	color: #000;
	background: #cd7f32;
}
.dcc-toplist__logo {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
}
.dcc-toplist__logo img {
	width: auto;
	max-width: 130px;
	height: auto;
	max-height: 50px;

	object-fit: contain;
}
.dcc-toplist__logo-fallback {
	font-size: 16px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.7);
}
/* --------------------------------------------------------------------------
   Score Badge — shared styles (used in both mobile + desktop placements)
   -------------------------------------------------------------------------- */

.dcc-toplist__score {
	line-height: 1.2;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.4rem 0.6rem;
	text-align: center;
	border-radius: 5px;

	flex-shrink: 0;
}
.dcc-toplist__score--green {
	color: #307f11;
	background: #eaf2e8;
}
.dcc-toplist__score--green-light {
	color: #4d7c1e;
	background: #f2faeb;
}
.dcc-toplist__score--yellow {
	color: #6d2c05;
	background: #fdf6eb;
}
.dcc-toplist__score--red {
	color: #c0392b;
	background: #feeaea;
}
.dcc-toplist__score-num {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.dcc-toplist__score-num strong {
	font-size: 15px;
	font-weight: 800;
}
.dcc-toplist__score-label {
	font-size: 10px;
	line-height: 1;
}
/* Mobile: show score in logo-col, hide desktop score-col */
.dcc-toplist__score--mobile {
	display: flex;
}
.dcc-toplist__score--desktop {
	display: none;
}
.dcc-toplist__score-col {
	display: none;
}
/* --------------------------------------------------------------------------
   Bonus Column
   -------------------------------------------------------------------------- */

.dcc-toplist__bonus-col {
	flex: 1;
	padding: 1rem 1.25rem;
}
.dcc-toplist__bonus-text {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.2rem;
	color: #1a1a2e;
	text-wrap: balance;
}
.dcc-toplist__bonus-type {
	font-size: 14px;
	font-weight: 600;
	display: inline-block;
	margin-bottom: 0.6rem;
	padding: 0.25rem 0.6rem;
	color: #7a2cee;
	border-radius: 3px;
	background: #f3f0fa;

	align-self: flex-start;
}
.dcc-toplist__usps {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;

	gap: 0.15rem;
}
.dcc-toplist__usps li {
	font-size: 13px;
	line-height: 1.5;
	position: relative;
	padding-left: 1.1rem;
	color: #555;
}
.dcc-toplist__usps li::before {
	content: '\2713';
	font-size: 12px;
	font-weight: 700;
	position: absolute;
	left: 0;
	color: #16a34a;
}
/* --------------------------------------------------------------------------
   CTA Column — button + score badge (desktop)
   -------------------------------------------------------------------------- */

.dcc-toplist__cta-col {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	padding: 0 1.25rem 1rem;
}
.dcc-toplist__cta {
	font-size: 15px;
	font-weight: 700;
	display: block;
	padding: 0.7rem 1.5rem;
	transition: background 0.15s ease;
	text-align: center;
	white-space: nowrap;
	text-decoration: none;
	color: #fff;
	border-radius: 6px;
	background: #7a2cee;
}
.dcc-toplist__cta:hover,
.dcc-toplist__cta:focus {
	text-decoration: none;
	color: #fff;
	background: #6520c7;
}
.dcc-toplist__cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px #7a2cee;
}
/* --------------------------------------------------------------------------
   Payment Methods — grey bg, stacked groups, scrollable white list
   -------------------------------------------------------------------------- */

.dcc-toplist__methods {
	display: flex;
	flex-direction: column;
	padding: 0.75rem 1rem;
	border-top: 1px solid #eee;
	background: #f5f5f5;

	gap: 0.6rem;
}
.dcc-toplist__method-group {
	display: flex;
	flex-direction: column;

	gap: 0.3rem;
}
.dcc-toplist__method-label {
	font-size: 11px;
	font-weight: 600;
	color: #888;

	flex-shrink: 0;
}
.dcc-toplist__method-list {
	display: flex;
	overflow-x: auto;
	align-items: center;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	border-radius: 6px;
	background: #fff;

	gap: 0.3rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-color: #ccc transparent;
	scrollbar-width: thin;
}
.dcc-toplist__method-list::-webkit-scrollbar {
	height: 4px;
}
.dcc-toplist__method-list::-webkit-scrollbar-track {
	background: transparent;
}
.dcc-toplist__method-list::-webkit-scrollbar-thumb {
	border-radius: 2px;
	background: #ccc;
}
.dcc-toplist__method-list li {
	display: flex;
	align-items: center;

	flex-shrink: 0;
}
.dcc-toplist__pm-icon {
	width: 28px;
	height: 28px;
	padding: 2px;
	border-radius: 4px;

	object-fit: contain;
}
.dcc-toplist__pm-text {
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 22px;
	padding: 0 0.5rem;
	white-space: nowrap;
	letter-spacing: 0.02em;
	color: #555;
	border-radius: 4px;
	background: #f0f0f0;
}
/* --------------------------------------------------------------------------
   Desktop
   -------------------------------------------------------------------------- */

@media screen and (min-width: 768px) {
	.dcc-toplist__main {
		flex-direction: row;
		align-items: stretch;
	}
	/* Logo column — fixed width, vertical center */
	.dcc-toplist__logo-col {
		justify-content: center;
		width: 160px;
		padding: 1rem;

		flex-shrink: 0;
	}
	/* Score: hide mobile, show desktop col */
	.dcc-toplist__score--mobile {
		display: none;
	}
	.dcc-toplist__score--desktop {
		display: flex;
	}
	.dcc-toplist__score-col {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0.75rem;

		flex-shrink: 0;
	}
	/* Bonus column */
	.dcc-toplist__bonus-col {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 1rem 1.25rem;
	}
	.dcc-toplist__bonus-text {
		font-size: 24px;
	}
	.dcc-toplist__bonus-type {
		font-size: 15px;
	}
	.dcc-toplist__usps {
		flex-direction: column;
	}
	/* CTA column */
	.dcc-toplist__cta-col {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 1rem 1.25rem;
		border-left: 1px solid #f0f0f0;

		flex-shrink: 0;
	}
	.dcc-toplist__cta {
		padding: 0.6rem 1.25rem;
	}
	/* Payment methods: groups stacked, label+list per row */
	.dcc-toplist__methods {
		flex-direction: column;

		gap: 0.5rem;
	}
	.dcc-toplist__method-group {
		flex-direction: column;

		gap: 0.3rem;
	}
}
/* --------------------------------------------------------------------------
   Wide Desktop
   -------------------------------------------------------------------------- */

@media screen and (min-width: 1024px) {
	.dcc-toplist {
		max-width: 1040px;
	}
	.dcc-toplist__logo-col {
		width: 180px;
	}
}
/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.dcc-toplist__item,
	.dcc-toplist__cta,
	.dcc-toplist__logo-col {
		transition: none;
	}
}
