/**
 * Icon Grid Animation Widget Styles
 *
 * @package Icon_Grid_Animation
 */

.icon-grid-wrapper {
	position: relative;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}

.icon-grid-container {
	display: grid;
	position: relative;
	width: 100%;
	grid-column: 1;
	grid-row: 1;
	/* Edge Blur Effect - will be customized via inline styles */
	box-shadow: 
		inset 0 0 30px rgba(0, 0, 0, 0.3),
		0 0 60px rgba(0, 0, 0, 0.5),
		0 0 100px rgba(0, 0, 0, 0.3);
	border-radius: 16px;
	padding: 30px;
	background: transparent;
}

.icon-grid-item {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	filter: grayscale(100%);
	opacity: 0.6;
	cursor: default;
}

.icon-grid-item-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
}

.icon-grid-item-icon i,
.icon-grid-item-icon svg {
	width: 40px;
	height: 40px;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-grid-item-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State - Random Selection (just color, no background) */
.icon-grid-item.active {
	filter: grayscale(0%);
	opacity: 1;
    border: 1px solid red;
}

/* Center Icon Container */
.icon-grid-center-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	pointer-events: none;
}

.icon-grid-center-icon-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	filter: grayscale(0%);
	opacity: 1;
}

.icon-grid-center-icon-inner i,
.icon-grid-center-icon-inner svg {
	width: 1em;
	height: 1em;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-grid-center-icon-inner img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.icon-grid-container {
		padding: 20px;
		gap: 15px !important;
	}
}

@media (max-width: 480px) {
	.icon-grid-container {
		padding: 15px;
		gap: 10px !important;
	}
}
