/* CVD What We Create — frontend styles */

.cvd-whc-wrap {
	width: 100%;
}

.cvd-whc-panel {
	position: relative;
	border-radius: 1.5rem;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	background: rgba(17, 24, 39, 0.5);
	border: 1px solid rgba(196, 181, 253, 0.2);
	padding: 2rem;
}

.cvd-whc-title {
	margin: 0 0 1.5rem;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
}

.cvd-whc-grid {
	display: grid;
	gap: 1rem;
}

.cvd-whc-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cvd-whc-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cvd-whc-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cvd-whc-footer {
	margin-top: 1.5rem;
	text-align: center;
}

.cvd-whc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(to right, rgba(124, 58, 237, 0.8), rgba(168, 85, 247, 0.8));
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.2s ease;
}

.cvd-whc-button:hover {
	background: linear-gradient(to right, rgb(124, 58, 237), rgb(168, 85, 247));
}

/* Shared card base */
.cvd-whc-card.featured-category-card {
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Style 1: Glass cards (default — matches original theme) */
.cvd-whc-panel--glass-cards .cvd-whc-card.featured-category-card {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 1rem;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}

.cvd-whc-panel--glass-cards .cvd-whc-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.cvd-whc-panel--glass-cards .cvd-whc-card__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.75rem;
	text-align: center;
	z-index: 1;
}

.cvd-whc-panel--glass-cards .cvd-whc-card__label {
	color: #fff;
	font-weight: 600;
	font-size: 0.875rem;
}

.cvd-whc-panel--glass-cards .cvd-whc-card:hover {
	transform: scale(1.05);
	box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}

/* Style 2: Bold tiles */
.cvd-whc-panel--bold-tiles {
	border: 2px solid rgba(167, 139, 250, 0.35);
	background: linear-gradient(145deg, rgba(30, 20, 55, 0.92), rgba(17, 24, 39, 0.75));
}

.cvd-whc-panel--bold-tiles .cvd-whc-title {
	font-size: 1.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cvd-whc-panel--bold-tiles .cvd-whc-card.featured-category-card {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 1.25rem;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	border: 2px solid rgba(167, 139, 250, 0.45);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(76, 29, 149, 0.35);
}

.cvd-whc-panel--bold-tiles .cvd-whc-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(76, 29, 149, 0.15) 0%, rgba(0, 0, 0, 0.85) 72%);
}

.cvd-whc-panel--bold-tiles .cvd-whc-card__caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1rem;
	text-align: center;
	z-index: 1;
}

.cvd-whc-panel--bold-tiles .cvd-whc-card__label {
	display: block;
	color: #fff;
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.cvd-whc-panel--bold-tiles .cvd-whc-card:hover {
	transform: translateY(-4px) scale(1.03);
	box-shadow: 0 0 0 2px rgba(196, 181, 253, 0.8), 0 18px 40px rgba(124, 58, 237, 0.55);
}

.cvd-whc-panel--bold-tiles .cvd-whc-button {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Style 3: Minimal strip */
.cvd-whc-panel--minimal-strip {
	padding: 1.25rem 1.25rem 1rem;
}

.cvd-whc-panel--minimal-strip .cvd-whc-title {
	text-align: left;
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
}

.cvd-whc-panel--minimal-strip .cvd-whc-grid {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-height: 320px;
	overflow-y: auto;
	padding-right: 0.25rem;
}

.cvd-whc-panel--minimal-strip .cvd-whc-card.featured-category-card {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0.65rem;
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(196, 181, 253, 0.18);
	min-height: 64px;
}

.cvd-whc-panel--minimal-strip .cvd-whc-card__thumb {
	width: 56px;
	height: 56px;
	border-radius: 0.65rem;
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}

.cvd-whc-panel--minimal-strip .cvd-whc-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.cvd-whc-panel--minimal-strip .cvd-whc-card__label {
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1.25;
}

.cvd-whc-panel--minimal-strip .cvd-whc-card__meta {
	color: rgba(196, 181, 253, 0.75);
	font-size: 0.75rem;
}

.cvd-whc-panel--minimal-strip .cvd-whc-card__chevron {
	color: rgba(196, 181, 253, 0.85);
	font-size: 0.75rem;
}

.cvd-whc-panel--minimal-strip .cvd-whc-card:hover {
	background: rgba(124, 58, 237, 0.14);
	border-color: rgba(196, 181, 253, 0.45);
	transform: translateX(3px);
}

.cvd-whc-panel--minimal-strip .cvd-whc-footer {
	text-align: left;
	margin-top: 0.85rem;
}

@media (max-width: 1024px) {
	.cvd-whc-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cvd-whc-grid--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.cvd-whc-panel { padding: 1.25rem; }
	.cvd-whc-grid--cols-2,
	.cvd-whc-grid--cols-3,
	.cvd-whc-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
