/* ============================================
   LISTEN MUSIC PAGE - NUTTY DESIGN SYSTEM
   Green theme for music content
   Prefix: lm- (listen music)
   ============================================ */

.lm-listen-page {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ===== TRACK CARD ===== */
.lm-track-card {
	background: var(--bg-secondary, #1C1917);
	border: 1px solid var(--border, #292524);
	border-radius: 16px;
	overflow: hidden;
}

.lm-track-thumbnail-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.lm-track-thumbnail {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-color: var(--bg-tertiary, #292524);
}

.lm-play-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.3);
	opacity: 0;
	transition: opacity 0.2s;
}

.lm-track-thumbnail:hover .lm-play-overlay {
	opacity: 1;
}

.lm-play-btn {
	width: 64px;
	height: 64px;
	background: rgba(34, 197, 94, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: white;
	box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

.lm-platform-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: white;
	backdrop-filter: blur(4px);
}

.lm-platform-icon {
	font-size: 14px;
}

.lm-track-details {
	padding: 16px;
	text-align: center;
}

.lm-track-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text, #FAFAF9);
	margin: 0 0 4px 0;
	line-height: 1.3;
}

.lm-track-artist {
	font-size: 14px;
	color: var(--text-secondary, #A8A29E);
	margin: 0 0 12px 0;
}

/* Track Stats Row */
.lm-track-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 20px;
	background: var(--bg-tertiary, #292524);
	border-radius: 12px;
}

.lm-track-stat {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: var(--text-secondary, #A8A29E);
}

.lm-stat-icon {
	font-size: 16px;
}

.lm-stat-text strong {
	color: var(--text, #FAFAF9);
	font-weight: 700;
	font-size: 16px;
}

.lm-track-stat:last-child .lm-stat-text strong {
	color: var(--primary-light, #F59E0B);
}

.lm-stats-dot {
	color: var(--muted, #78716C);
	font-size: 12px;
}

/* ===== LISTENING CARD ===== */
.lm-listening-card {
	background: var(--bg-secondary, #1C1917);
	border: 1px solid var(--border, #292524);
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.lm-listening-animation {
	position: relative;
	width: 80px;
	height: 80px;
	margin-bottom: 16px;
}

.lm-listening-ring {
	position: absolute;
	inset: 0;
	border: 3px solid transparent;
	border-top-color: #22C55E;
	border-radius: 50%;
	animation: lmRingSpin 1.5s linear infinite;
}

.lm-listening-ring.lm-ring-2 {
	inset: 8px;
	border-top-color: rgba(34, 197, 94, 0.4);
	animation-duration: 2s;
	animation-direction: reverse;
}

@keyframes lmRingSpin {
	to { transform: rotate(360deg); }
}

.lm-listening-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}

.lm-listening-info h4 {
	font-size: 16px;
	font-weight: 700;
	color: var(--text, #FAFAF9);
	margin: 0 0 4px 0;
}

.lm-listening-info p {
	font-size: 13px;
	color: var(--text-secondary, #A8A29E);
	margin: 0;
}

/* ===== ACTION SECTION ===== */
.lm-action-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lm-listen-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
	border: none;
	border-radius: 14px;
	color: white;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.lm-listen-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4);
}

.lm-listen-btn:active {
	transform: translateY(0);
}

.lm-listen-btn-icon {
	font-size: 18px;
}

.lm-skip-btn {
	width: 100%;
	padding: 14px 20px;
	background: transparent;
	border: 1px solid var(--border, #292524);
	border-radius: 12px;
	color: var(--text-secondary, #A8A29E);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.lm-skip-btn:hover {
	background: var(--bg-tertiary, #292524);
	color: var(--text, #FAFAF9);
}

/* ===== INFO CARD ===== */
.lm-info-card {
	background: var(--bg-secondary, #1C1917);
	border: 1px solid var(--border, #292524);
	border-radius: 12px;
	padding: 14px 16px;
	text-align: center;
}

.lm-info-card p {
	margin: 0;
	font-size: 13px;
	color: var(--text-secondary, #A8A29E);
	line-height: 1.5;
}

.lm-info-card strong {
	color: var(--text, #FAFAF9);
	font-weight: 700;
}

/* ===== SESSION STATS CARD ===== */
.lm-session-card {
	background: var(--bg-secondary, #1C1917);
	border: 1px solid var(--border, #292524);
	border-radius: 16px;
	overflow: hidden;
}

.lm-session-header {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border, #292524);
}

.lm-session-title {
	font-size: 12px;
	font-weight: 600;
	color: var(--muted, #78716C);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.lm-session-stats {
	display: flex;
	align-items: center;
	padding: 16px;
}

.lm-stat-item {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.lm-stat-value {
	font-size: 20px;
	font-weight: 700;
	color: var(--text, #FAFAF9);
	font-variant-numeric: tabular-nums;
}

.lm-stat-label {
	font-size: 11px;
	color: var(--muted, #78716C);
	margin-top: 2px;
}

.lm-stat-divider {
	width: 1px;
	height: 32px;
	background: var(--border, #292524);
}

.lm-stat-highlight .lm-stat-value {
	color: var(--primary-light, #F59E0B);
}

/* ===== STOP BUTTON ===== */
.lm-stop-btn {
	width: 100%;
	padding: 14px 20px;
	background: var(--bg-secondary, #1C1917);
	border: 1px solid var(--border, #292524);
	border-radius: 12px;
	color: var(--text-secondary, #A8A29E);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.lm-stop-btn:hover {
	background: var(--bg-tertiary, #292524);
	border-color: #22C55E;
	color: #22C55E;
}

/* ===== MODALS ===== */
.lm-modal,
.lm-energy-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lm-modal-overlay,
.lm-energy-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
}

.lm-modal-content,
.lm-energy-modal-content {
	position: relative;
	background: var(--bg-secondary, #1C1917);
	border-radius: 20px;
	padding: 24px;
	width: 90%;
	max-width: 340px;
	border: 1px solid var(--border, #292524);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: lmModalIn 0.25s ease-out;
}

@keyframes lmModalIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.lm-modal-header,
.lm-energy-modal-header {
	text-align: center;
	margin-bottom: 20px;
}

.lm-modal-icon {
	font-size: 40px;
	display: block;
	margin-bottom: 12px;
}

.lm-energy-modal-icon {
	width: 40px;
	height: 40px;
	display: block;
	margin: 0 auto 12px auto;
}

.lm-modal-header h3,
.lm-energy-modal-header h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--text, #FAFAF9);
	margin: 0 0 4px 0;
}

.lm-modal-header p,
.lm-energy-modal-header p {
	font-size: 13px;
	color: var(--text-secondary, #A8A29E);
	margin: 0;
	line-height: 1.4;
}

/* Modal Stats */
.lm-modal-stats {
	background: var(--bg-tertiary, #292524);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 20px;
}

.lm-modal-stat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
}

.lm-modal-stat:not(:last-child) {
	border-bottom: 1px solid var(--border, #3f3f46);
}

.lm-modal-stat-label {
	font-size: 13px;
	color: var(--text-secondary, #A8A29E);
}

.lm-modal-stat-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--text, #FAFAF9);
}

.lm-modal-stat-nut {
	color: var(--primary-light, #F59E0B);
}

/* Modal Buttons */
.lm-modal-btn {
	width: 100%;
	padding: 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.lm-modal-btn-primary,
.lm-energy-modal-close {
	background: transparent;
	border: 1px solid #22C55E;
	color: #22C55E;
	width: 100%;
	padding: 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.lm-modal-btn-primary:hover,
.lm-energy-modal-close:hover {
	background: rgba(34, 197, 94, 0.1);
	color: #4ADE80;
}

.lm-modal-btn-secondary {
	background: transparent;
	border: 1px solid var(--border, #292524);
	color: var(--text-secondary, #A8A29E);
}

.lm-modal-btn-secondary:hover {
	background: var(--bg-tertiary, #292524);
	color: var(--text, #FAFAF9);
}

.lm-modal-actions {
	display: flex;
	gap: 12px;
}

.lm-modal-actions .lm-modal-btn {
	flex: 1;
}

/* ===== STAT DELTA ANIMATION ===== */
.lm-stat-value.lm-stat-delta-active {
	color: #22C55E !important;
	animation: lmDeltaPulse 0.4s ease-out;
}

@keyframes lmDeltaPulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.15);
	}
	100% {
		transform: scale(1);
	}
}
