/* Kiwi Styles - Additional styles for renderer system */
/* Scoped to .kiwi-styles to prevent interference with existing kiwi.css */

.kiwi-styles .background-gradient {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7) 100%);
	transition: all 0.3s ease;
}

.kiwi-styles .card:hover .background-gradient {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.kiwi-styles .card:hover .card-swiper-title {
	display: none;
}

.kiwi-styles .card:hover .card-swiper-description {
	display: block !important;
}

.kiwi-styles .card:hover .card-swiper-badges {
	display: none;
}

.kiwi-styles .text-shadow {
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.kiwi-styles .vertical-text {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.kiwi-styles .split-dropdown {
	margin-top: -10px;
	max-height: 100%;
}

@media (min-width: 768px) {
	.kiwi-styles .split-dropdown {
		margin-top: -10px;
	}
}

.kiwi-styles .mw-80 {
	max-width: 80ch;
}

.kiwi-styles .text-justify {
	text-align: justify !important;
}

/* Card-view specific styles - make cards small and properly sized */
.kiwi-styles .card-image-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.kiwi-styles .card-image,
.kiwi-styles .card-image-placeholder {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

.kiwi-styles .card-image-placeholder {
	aspect-ratio: 16 / 9;
	background: #e9ecef;
	min-height: 150px;
	width: 100%;
	display: block;
}

/* Ensure card-view cards are properly sized and don't expand */
.kiwi-styles .col-sm-6 .card,
.kiwi-styles .col-md-4 .card,
.kiwi-styles .col-lg-3 .card {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* Make sure the card image determines the card height */
.kiwi-styles .card>.card-image-container:first-child {
	width: 100%;
}

.kiwi-styles .card>.card-image-container:first-child img,
.kiwi-styles .card>.card-image-container:first-child .card-image-placeholder {
	width: 100%;
	height: auto;
}
