/**
 * Shohada Memorial - Audio Player Stylesheet
 */

.shohada-audio-player {
	direction: rtl;
	text-align: right;
	background: linear-gradient(135deg, #0B1622 0%, #152438 100%);
	border: 1px solid rgba(197, 160, 89, 0.35);
	border-radius: 14px;
	padding: 16px 20px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	color: #fff;
	margin: 20px 0;
	container-type: inline-size;
	container-name: shohadaaudio;
	box-sizing: border-box;
}

.audio-main-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.audio-toggle-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #C5A059;
	color: #0D1B2A;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.2s ease;
	outline: none;
	box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.audio-toggle-btn:hover {
	transform: scale(1.06);
	background: #E2BE76;
}

.audio-info {
	flex: 1;
	min-width: 0;
}

.audio-title {
	font-size: 0.92rem;
	font-weight: 700;
	color: #F8FAFC;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 2px;
}

.audio-speaker {
	font-size: 0.78rem;
	color: #94A3B8;
}

.audio-time {
	font-size: 0.8rem;
	color: #CBD5E1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.audio-progress-container {
	cursor: pointer;
	padding: 6px 0;
}

.audio-progress-bar {
	height: 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	position: relative;
	overflow: hidden;
}

.audio-progress-filled {
	height: 100%;
	background: linear-gradient(90deg, #C5A059, #10B981);
	border-radius: 6px;
	transition: width 0.1s linear;
}

/* Audio Text Drawer Accordion */
.audio-drawer-toggle-row {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.btn-audio-text-toggle {
	background: transparent;
	border: 1px dashed rgba(197, 160, 89, 0.4);
	color: #E2BE76;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	outline: none;
}

.btn-audio-text-toggle:hover {
	background: rgba(197, 160, 89, 0.12);
	border-style: solid;
	border-color: #C5A059;
}

.btn-audio-text-toggle .drawer-arrow {
	font-size: 0.65rem;
	transition: transform 0.2s ease;
}

.btn-audio-text-toggle.is-open .drawer-arrow {
	transform: rotate(180deg);
}

.audio-text-drawer {
	margin-top: 12px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(197, 160, 89, 0.2);
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 0.86rem;
	line-height: 1.8;
	color: #E2E8F0;
	text-align: justify;
	animation: shohadaFadeIn 0.3s ease;
}

.audio-text-drawer p {
	margin: 0;
}

/* Mobile & Container Responsive Adaptations */
@media (max-width: 480px) {
	.shohada-audio-player {
		padding: 14px !important;
		border-radius: 12px !important;
	}
	.audio-main-row {
		gap: 10px;
	}
	.audio-toggle-btn {
		width: 40px;
		height: 40px;
	}
	.audio-title {
		font-size: 0.88rem;
	}
	.audio-speaker {
		font-size: 0.74rem;
	}
	.audio-time {
		font-size: 0.75rem;
	}
	.btn-audio-text-toggle {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 340px) {
	.audio-main-row {
		flex-wrap: wrap;
	}
	.audio-time {
		width: 100%;
		text-align: left;
	}
}

@container shohadaaudio (max-width: 480px) {
	.shohada-audio-player {
		padding: 14px !important;
		border-radius: 12px !important;
	}
	.audio-main-row {
		gap: 10px;
	}
	.audio-toggle-btn {
		width: 40px;
		height: 40px;
	}
	.audio-title {
		font-size: 0.88rem;
	}
	.audio-speaker {
		font-size: 0.74rem;
	}
	.audio-time {
		font-size: 0.75rem;
	}
	.btn-audio-text-toggle {
		width: 100%;
		justify-content: center;
	}
}

@container shohadaaudio (max-width: 340px) {
	.audio-main-row {
		flex-wrap: wrap;
	}
	.audio-time {
		width: 100%;
		text-align: left;
	}
}
