/* nukumori-icon custom styles */

/* Mobile: prevent horizontal scroll */
html, body {
	overflow-x: hidden;
	max-width: 100%;
}

/* Icon Grid Layout */
.icon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

.icon-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #f9f9f9;
	border-radius: 8px;
	padding: 1.5rem;
	transition: transform 0.2s, box-shadow 0.2s;
}

.icon-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.icon-item a {
	display: block;
	width: 100%;
	margin-bottom: 1rem;
	text-decoration: none;
}

.icon-item img {
	max-width: 100%;
	height: auto;
	width: 200px;
	height: 200px;
	object-fit: contain;
	border-radius: 4px;
	background: white;
	padding: 0.5rem;
}

.icon-item h5 {
	margin: 1rem 0 0 0;
	font-size: 1rem;
	line-height: 1.4;
}

.icon-item h5 a {
	color: #494949;
	text-decoration: none;
}

.icon-item h5 a:hover {
	color: #686868;
}

/* Logo customization */
.custom-logo {
	max-width: 240px;
	height: auto;
	display: block;
}

/* Sidebar adjustments */
.sidebar {
	background: #f9f9f9;
	padding: 1.5rem;
	border-radius: 4px;
	margin-top: 2rem;
}

.widget {
	margin-bottom: 2rem;
}

.widget-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 1rem;
	border-bottom: 2px solid #494949;
	padding-bottom: 0.5rem;
}

.widget ul {
	list-style: none;
	padding: 0;
}

.widget li {
	margin-bottom: 0.5rem;
}

.widget a {
	color: #494949;
	text-decoration: none;
}

.widget a:hover {
	color: #686868;
}

/* Tag cloud styling */
.tagcloud a {
	display: inline-block;
	padding: 0.4rem 0.8rem;
	margin: 0.25rem;
	background: #e8e8e8;
	border-radius: 4px;
	color: #494949;
	text-decoration: none;
	font-size: 0.9rem;
	transition: all 0.2s;
}

.tagcloud a:hover {
	background: #686868;
	color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.icon-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.icon-item {
		padding: 1rem;
	}

	.icon-item img {
		width: 150px;
		height: 150px;
	}
}

@media (max-width: 480px) {
	.icon-grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.icon-item {
		padding: 0.75rem;
	}

	.icon-item img {
		width: 120px;
		height: 120px;
	}
}

/* Remove default button styling */
.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background-color: #494949;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.2s;
	margin-top: 1rem;
}

.btn:hover {
	background-color: #686868;
}

/* Entry content typography */
.entry-content {
	font-size: 1rem;
	line-height: 1.6;
}

.entry-content p {
	margin-bottom: 1.5rem;
}

.entry-content h2 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-size: 1.75rem;
	color: #494949;
}

.entry-content h3 {
	font-size: 1.35rem;
	color: #494949;
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}
