/**
 * Frontend Styles for Category Shortcode
 * 
 * @package WC_Category_Importer
 */

/* Main container */
.wcci-shortcode-categories.wcci-categories-wrapper {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

/* Category item wrapper */
.wcci-shortcode-category-item.wcci-category-item-wrapper {
	margin-bottom: 8px;
	margin-top: 0;
	padding: 0;
}

/* Category header wrapper - teraz jest linkiem */
.wcci-shortcode-category-link.wcci-category-name-link.wcci-shortcode-category-header.wcci-category-header-wrapper {
	display: flex;
	align-items: center;
	gap: 0px;
	padding: 5px 5px;
	background: #ffffff;
	border: 1px solid #E7E7E7;
	border-radius: 4px;
	transition: all 0.2s ease;
	position: relative;
	margin: 0;
	box-shadow: none;
	text-decoration: none;
	color: #111111;
}

.wcci-shortcode-category-link.wcci-category-name-link.wcci-shortcode-category-header.wcci-category-header-wrapper:hover {
	background: #E7E7E7;
	border-color: #E7E7E7;
	text-decoration: none;
}

/* Current/Active category */
.wcci-shortcode-category-link.wcci-category-name-link.wcci-shortcode-category-header.wcci-category-header-wrapper.wcci-current-category,
.wcci-shortcode-category-item.wcci-category-item-wrapper.wcci-current-category .wcci-shortcode-category-link.wcci-category-name-link.wcci-shortcode-category-header.wcci-category-header-wrapper {
	background: #E7E7E7;
	border-color: #E7E7E7;
}

/* Common category (darker - for multiple products) */
.wcci-shortcode-category-link.wcci-category-name-link.wcci-shortcode-category-header.wcci-category-header-wrapper.wcci-common-category,
.wcci-shortcode-category-item.wcci-category-item-wrapper.wcci-common-category .wcci-shortcode-category-link.wcci-category-name-link.wcci-shortcode-category-header.wcci-category-header-wrapper {
	background: #D0D0D0;
	border-color: #D0D0D0;
}

/* Toggle button */
.wcci-shortcode-toggle.wcci-toggle-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	padding: 0;
	margin: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.2s ease;
	flex-shrink: 0;
	color: #111111;
	font-size: 18px;
	line-height: 1;
	position: relative;
	z-index: 10;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	box-shadow: none;
	text-shadow: none;
	text-decoration: none;
	align-self: center;
}

.wcci-shortcode-toggle.wcci-toggle-button:focus {
	outline: none;
	box-shadow: none;
}

.wcci-shortcode-toggle.wcci-toggle-button:hover {
	background: transparent;
	outline: none;
	box-shadow: none;
}

.wcci-shortcode-toggle.wcci-toggle-button:hover[aria-expanded="true"] {
	background: transparent;
	color: #111111;
}

.wcci-shortcode-toggle.wcci-toggle-button:hover[aria-expanded="true"] .wcci-shortcode-toggle-icon.wcci-toggle-icon-symbol {
	color: #111111;
}

.wcci-shortcode-toggle.wcci-toggle-button:active {
	background: transparent;
	outline: none;
	box-shadow: none;
}

.wcci-shortcode-toggle.wcci-toggle-button:active[aria-expanded="true"] {
	background: transparent;
	color: #111111;
}

.wcci-shortcode-toggle.wcci-toggle-button:active[aria-expanded="true"] .wcci-shortcode-toggle-icon.wcci-toggle-icon-symbol {
	color: #111111;
}

.wcci-shortcode-toggle.wcci-toggle-button[aria-expanded="true"] {
	background: transparent;
	color: #111111;
}

.wcci-shortcode-toggle.wcci-toggle-button[aria-expanded="true"] .wcci-shortcode-toggle-icon.wcci-toggle-icon-symbol {
	font-size: 22px;
	color: #111111;
}

/* Toggle icon */
.wcci-shortcode-toggle-icon.wcci-toggle-icon-symbol {
	display: inline-block;
	transition: transform 0.2s ease;
	font-weight: 300;
	margin: -3px 0 0;
	padding: 0;
	color: #111111;
}

