/**
 * Shohada Memorial - Salawat Counter Stylesheet
 */

.shohada-salawat-card {
	direction: rtl;
	text-align: right;
	background: linear-gradient(135deg, #132235 0%, #1A2E44 100%);
	border: 1px solid rgba(197, 160, 89, 0.3);
	border-radius: 16px;
	padding: 20px 24px;
	margin: 20px 0;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
	color: #fff;
	container-type: inline-size;
	container-name: shohadasalawat;
	box-sizing: border-box;
}

.salawat-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.salawat-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(226, 190, 118, 0.15);
	border: 1px solid #C5A059;
	color: #E2BE76;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.salawat-title {
	margin: 0 0 3px 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #E2BE76;
}

.salawat-phrase {
	font-size: 0.82rem;
	color: #94A3B8;
	font-family: inherit;
}

.salawat-counter-display {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	background: rgba(0, 0, 0, 0.25);
	border-radius: 12px;
	padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.counter-number-wrap {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.counter-number {
	font-size: 1.8rem;
	font-weight: 800;
	color: #10B981;
	text-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
	transition: transform 0.15s ease;
}

.counter-number.scale-up {
	transform: scale(1.15);
}

.counter-label {
	font-size: 0.85rem;
	color: #CBD5E1;
}

.salawat-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.btn-salawat-send {
	background: linear-gradient(135deg, #0D1B2A 0%, #162638 100%);
	border: 1px solid #C5A059;
	color: #E2BE76;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
	position: relative;
	overflow: hidden;
}

.btn-salawat-send:hover {
	background: #C5A059;
	color: #0D1B2A;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.btn-salawat-send:active {
	transform: translateY(0);
}

/* User History Chip */
.salawat-user-history {
	margin-top: 14px;
	display: flex;
	justify-content: center;
}

.history-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.3);
	border-radius: 20px;
	padding: 5px 14px;
	font-size: 0.8rem;
	color: #A7F3D0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	animation: shohadaFadeIn 0.3s ease;
}

.history-chip .history-count {
	color: #34D399;
	font-weight: 800;
	font-size: 0.95rem;
}

/* Floating Particles */
.shohada-salawat-card {
	position: relative;
	overflow: hidden;
}

.salawat-particles-layer {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 50;
}

.floating-salawat-particle {
	position: absolute;
	color: #E2BE76;
	font-weight: 800;
	font-size: 0.85rem;
	text-shadow: 0 0 10px rgba(226, 190, 118, 0.7);
	user-select: none;
	pointer-events: none;
	white-space: nowrap;
	animation: salawatParticleFly 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes salawatParticleFly {
	0% {
		opacity: 1;
		transform: translate(0, 0) scale(0.8);
	}
	40% {
		opacity: 1;
		transform: translate(var(--tx, 0), -40px) scale(1.15);
	}
	100% {
		opacity: 0;
		transform: translate(var(--tx, 0), -90px) scale(0.9);
	}
}

/* Mobile & Container Responsive Adaptations */
@media (max-width: 520px) {
	.shohada-salawat-card {
		padding: 16px 14px !important;
		border-radius: 14px !important;
	}
	.salawat-header {
		gap: 10px;
		margin-bottom: 12px;
	}
	.salawat-icon {
		width: 36px;
		height: 36px;
	}
	.salawat-title {
		font-size: 0.98rem;
	}
	.salawat-phrase {
		font-size: 0.78rem;
	}
	.salawat-counter-display {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 12px;
		padding: 12px 14px;
	}
	.counter-number-wrap {
		justify-content: center;
		width: 100%;
	}
	.counter-number {
		font-size: 1.6rem;
	}
	.salawat-actions {
		width: 100%;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 6px;
	}
	.btn-salawat-send {
		width: 100%;
		padding: 8px 4px;
		font-size: 0.8rem;
		text-align: center;
		justify-content: center;
		display: inline-flex;
		align-items: center;
	}
}

@media (max-width: 340px) {
	.salawat-actions {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}

@container shohadasalawat (max-width: 520px) {
	.shohada-salawat-card {
		padding: 16px 14px !important;
		border-radius: 14px !important;
	}
	.salawat-header {
		gap: 10px;
		margin-bottom: 12px;
	}
	.salawat-icon {
		width: 36px;
		height: 36px;
	}
	.salawat-title {
		font-size: 0.98rem;
	}
	.salawat-phrase {
		font-size: 0.78rem;
	}
	.salawat-counter-display {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 12px;
		padding: 12px 14px;
	}
	.counter-number-wrap {
		justify-content: center;
		width: 100%;
	}
	.counter-number {
		font-size: 1.6rem;
	}
	.salawat-actions {
		width: 100%;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 6px;
	}
	.btn-salawat-send {
		width: 100%;
		padding: 8px 4px;
		font-size: 0.8rem;
		text-align: center;
		justify-content: center;
		display: inline-flex;
		align-items: center;
	}
}

@container shohadasalawat (max-width: 340px) {
	.salawat-actions {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}
