/* Monster Grid Layout */
.monster-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	padding: 20px 0;
}

@media (max-width: 1400px) {
	.monster-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 1024px) {
	.monster-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.monster-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.monster-grid {
		grid-template-columns: 1fr;
	}
}

/* Monster Card */
.monster-card {
	background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 10px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.monster-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
	border-color: rgba(255, 255, 255, 0.3);
	background: linear-gradient(135deg, rgba(40, 40, 40, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
}

.monster-card-image {
	height: 65px;
	width: 65px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 8px auto;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
	border-radius: 4px;
}

.monster-card-image img {
	max-width: 65px;
	max-height: 65px;
}

.monster-card-name {
	font-size: 13px;
	font-weight: bold;
	color: #e8e8e8;
	margin-bottom: 8px;
	min-height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.monster-card-stats {
	display: flex;
	justify-content: space-around;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.monster-card-stat {
	font-size: 12px;
	color: #aaa;
}

.monster-card-stat .stat-label {
	color: #888;
	font-weight: bold;
}

.monster-card-stat .stat-value {
	color: #e8e8e8;
}

/* Monster Detail Page */
.monster-detail-container {
	max-width: 900px;
	margin: 0 auto;
}

.monster-detail-header {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	padding: 12px;
	background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.monster-detail-image {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.monster-detail-image img {
	max-width: 100%;
	max-height: 100%;
}

.monster-detail-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.monster-detail-info h2 {
	margin: 0 0 8px 0;
	color: #e8e8e8;
	font-size: 20px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.monster-description {
	color: #aaa;
	font-style: italic;
	margin: 0;
	font-size: 12px;
}

.monster-detail-stats,
.monster-detail-flags,
.monster-detail-immunities,
.monster-detail-elements,
.monster-detail-loot {
	margin-bottom: 30px;
}

.monster-detail-stats h3,
.monster-detail-flags h3,
.monster-detail-immunities h3,
.monster-detail-elements h3,
.monster-detail-loot h3 {
	margin: 0 0 15px 0;
	color: #e8e8e8;
	font-size: 20px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Yellow header row style */
tr.yellow td,
tr.yellow th {
	background: url(../images/tabtitle_art.png) repeat-x top left, linear-gradient(rgba(50, 50, 50, 0.95), rgba(30, 30, 30, 0.95));
	padding: 13px 13px;
	border-bottom: 1px solid #050505;
	font-weight: bold;
	color: rgb(151, 138, 128);
	text-shadow: 0 1px 2px #000;
	text-align: left;
}

@media (max-width: 768px) {
	.monster-detail-header {
		flex-direction: column;
		align-items: center;
	}
	
	.monster-detail-image {
		width: 150px;
		height: 150px;
	}
	
	.monster-detail-info {
		text-align: center;
	}
}
