/**
 * D2G Audio Player Widget Styles
 */

.d2g-audio-card {
	background-color: #0B3D36;
	border: 1px solid #0B3D36;
	color: #ffffff;
	padding: 32px;
	border-radius: 12px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	position: relative;
	overflow: hidden;
}

@media (min-width: 640px) {
	.d2g-audio-card {
		flex-direction: row;
		align-items: center;
	}
}

/* Subtle sand texture overlay */
.d2g-audio-card.has-texture::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c89b5b' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 1;
}

/* Decorative watermark icon in bottom right */
.d2g-audio-watermark {
	position: absolute;
	right: -40px;
	bottom: -40px;
	opacity: 0.1;
	font-size: 150px;
	line-height: 1;
	color: #ffffff;
	pointer-events: none;
	z-index: 1;
}

.d2g-audio-watermark svg {
	width: 150px;
	height: 150px;
	fill: currentColor;
}

/* Play/Pause Button */
.d2g-audio-btn-wrap {
	flex-shrink: 0;
	position: relative;
	z-index: 10;
}

.d2g-audio-play-btn {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #C89B5B;
	color: #ffffff;
	border: none;
	outline: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
	transition: all 0.25s ease;
	font-size: 22px;
	padding: 0;
}

.d2g-audio-play-btn:hover,
.d2g-audio-play-btn:focus {
	background-color: #ffffff;
	color: #C89B5B;
	transform: scale(1.05);
	box-shadow: 0 15px 20px -3px rgba(0, 0, 0, 0.3);
}

.d2g-audio-play-btn .d2g-icon-play,
.d2g-audio-play-btn .d2g-icon-pause {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.d2g-audio-play-btn .d2g-icon-play i,
.d2g-audio-play-btn .d2g-icon-play svg {
	margin-left: 2px;
}

.d2g-audio-play-btn svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Content & Progress area */
.d2g-audio-content {
	flex: 1;
	width: 100%;
	text-align: center;
	position: relative;
	z-index: 10;
}

@media (min-width: 640px) {
	.d2g-audio-content {
		text-align: left;
	}
}

.d2g-audio-title {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 20px;
	color: #F8F7F4;
	margin: 0 0 4px 0;
	line-height: 1.3;
}

.d2g-audio-subtitle {
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	color: #EADCC8;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 16px 0;
	font-weight: 600;
}

/* Scrubbable Progress Bar */
.d2g-audio-progress-wrap {
	width: 100%;
	height: 6px;
	background-color: rgba(95, 127, 110, 0.5);
	border-radius: 9999px;
	position: relative;
	cursor: pointer;
	user-select: none;
	touch-action: none;
}

.d2g-audio-progress-bar {
	height: 100%;
	background-color: #C89B5B;
	border-radius: 9999px;
	width: 0%;
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none;
	transition: width 0.1s linear;
}

.d2g-audio-scrubber {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: #ffffff;
	position: absolute;
	top: 50%;
	left: 0%;
	transform: translate(-50%, -50%);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	pointer-events: none;
	transition: left 0.1s linear;
}

/* Time Counters */
.d2g-audio-time-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	color: #EADCC8;
	margin-top: 8px;
	font-weight: 500;
}
