/* ============================================
   基本スタイル
   ============================================ */
.ut-crazy-client-stats-block {
	/* marginはWordPress block supportsで制御 */
}

.ut-crazy-client-stats-container {
	/* padding, border, box-shadowはインラインスタイルで制御 */
}

.ut-crazy-client-stats-content {
	position: relative;
}

.ut-crazy-client-stats-loading {
	text-align: center;
	padding: 20px;
	color: #666;
}

/* ============================================
   コンパクトモード
   ============================================ */
.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-container {
	padding: 12px;
}

.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #e2e8f0;
}

.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-label {
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-value {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-level {
	font-size: 24px;
	font-weight: 700;
}

/* ============================================
   詳細モード（カード型）
   ============================================ */
.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-container {
	padding: 20px;
}

.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-card {
	padding: 16px;
	background-color: #f8f9fa;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
}

.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-label {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-value {
	font-size: 28px;
	font-weight: 700;
	color: #333;
}

.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-level {
	font-size: 36px;
	font-weight: 700;
}

/* ============================================
   プログレスバー
   ============================================ */
.ut-crazy-client-stats-progress {
	margin-top: 16px;
	margin-bottom: 16px;
}

.ut-crazy-client-stats-progress-label {
	font-size: 12px;
	color: #666;
	margin-bottom: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ut-crazy-client-stats-progress-bar {
	width: 100%;
	height: 12px;
	background-color: #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

.ut-crazy-client-stats-progress-fill {
	height: 100%;
	background-color: #3498db;
	transition: width 0.3s ease;
	border-radius: 6px;
}

/* プログレスバースタイル: グラデーション */
.ut-crazy-client-stats-progress-bar[data-style="gradient"] .ut-crazy-client-stats-progress-fill {
	background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
}

/* プログレスバースタイル: アニメーション */
.ut-crazy-client-stats-progress-bar[data-style="animated"] .ut-crazy-client-stats-progress-fill {
	background: linear-gradient(90deg, #3498db 0%, #2ecc71 50%, #3498db 100%);
	background-size: 200% 100%;
	animation: progress-animation 2s linear infinite;
}

@keyframes progress-animation {
	0% {
		background-position: 0% 0%;
	}
	100% {
		background-position: 200% 0%;
	}
}

/* ============================================
   レスポンシブ対応: 小さいモバイル（max-width: 400px）
   ============================================ */
@media only screen and (max-width: 400px) {
	.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-container {
		padding: 12px;
	}

	.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-label {
		font-size: 12px;
	}

	.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-value {
		font-size: 14px;
	}

	.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-level {
		font-size: 20px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-container {
		padding: 12px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-card {
		padding: 12px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-value {
		font-size: 24px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-level {
		font-size: 28px;
	}

	.ut-crazy-client-stats-progress-bar {
		height: 8px;
	}
}

/* ============================================
   レスポンシブ対応: タブレット（min-width: 481px）
   ============================================ */
@media only screen and (min-width: 481px) {
	.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-container {
		padding: 16px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-container {
		padding: 20px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.ut-crazy-client-stats-progress-bar {
		height: 12px;
	}
}

/* ============================================
   レスポンシブ対応: デスクトップ（min-width: 769px）
   ============================================ */
@media only screen and (min-width: 769px) {
	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}

	.ut-crazy-client-stats-progress-bar {
		height: 16px;
	}
}

/* ============================================
   レスポンシブ対応: 大きなデスクトップ（min-width: 1030px）
   ============================================ */
@media only screen and (min-width: 1030px) {
	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-grid {
		grid-template-columns: repeat(4, 1fr);
		max-width: 1200px;
		margin: 0 auto;
	}
}

/* ============================================
   レスポンシブ対応: HDサイズ（min-width: 1920px）
   ============================================ */
@media only screen and (min-width: 1920px) {
	.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-container {
		padding: 24px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-container {
		padding: 32px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-grid {
		gap: 24px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-card {
		padding: 24px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-value {
		font-size: 32px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-level {
		font-size: 40px;
	}

	.ut-crazy-client-stats-progress-bar {
		height: 20px;
	}
}

/* ============================================
   レスポンシブ対応: 4Kサイズ（min-width: 3840px）
   ============================================ */
@media only screen and (min-width: 3840px) {
	.ut-crazy-client-stats-block[data-display-mode="compact"] .ut-crazy-client-stats-container {
		padding: 32px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-container {
		padding: 48px;
		max-width: 2000px;
		margin: 0 auto;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-grid {
		gap: 32px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-card {
		padding: 32px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-value {
		font-size: 40px;
	}

	.ut-crazy-client-stats-block[data-display-mode="detailed"] .ut-crazy-client-stats-level {
		font-size: 48px;
	}

	.ut-crazy-client-stats-progress-bar {
		height: 24px;
	}
}

/* ============================================
   ブロック固有アニメーション
   ============================================ */
.ut-crazy-client-stats-level-up {
	animation: level-up-animation 0.5s ease;
}

@keyframes level-up-animation {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

.ut-crazy-client-stats-xp-gained {
	animation: xp-gained-animation 0.3s ease;
}

@keyframes xp-gained-animation {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
	100% {
		opacity: 1;
	}
}

/* ============================================
   統一アニメーションクラス（ホバー）
   ============================================ */
.ut-block-hover-scale:hover {
	transform: scale(1.05);
	transition: transform var(--animation-duration, 300ms) var(--animation-easing, ease);
}

.ut-block-hover-lift:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transition: transform var(--animation-duration, 300ms) var(--animation-easing, ease), box-shadow var(--animation-duration, 300ms) var(--animation-easing, ease);
}

.ut-block-hover-glow:hover {
	box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
	transition: box-shadow var(--animation-duration, 300ms) var(--animation-easing, ease);
}

.ut-block-hover-fade:hover {
	opacity: 0.8;
	transition: opacity var(--animation-duration, 300ms) var(--animation-easing, ease);
}

/* ============================================
   統一アニメーションクラス（クリック）
   ============================================ */
.ut-block-click-scale:active {
	transform: scale(0.95);
	transition: transform var(--animation-duration, 100ms) var(--animation-easing, ease);
}

.ut-block-click-bounce:active {
	animation: bounce var(--animation-duration, 300ms) var(--animation-easing, ease);
}

@keyframes bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* ============================================
   統一アニメーションクラス（スクロール）
   ============================================ */
.ut-block-scroll-fade-in {
	opacity: 0;
	transition: opacity var(--animation-duration, 500ms) var(--animation-easing, ease);
}

.ut-block-scroll-fade-in.ut-scroll-visible {
	opacity: 1;
}

.ut-block-scroll-slide-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity var(--animation-duration, 500ms) var(--animation-easing, ease), transform var(--animation-duration, 500ms) var(--animation-easing, ease);
}

.ut-block-scroll-slide-up.ut-scroll-visible {
	opacity: 1;
	transform: translateY(0);
}

.ut-block-scroll-slide-left {
	opacity: 0;
	transform: translateX(30px);
	transition: opacity var(--animation-duration, 500ms) var(--animation-easing, ease), transform var(--animation-duration, 500ms) var(--animation-easing, ease);
}

.ut-block-scroll-slide-left.ut-scroll-visible {
	opacity: 1;
	transform: translateX(0);
}

.ut-block-scroll-slide-right {
	opacity: 0;
	transform: translateX(-30px);
	transition: opacity var(--animation-duration, 500ms) var(--animation-easing, ease), transform var(--animation-duration, 500ms) var(--animation-easing, ease);
}

.ut-block-scroll-slide-right.ut-scroll-visible {
	opacity: 1;
	transform: translateX(0);
}

.ut-block-scroll-zoom-in {
	opacity: 0;
	transform: scale(0.8);
	transition: opacity var(--animation-duration, 500ms) var(--animation-easing, ease), transform var(--animation-duration, 500ms) var(--animation-easing, ease);
}

.ut-block-scroll-zoom-in.ut-scroll-visible {
	opacity: 1;
	transform: scale(1);
}

