/**
 * Стили для тир-листа в стиле genshin.gg
 */

/* Контейнер тир-листа */
.genshin-tier-list-container {
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	background: #1a1f2e; /* Темно-синий фон */
	min-height: 100vh;
	box-sizing: border-box;
}

.genshin-tier-list-container * {
	box-sizing: border-box;
}

/* Строка уровня тир-листа */
.tier-row {
	display: flex !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
	position: relative !important;
	flex-direction: row !important;
	align-items: stretch !important;
	min-height: 130px;
}

/* Вертикальная цветная полоса слева */
.tier-label-bar {
	flex-shrink: 0;
	width: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	position: relative;
	padding: 15px 0;
	border-right: 1px solid rgba(0,0,0,0.1);
}

.tier-label {
	font-size: 24px;
	font-weight: 900;
	color: #fff;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
	letter-spacing: 2px;
}

/* Цвета полос для разных уровней */
.tier-row.tier-s .tier-label-bar { background: linear-gradient(180deg, #FF4444 0%, #CC0000 100%); }
.tier-row.tier-a .tier-label-bar { background: linear-gradient(180deg, #FF8844 0%, #CC6600 100%); }
.tier-row.tier-b .tier-label-bar { background: linear-gradient(180deg, #FFCC44 0%, #CC9900 100%); }
.tier-row.tier-c .tier-label-bar { background: linear-gradient(180deg, #44FF44 0%, #00CC00 100%); }
.tier-row.tier-d .tier-label-bar { background: linear-gradient(180deg, #8888FF 0%, #4444CC 100%); }

/* Горизонтальный ряд персонажей */
.tier-characters-row {
	display: flex !important;
	flex-wrap: wrap !important;
	flex-direction: row !important;
	gap: 10px !important;
	padding: 15px !important;
	flex: 1 !important;
	background: rgba(255, 255, 255, 0.02) !important;
	align-items: flex-start !important;
	overflow: visible !important;
	width: 100% !important;
}

/* Карточка персонажа */
.genshin-tier-list-container .character-card {
	display: inline-flex !important;
	flex-direction: column !important;
	width: 90px !important;
	min-width: 90px !important;
	max-width: 90px !important;
	margin: 0 0 10px 0 !important;
	text-decoration: none !important;
	border: none !important;
	background: transparent !important;
	float: none !important;
	vertical-align: top !important;
}

.genshin-tier-list-container .character-card:hover {
	transform: translateY(-5px);
	transition: transform 0.2s ease;
}

/* Портрет персонажа */
.genshin-tier-list-container .character-portrait {
	position: relative !important;
	width: 90px !important;
	height: 90px !important;
	min-height: 90px !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #333 !important;
	border: 2px solid rgba(255, 255, 255, 0.15) !important;
	margin-bottom: 5px !important;
	box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
}

/* Изображение внутри портрета - САМОЕ ВАЖНОЕ */
.genshin-tier-list-container .character-portrait img,
.genshin-tier-list-container .character-portrait .character-image {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center top !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	max-width: none !important;
	max-height: none !important;
}

/* Бейдж элемента */
.character-element-badge {
	position: absolute;
	bottom: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: bold;
	color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	z-index: 2;
}

/* Цвета элементов */
.element-pyro { background: #ff6b6b; }
.element-hydro { background: #4ecdc4; }
.element-electro { background: #ffd93d; color: #333; }
.element-anemo { background: #95e1d3; color: #333; }
.element-geo { background: #feca57; color: #333; }
.element-cryo { background: #74b9ff; }
.element-dendro { background: #6c5ce7; }

/* Детали персонажа (текст) */
.genshin-tier-list-container .character-details {
	text-align: center !important;
	padding: 0 2px !important;
}

.genshin-tier-list-container .character-name {
	font-size: 11px !important;
	line-height: 1.2 !important;
	font-weight: 600 !important;
	color: #fff !important;
	margin: 0 !important;
	width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	display: block !important;
}

.genshin-tier-list-container .character-role,
.genshin-tier-list-container .character-constellation {
	font-size: 9px !important;
	color: rgba(255, 255, 255, 0.7) !important;
	margin-top: 2px !important;
}

/* Плейсхолдер */
.character-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #333;
	color: #777;
	font-size: 24px;
	font-weight: bold;
}

/* Сообщение об отсутствии данных */
.genshin-empty-message {
	text-align: center;
	padding: 40px;
	color: rgba(255, 255, 255, 0.5);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
	.genshin-tier-list-container .character-card {
		width: 70px !important;
		min-width: 70px !important;
	}
	.genshin-tier-list-container .character-portrait {
		width: 70px !important;
		height: 70px !important;
		min-height: 70px !important;
	}
	.tier-label-bar { width: 30px; }
	.tier-label { font-size: 16px; }
}
