/**
 * Audio Player Component Styles
 *
 * Fixed-position background music toggle in bottom-right corner.
 * Uses theme.json design tokens for colors and spacing.
 *
 * @package cw-the-dark
 */

/* Audio Player Container */
.cw-audio-player {
	position: fixed;
	bottom: var(--wp--preset--spacing--30); /* ~1.5-2.5rem */
	right: var(--wp--preset--spacing--30);
	z-index: 999;
}

/* Toggle Button */
.cw-audio-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: none;
	background: rgba(10, 9, 8, 0.8); /* var(--wp--preset--color--base) with opacity */
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.cw-audio-toggle:hover {
	background: rgba(10, 9, 8, 0.95);
	transform: scale(1.05);
}

.cw-audio-toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent); /* Oxblood */
	outline-offset: 2px;
}

/* SVG Icons */
.cw-audio-toggle .cw-icon {
	width: 24px;
	height: 24px;
	fill: var(--wp--preset--color--contrast); /* Bone color */
}

/* Hidden State */
.cw-hidden {
	display: none !important;
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
	.cw-audio-toggle {
		transition: none;
	}
}

/* Mobile adjustments */
@media (max-width: 768px) {
	.cw-audio-player {
		bottom: var(--wp--preset--spacing--20);
		right: var(--wp--preset--spacing--20);
	}

	.cw-audio-toggle {
		width: 40px;
		height: 40px;
	}

	.cw-audio-toggle .cw-icon {
		width: 20px;
		height: 20px;
	}
}
