/* Blogsy Child — tools.netconfig.io cross-link box, shown at the end of
 * every post. Uses the theme's own CSS variables so it matches whatever
 * color scheme is active, with safe fallbacks.
 */

.nc-tools-box {
	margin: 40px 0 8px;
	padding: 24px;
	border: 1px solid rgba( 0, 0, 0, 0.08 );
	border-radius: 12px;
	background: var(--nc-bg-panel, #fff);
}

.nc-tools-box__heading {
	margin: 0 0 4px;
	font-size: 19px;
}

.nc-tools-box__sub {
	margin: 0 0 18px;
	font-size: 14px;
	opacity: 0.75;
}

.nc-tools-box__grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 12px;
}

@media ( max-width: 700px ) {
	.nc-tools-box__grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

.nc-tools-box__card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 14px;
	border: 1px solid rgba( 0, 0, 0, 0.08 );
	border-radius: 10px;
	text-decoration: none !important;
	color: inherit;
	transition: border-color 0.15s ease, transform 0.1s ease;
}

.nc-tools-box__card:hover {
	border-color: var(--nc-accent, #FF6633);
	transform: translateY( -2px );
}

.nc-tools-box__icon {
	font-size: 22px;
	line-height: 1;
}

.nc-tools-box__label {
	font-weight: 600;
	font-size: 14px;
	color: var(--nc-accent, #FF6633);
}

.nc-tools-box__desc {
	font-size: 12px;
	opacity: 0.75;
	line-height: 1.4;
}

/* [nc_tool] inline shortcode variant. */
.nc-tool-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border: 1px solid var(--nc-accent, #FF6633);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--nc-accent, #FF6633) !important;
	text-decoration: none !important;
	transition: background-color 0.15s ease;
}

.nc-tool-inline:hover {
	background: var(--nc-accent, #FF6633);
	color: #fff !important;
}

/* Sidebar widget — compact vertical list (the end-of-post box above is
 * a wide grid, not appropriate for a narrow sidebar column). */
.nc-tools-widget {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nc-tools-widget__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border: 1px solid rgba( 0, 0, 0, 0.08 );
	border-radius: 10px;
	text-decoration: none !important;
	color: inherit;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.nc-tools-widget__item:hover {
	border-color: var(--nc-accent, #FF6633);
	background: rgba( 37, 99, 235, 0.04 );
}

.nc-tools-widget__icon {
	font-size: 20px;
	line-height: 1;
	flex-shrink: 0;
}

.nc-tools-widget__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nc-tools-widget__label {
	font-weight: 600;
	font-size: 13.5px;
	color: var(--nc-accent, #FF6633);
}

.nc-tools-widget__desc {
	font-size: 11.5px;
	opacity: 0.7;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.nc-tools-widget__arrow {
	margin-left: auto;
	flex-shrink: 0;
	opacity: 0.4;
	font-size: 14px;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.nc-tools-widget__item:hover .nc-tools-widget__arrow {
	opacity: 1;
	transform: translateX( 3px );
}