.wcci-shortcode-toggle.wcci-toggle-button[aria-expanded="false"] {
	background: transparent;
	color: #111111;
}

.wcci-shortcode-toggle.wcci-toggle-button[aria-expanded="false"] .wcci-shortcode-toggle-icon.wcci-toggle-icon-symbol {
	color: #111111;
}

.wcci-shortcode-toggle.wcci-toggle-button:hover[aria-expanded="false"] {
	background: transparent;
	color: #111111;
}

.wcci-shortcode-toggle.wcci-toggle-button:hover[aria-expanded="false"] .wcci-shortcode-toggle-icon.wcci-toggle-icon-symbol {
	color: #111111;
}

.wcci-shortcode-toggle.wcci-toggle-button:active[aria-expanded="false"] {
	background: transparent;
	color: #111111;
}

.wcci-shortcode-toggle.wcci-toggle-button:active[aria-expanded="false"] .wcci-shortcode-toggle-icon.wcci-toggle-icon-symbol {
	color: #111111;
}

/* Toggle placeholder */
.wcci-shortcode-toggle-placeholder.wcci-toggle-spacer {
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	flex-shrink: 0;
	display: inline-block;
	margin: 0;
	padding: 0;
}

/* Category link - teraz całe pole jest linkiem */
.wcci-shortcode-category-link.wcci-category-name-link {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	text-decoration: none;
	color: #111111;
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	transition: color 0.2s ease;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	text-transform: uppercase;
}

.wcci-shortcode-category-link.wcci-category-name-link:hover {
	color: #111111;
	text-decoration: none;
	background: transparent;
	border: none;
	box-shadow: none;
}

.wcci-shortcode-category-link.wcci-category-name-link:focus {
	outline: none;
	box-shadow: none;
}

.wcci-shortcode-category-link.wcci-category-name-link:active {
	color: #111111;
	text-decoration: none;
}

/* Category name text */
.wcci-category-name-text {
	margin: 0;
	padding: 0;
	display: inline;
}

/* Category count */
.wcci-shortcode-category-count.wcci-category-product-count {
	font-size: 14px;
	color: #86868b;
	font-weight: 400;
	margin: 0 0 0 auto;
	padding: 0;
	display: inline;
}

/* Subcategories container */
.wcci-shortcode-subcategories.wcci-subcategories-container {
	margin-top: 8px;
	margin-left: 15px;
	margin-right: 0;
	margin-bottom: 0;
	padding-left: 0;
	padding-right: 0;
	padding-top: 0;
	padding-bottom: 0;
	animation: wcci-slideDown 0.3s ease;
}

@keyframes wcci-slideDown {
	from {
		opacity: 0;
		max-height: 0;
	}
	to {
		opacity: 1;
		max-height: 1000px;
	}
}

/* Subcategories nested styles */
.wcci-shortcode-subcategories.wcci-subcategories-container .wcci-shortcode-category-link.wcci-category-name-link.wcci-shortcode-category-header.wcci-category-header-wrapper {
	background: #f9f9f9;
	border-color: #E7E7E7;
}

.wcci-shortcode-subcategories.wcci-subcategories-container .wcci-shortcode-category-link.wcci-category-name-link.wcci-shortcode-category-header.wcci-category-header-wrapper:hover {
	background: #E7E7E7;
	border-color: #E7E7E7;
}

.wcci-shortcode-subcategories.wcci-subcategories-container .wcci-shortcode-category-link.wcci-category-name-link {
	font-size: 13px;
	font-weight: 400;
	font-family: inherit;
	text-transform: uppercase;
	color: #111111;
}

/* Responsive */
@media (max-width: 768px) {
	.wcci-shortcode-category-link.wcci-category-name-link.wcci-shortcode-category-header.wcci-category-header-wrapper {
		padding: 10px 12px;
	}
	
	.wcci-shortcode-category-link.wcci-category-name-link {
		font-size: 15px;
	}
	
	.wcci-shortcode-subcategories.wcci-subcategories-container {
		margin-left: 15px;
	}
}

