/* ==========================================================================
   BanglaTrick — Achievements
   ========================================================================== */

.bt-ach-wrap {
	padding: 24px 16px 64px;
	max-width: 1100px;
	margin: 0 auto;
}

/* ---------- Hero ---------- */
.bt-ach-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: 28px 32px;
	background: linear-gradient(135deg, #7c3aed, #8b5cf6 50%, #a855f7);
	border-radius: 18px;
	color: #ffffff;
	margin-bottom: 28px;
	box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
	position: relative;
	overflow: hidden;
}
.bt-ach-hero::before {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.bt-ach-hero-content {
	display: flex;
	align-items: center;
	gap: 18px;
	position: relative;
	z-index: 2;
	flex: 1;
	min-width: 0;
}

.bt-ach-hero-icon {
	width: 60px;
	height: 60px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 16px;
	color: #fbbf24;
	flex-shrink: 0;
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.bt-ach-hero-title {
	font-size: 1.75rem;
	font-weight: 800;
	margin: 0 0 4px;
	color: #ffffff;
	font-family: var(--font-heading);
	letter-spacing: -0.5px;
}
@media (min-width: 768px) {
	.bt-ach-hero-title { font-size: 2.25rem; }
}

.bt-ach-hero-sub {
	font-size: 0.9375rem;
	margin: 0;
	opacity: 0.92;
}

.bt-ach-hero-progress {
	position: relative;
	min-width: 180px;
	z-index: 2;
	text-align: center;
}
.bt-ach-hero-pct {
	font-size: 2rem;
	font-weight: 800;
	font-family: var(--font-heading);
	color: #ffffff;
	line-height: 1;
	margin-bottom: 8px;
}
.bt-ach-hero-bar {
	height: 8px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	overflow: hidden;
}
.bt-ach-hero-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #fbbf24, #f59e0b);
	border-radius: 4px;
	transition: width 0.6s ease;
	box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

@media (max-width: 640px) {
	.bt-ach-hero {
		padding: 22px 20px;
		flex-direction: column;
		align-items: flex-start;
	}
	.bt-ach-hero-icon {
		width: 50px;
		height: 50px;
	}
	.bt-ach-hero-title {
		font-size: 1.5rem;
	}
	.bt-ach-hero-progress {
		width: 100%;
	}
}

/* ---------- Sections ---------- */
.bt-ach-section {
	margin-bottom: 32px;
}

.bt-ach-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	padding: 0 0 10px 12px;
	border-bottom: 2px solid var(--border);
	position: relative;
	flex-wrap: wrap;
}
.bt-ach-section-head::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	height: 2px;
	width: 60px;
	background: linear-gradient(90deg, #8b5cf6, #a855f7);
	border-radius: 2px;
}

.bt-ach-section-title {
	position: relative;
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
	color: var(--heading);
	font-family: var(--font-heading);
	padding-left: 10px;
}
.bt-ach-section-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 20px;
	background: linear-gradient(180deg, #8b5cf6, #a855f7);
	border-radius: 3px;
}

.bt-ach-section-count {
	font-size: 0.8125rem;
	color: var(--muted);
	font-weight: 600;
	background: var(--surface);
	padding: 3px 10px;
	border-radius: 20px;
	border: 1px solid var(--border);
}

/* ---------- Grid ---------- */
.bt-ach-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}
@media (min-width: 640px) {
	.bt-ach-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	.bt-ach-grid { grid-template-columns: repeat(3, 1fr); }
}

.bt-ach-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px;
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: 12px;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}
.bt-ach-card:hover {
	border-color: #a855f7;
	box-shadow: 0 6px 20px rgba(139, 92, 246, 0.08);
	transform: translateY(-2px);
}

.bt-ach-card.is-locked {
	opacity: 0.65;
	background: var(--surface);
}
.bt-ach-card.is-locked:hover {
	opacity: 0.85;
	border-color: var(--border);
	transform: translateY(-1px);
	box-shadow: none;
}

.bt-ach-card.is-earned {
	border-color: rgba(139, 92, 246, 0.25);
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.04), transparent);
}

/* Icon wrap */
.bt-ach-icon-wrap {
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: var(--surface);
	color: var(--muted);
	flex-shrink: 0;
	transition: transform 0.2s;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.bt-ach-card:hover .bt-ach-icon-wrap {
	transform: scale(1.06) rotate(-3deg);
}
.bt-ach-icon-wrap svg {
	width: 24px;
	height: 24px;
	display: block;
}

.bt-ach-icon-locked {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	opacity: 0.7;
}

/* Info */
.bt-ach-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bt-ach-name {
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 700;
	margin: 0;
	color: var(--heading);
	line-height: 1.3;
}

.bt-ach-desc {
	font-size: 0.8125rem;
	color: var(--muted);
	margin: 0;
	line-height: 1.45;
}

.bt-ach-earned-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	padding: 3px 10px;
	background: #ecfdf5;
	color: #047857;
	font-size: 0.6875rem;
	font-weight: 700;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	width: fit-content;
}

/* ==========================================================================
   WINNER CARD (Shortcode)
   ========================================================================== */

.bt-lb-winner-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 32px 24px 24px;
	border-radius: 18px;
	position: relative;
	overflow: hidden;
	text-align: center;
	max-width: 360px;
	margin: 0 auto;
}
.bt-lb-winner-card.type-weekly {
	background: linear-gradient(135deg, #fef3c7, #fde68a 60%, #fcd34d);
	color: #78350f;
	box-shadow: 0 12px 32px rgba(251, 191, 36, 0.3);
}
.bt-lb-winner-card.type-monthly {
	background: linear-gradient(135deg, #dbeafe, #bfdbfe 60%, #93c5fd);
	color: #1e40af;
	box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
}

.bt-lb-winner-card::before {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
	border-radius: 50%;
}

.bt-lb-winner-crown {
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	color: #f59e0b;
	filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.5));
	animation: btCrownFloat 3s ease-in-out infinite;
	z-index: 2;
}

@keyframes btCrownFloat {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(-4px); }
}

.bt-lb-winner-avatar-link {
	position: relative;
	margin-top: 16px;
	z-index: 2;
}

.bt-lb-winner-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	border: 5px solid rgba(255, 255, 255, 0.7);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s;
}
.bt-lb-winner-avatar-link:hover .bt-lb-winner-avatar {
	transform: scale(1.05);
}

.bt-lb-winner-label {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.75;
	margin-top: 4px;
	z-index: 2;
}

.bt-lb-winner-name {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	color: inherit;
	text-decoration: none;
	line-height: 1.2;
	z-index: 2;
}
.bt-lb-winner-name:hover {
	text-decoration: underline;
}

.bt-lb-winner-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	margin-top: 4px;
	z-index: 2;
}
.bt-lb-winner-score strong {
	font-family: var(--font-heading);
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
}
.bt-lb-winner-score span {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.75;
	font-weight: 600;
	margin-top: 2px;
}

.bt-lb-winner-period {
	font-size: 0.75rem;
	opacity: 0.6;
	font-weight: 600;
	z-index: 2;
}