/* ============================================
   EARN PAGE - CLEAN DARK THEME
   Activity Cards with Accent Bar
   ============================================ */

.earn-page {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0;
}

/* ===== BASE CARD ===== */
.activity-card {
	position: relative;
	background: linear-gradient(135deg, var(--bg-secondary, #1C1917) 0%, rgba(41, 37, 36, 0.8) 100%);
	border-radius: 16px;
	cursor: pointer;
	overflow: hidden;
	border: 1px solid var(--border, #292524);
	box-shadow: 
		0 2px 8px rgba(0,0,0,0.2),
		inset 0 1px 0 rgba(255,255,255,0.03);
	transition: all 0.2s ease;
}

.activity-card:hover {
	border-color: var(--accent-color, #D97706);
	box-shadow: 0 4px 16px rgba(0,0,0,0.3);
	transform: translateY(-2px);
}

.activity-card:active {
	transform: translateY(0) scale(0.98);
	transition: all 0.1s ease;
}

/* Accent Bar - Sol kenar */
.activity-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--accent-color, #D97706);
	border-radius: 16px 0 0 16px;
	box-shadow: 0 0 12px var(--accent-color, #D97706);
}

/* ===== CARD INNER LAYOUT ===== */
.card-inner {
	display: flex;
	align-items: center;
	padding: 5px 12px 5px 20px;
	gap: 20px;
	height: 65px;
	box-sizing: border-box;
}

/* ===== MASCOT ===== */
.card-mascot {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}

.mascot-img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.3)) opacity(0.66);
	transition: transform 0.2s ease, filter 0.2s ease;
}

.activity-card:hover .mascot-img {
	transform: scale(1.08);
	filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.3)) opacity(0.85);
}

/* ===== CARD CONTENT ===== */
.card-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	padding-left: 12px;
}

.card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--text, #FAFAF9);
	margin: 0 0 2px 0;
	line-height: 1.2;
}

.card-subtitle {
	font-size: 12px;
	color: var(--text-secondary, #A8A29E);
	margin: 0;
	line-height: 1.3;
}

/* ===== STATS ROW (for Video) ===== */
.card-stats-wrapper {
	background: var(--bg-tertiary, #292524);
	border-radius: 8px;
	padding: 6px 12px;
	margin-top: 8px;
	display: inline-flex;
}

.card-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
}

.stat-item.stat-nut {
	color: var(--success, #22C55E);
}

.stat-item.stat-energy {
	color: var(--error, #EF4444);
	font-size: 11px;
}

.stat-separator {
	color: var(--muted, #78716C);
	font-size: 10px;
}

/* ===== CARD TITLE COLORS ===== */
.activity-card[data-activity="video"] .card-title {
	color: #EF4444;
}

.activity-card[data-activity="music"] .card-title {
	color: #22C55E;
}

.activity-card[data-activity="social"] .card-title {
	color: #3B82F6;
}

.activity-card[data-activity="survey"] .card-title {
	color: #A855F7;
}

.activity-card[data-activity="tasks"] .card-title {
	color: #06B6D4;
}

.activity-card[data-activity="game"] .card-title {
	color: #EC4899;
}

.stat-icon {
	font-size: 11px;
}

/* ===== REWARD BADGE ===== */
.card-reward {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	background: var(--gold-bg, rgba(245, 158, 11, 0.15));
	border: 1px solid var(--gold, #F59E0B);
	border-radius: 20px;
}

.reward-icon {
	font-size: 12px;
}

.reward-amount {
	font-size: 13px;
	font-weight: 700;
	color: var(--gold-light, #FBBF24);
}

/* ===== ARROW ===== */
.card-arrow {
	flex-shrink: 0;
	color: var(--accent-color, #D97706);
	font-size: 16px;
	margin-left: 4px;
	transition: transform 0.2s ease, opacity 0.2s ease;
	opacity: 0.6;
}

.activity-card:hover .card-arrow {
	transform: translateX(3px);
	opacity: 1;
	animation: arrowPulse 1s ease-in-out infinite;
}

@keyframes arrowPulse {
	0%, 100% { transform: translateX(3px); }
	50% { transform: translateX(6px); }
}

/* ===== ACCENT COLORS ===== */
.activity-card[data-activity="video"] {
	--accent-color: #EF4444;
}

.activity-card[data-activity="music"] {
	--accent-color: #22C55E;
}

.activity-card[data-activity="social"] {
	--accent-color: #3B82F6;
}

.activity-card[data-activity="survey"] {
	--accent-color: #A855F7;
}

.activity-card[data-activity="tasks"] {
	--accent-color: #06B6D4;
}

.activity-card[data-activity="game"] {
	--accent-color: #EC4899;
}

/* Hover glow based on accent */
.activity-card:hover {
	box-shadow: 
		0 4px 16px rgba(0,0,0,0.3),
		0 0 20px color-mix(in srgb, var(--accent-color) 20%, transparent);
}

/* ===== DISABLED STATE ===== */
.activity-card.card-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.activity-card.card-disabled:hover {
	transform: none;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.activity-card.card-disabled .card-arrow {
	display: none;
}

.card-soon-badge {
	font-size: 10px;
	font-weight: 600;
	color: var(--muted, #78716C);
	background: var(--bg-tertiary, #292524);
	padding: 4px 8px;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ===== SECTION LABEL ===== */
.section-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--muted, #78716C);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 8px 0 4px 0;
}

/* ===== TOAST ===== */
.activity-toast {
	position: fixed;
	bottom: 100px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--bg-tertiary, #292524);
	color: var(--text, #FAFAF9);
	padding: 12px 24px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
	border: 1px solid var(--border, #292524);
	animation: toastIn 0.25s ease-out;
	z-index: 1000;
}

@keyframes toastIn {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}