/**
 * WP Jobs Board Filters Styles
 */

/* Filter Wrapper */
.wpjb-filters-wrapper {
	max-width: 27.8rem;
	width: 100%;
	
    background: #ffffff;
	
    border: 0.1rem solid #e2e8f0;
    border-radius: 0.8rem;
	
    padding: 20px;
	
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.wpjb-filters-header {
    display: flex;
	
    margin-bottom: 1.6rem;
}

.wpjb-filters-title {
    display: flex;
	flex-direction: row;
    align-items: center;
    column-gap: 0.8rem;
	
	color: #020817;
	font-size: 1.8rem;
    font-weight: 600;
}

.wpjb-filters-title__icon {
	width: 2rem;
	height: 2rem;
	
    stroke: #020817;
}

.wpjb-filters-toggle {
    display: none;
}

/* Filter Sections */
.wpjb-filter-section {
    margin-bottom: 2.4rem;
}

.wpjb-filter-section:last-child {
    margin-bottom: 0;
}

.wpjb-filter-title {
    margin-bottom: 0.8rem;
	
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
}

/* Search Input */
.wpjb-filter-search-wrapper {
	display: flex;
	flex-direction: column;
	
	position: relative;
}

.wpjb-filter-search {
    width: 100%;
	height: 4rem;
	
    padding: 0.8rem 1.2rem 0.8rem 4rem !important;
	
    border: 0.1rem solid #e2e8f0;
    border-radius: 0.6rem;
	
    font-size: 1.4rem !important;
	line-height: 1;
	font-weight: 500;
	color: #111827 !important;
}

.wpjb-filter-search:focus {
    border-color: var(--bricks-color-aqgyjz);
}

.wpjb-filter-search::placeholder {
	color: rgba(17,24,39,0.3) !important;
}

.wpjb-filter-search__icon {
	position: absolute;
	top: 50%;
	left: 1.2rem;
	transform: translateY(-50%);
	
	width: 1.6rem;
	height: 1.6rem;
	
	stroke: #9BA3AF;
}

/* Filter Options */
.wpjb-filter-options {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

.wpjb-filter-option {
    display: flex;
    align-items: center;
	
    cursor: pointer;
	
	margin-bottom: 0;
}

.wpjb-filter-option input {
    margin-right: 8px;
    cursor: pointer;
}

.wpjb-filter-label {
	flex: 1;
	
    font-size: 14px;
    color: #4b5563;
	font-weight: 500;
}

.wpjb-filter-count {
    font-size: 13px;
    color: #666;
    margin-left: 5px;
}

.wpjb-filter-count-zero {
    color: #999;
}

/* Disabled State */
.wpjb-filter-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wpjb-filter-disabled input {
    cursor: not-allowed;
}

/* Hidden Items */
.wpjb-filter-hidden {
    display: none;
}

/* Show More Button */
.wpjb-filter-show-more {
	height: 3.6rem;
	max-width: fit-content;
	
    color: #3858e9;
    font-size: 1.2rem;
	font-weight: 600;
	
	background-color: transparent;
	
    cursor: pointer;
	
	border-radius: 0.6rem;
	
    padding: 0 1.2rem;
    margin-top: 0.5rem;
	
    transition: all 0.3s ease-out;
}

.wpjb-filter-show-more:hover {
    background-color: #f1f5f9;
	
	transition: all 0.3s ease-out;
}

/* Clear Filters */
.wpjb-clear-filters {
    width: 100%;
	height: 4rem;
	
    padding: 0.8rem 1.6rem;
	
    background: transparent;
	
    border: 0.1rem solid #e2e8f0;
    border-radius: 0.6rem;
	
    font-size: 14px;
    font-weight: 600;
	color: #020817;
	text-align: center;
	
    cursor: pointer;
	
    transition: all 0.3s ease-out;
}

.wpjb-clear-filters:hover {
    background-color: #f1f5f9;
}

/* Active Filters */
.wpjb-active-filters {
    display: flex;
	flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
	
    margin-bottom: 2.4rem;
}

.wpjb-active-filters__title-wrapper {
	display: flex;
	flex-direction: row;
	column-gap: 0.8rem;
	align-items: center;
	
	width: 100%;
}

.wpjb-clear-all-filters {
	height: 3.6rem;
	max-width: fit-content;
	
    color: #3858e9;
    font-size: 1.4rem;
	font-weight: 600;
	
	background-color: transparent;
	
    cursor: pointer;
	
	border-radius: 0.6rem;
	
    padding: 0 1.2rem;
	
    transition: all 0.3s ease-out;
}

.wpjb-clear-all-filters:hover {
    background-color: #f1f5f9;
	
	transition: all 0.3s ease-out;
}

.wpjb-active-filters-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
}

.wpjb-active-filters__filters-wrapper {
	display: flex;
	justify-content: flex-start;
	column-gap: 0.8rem;
	row-gap: 0.8rem;
	flex-wrap: wrap;
	
	width: 100%;
}

.wpjb-filter-tag {
    display: flex;
    align-items: center;
    column-gap: 0.8rem;
	
    padding: 0.6rem 1.2rem;
    background: #f1f5f9;
	
    border-radius: 999rem;
	
    font-size: 1.2rem;
	font-weight: 600;
    color: #0f172a;
	line-height: 1;
}

.wpjb-remove-filter__icon {
	width: 1.2rem;
	height: 1.2rem;
	
	stroke: #374151;
	
	cursor: pointer;
	
	transition: all 0.3s ease-out;
}

.wpjb-remove-filter__icon:hover {
	stroke: #dc2626;
	
	transition: all 0.3s ease-out;
}

/* Results Wrapper */
.wpjb-results-wrapper {
	max-width: 90.4rem;
	width: 100%;
	
}

.wpjb-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
	
    margin-bottom: 2.4rem;
}

.wpjb-results-count {
    font-size: 1.4rem;
    font-weight: 500;
    color: #4b5563;
}

.wpjb-results-sort {
    display: flex;
    flex-direction: column;
    row-gap: 0.2rem;
}

.wpjb-results-sort label {
    font-size: 1.2rem;
    color: #4b5563;
	
	margin-bottom: 0;
}

.wpjb-sort-select {
	width: 20rem;
	height: 3.65rem;
	
    padding: 0.8rem 1.2rem;
	
    border: 0.1rem solid #d1d5db;
    border-radius: 0.6rem;
	
    font-size: 1.4rem;
	color: #0f172a;
	line-height: 1;
	font-weight: 500;
	
    background: #fff;
	
    cursor: pointer;
}

/* Loading State */
.wpjb-results-loading {
   
}

/* Skeleton Loading */
.wpjb-skeleton-item {
    display: flex;

    padding: 2.4rem;
	margin-bottom: 1.6rem;
	
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
}

.wpjb-skeleton-content {
    flex: 1;
}

.wpjb-skeleton-line {
    height: 16px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.wpjb-skeleton-title {
    width: 60%;
    height: 20px;
}

.wpjb-skeleton-meta {
    width: 40%;
}

.wpjb-skeleton-tags {
    width: 50%;
}

.wpjb-skeleton-button {
    width: 100px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 6px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Result Item */
.wpjb-results-list {
	display: flex;
	flex-direction: column;
	row-gap: 1.6rem;
}

.wpjb-result-item {
    display: flex;
	
	position: relative;
	
    padding: 2.4rem;
	
    border: 0.1rem solid #e2e8f0;
    border-radius: 0.8rem;
	
	background-color: #FFFFFF;
	
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	
    transition: all 0.3s ease-out;
}

.wpjb-result-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.wpjb-result-content {
    flex: 1;
}

.wpjb-result-header {
	display: flex;
	flex-direction: row;
	column-gap: 1.6rem;
	
	margin-bottom: 1.6rem;
}

.wpjb-result-image {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	
	width: 4.8rem;
	height: 4.8rem;
	
	border-radius: 0.8rem;
	
	background-color: #f1f5f9;
}

.wpjb-result-image img {
	width: 3.2rem;
	height: 3.2rem;
	
	object-fit: contain;
	object-position: center;
}

.wpjb-result-image__fallback {
	width: 2.4rem;
	height: 2.4rem;
	
	stroke: #3858e9;
}

.wpjb-professional-avatar {
	width: 6.4rem;
	height: 6.4rem;
	
	border-radius: 50%;
}

.wpjb-professional-avatar img {
	width: 6.4rem;
	height: 6.4rem;
	
	border-radius: 50%;
}

.wpjb-result-title {
    font-size: 1.8rem;
    font-weight: 700;
	color: #111827;
	
	transition: 0.3s ease-out;
}

.wpjb-result-item:hover .wpjb-result-title {
    color: #3858e9;
}

.wpjb-result-company {
	font-weight: 500;
}

.wpjb-result-meta {
    display: flex;
    flex-direction: column;
	row-gap: 0.8rem;
	
	margin-bottom: 1.6rem;
}

.wpjb-result-meta span {
    display: flex;
    align-items: center;
    column-gap: 0.8rem;
	
	color: #4b5563;
	font-weight: 500;
	font-size: 1.4rem;
	line-height: 1;
}

.wpjb-result-meta svg {
    width: 1.6rem;
    height: 1.6rem;
}

.wpjb-result-tags {
    display: flex;
	flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.wpjb-result-tag {
    display: flex;
	
    padding: 0.4rem 1rem;
	
    background: #ffffff;
	
    color: #020817;
    font-size: 1.2rem;
	font-weight: 700;
	line-height: 1;
	
    border-radius: 999rem;
	border: 0.1rem solid #e2e8f0;
}

.wpjb-result-action {
    display: flex;
    align-items: center;
}

.wpjb-result-link {
	position: absolute;
	top: 0;
	left: 0;
	
	width: 100%;
	height: 100%;
}

.wpjb-result-schedule > .wpjb-result-tag {
	position: absolute;
	top: 2.4rem;
	right: 2.4rem;
	
	border: 0.1rem solid #f1f5f9;
	
	background-color: #f1f5f9;
	
	color: #0f172a;
}

/* No Results */
.wpjb-no-results {
    text-align: center;
    padding: 60px 20px;
}

.wpjb-no-results-icon {
    color: #ddd;
    margin-bottom: 20px;
}

.wpjb-no-results h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.wpjb-no-results p {
    margin: 0;
    color: #666;
}

/* Pagination */
.wpjb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
	
    margin-top: 3.2rem;
}

.page-numbers {
	display: flex;
	flex-direction: row;
	column-gap: 0.4rem;
	
	margin: 0;
	padding: 0;
	
	list-style: none;
}

.page-numbers li {
	display: flex;
	flex-direction: column;
}

.wpjb-pagination a,
.wpjb-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
	
    width: 4rem;
    height: 4rem;

    border-radius: 0.6rem;

    color: #020817;
    font-size: 14px;
	font-weight: 600;
	
    transition: all 0.3s ease-out;
}

.wpjb-pagination a:hover {
	background-color: #f1f5f9;
	
	transition: all 0.3s ease-out;
}

.wpjb-pagination a.next,.wpjb-pagination a.prev {
	display: flex;
	flex-direction: row;
	column-gap: 0.4rem;
	
	width: fit-content;
	
	border: none;
	
	padding: 0.8rem 1rem 0.8rem 1.6rem;
}

.wpjb-pagination a.prev {
	padding: 0.8rem 1.6rem 0.8rem 1rem;
}

.wpjb-pagination a.next.disabled:hover,.wpjb-pagination a.prev.disabled:hover {
	background-color: transparent;
}

.wpjb-pagination .current {
    background-color: #FFFFFF;
}

.wpjb-pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wpjb-pagination .dots {
    border: none;
}

/* Salary Slider */
.wpjb-salary-slider {
    padding: 20px 0;
}

.wpjb-slider-container {
    position: relative;
    height: 40px;
}

.wpjb-slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.wpjb-slider-range {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: #4a69e2;
    border-radius: 2px;
}

.wpjb-salary-slider input[type="range"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.wpjb-salary-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4a69e2;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wpjb-slider-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* Mobile Styles */
@media (max-width: 991px) {
    .wpjb-filters-toggle {
        display: block;
        background: none;
        border: 1px solid #ddd;
        border-radius: 6px;
        cursor: pointer;
    }
    
    .wpjb-mobile-only {
        display: block !important;
    }
	
	.wpjb-filters-content {
		display: none;
	}
	
	.wpjb-filters-wrapper {
		position: relative;
		
		max-width: fit-content;
		
		padding: 0.8rem 3.2rem;
	}
	
	.wpjb-filters-header {
		margin-bottom: 0;
	}
	
	.wpjb-filters-toggle {
		position: absolute;
		top: 0;
		left: 0;
		
		width: 100%;
		height: 100%;
		
		border: none;
	}
	
	.wpjb-filters-toggle svg {
		display: none;
	}
	
	body.wpjb-filters-open {
		position: relative;
	}
	
	body.wpjb-filters-open:before {
		content: "";
		
		position: absolute;
		top: 0;
		left: 0;
		
		z-index: 999;
		
		width: 100%;
		height: 100%;
		
		background-color: rgba(2,8,23,0.8);
	}
	
	body.wpjb-filters-open .wpjb-filters-header {
		margin-bottom: 2.4rem;
	}
	
	body.wpjb-filters-open .wpjb-filters-content {
		display: block;
	}
	
	body.wpjb-filters-open .wpjb-filters-toggle {
		width: fit-content;
		height: fit-content;
		
		top: 2.4rem;
		right: 2.4rem;
		left: initial;
	}
	
	body.wpjb-filters-open .wpjb-filters-toggle svg {
		display: block;
	}
	
	.wpjb-results-wrapper {
		max-width: 100%;
	}
	
	.wpjb-result-header {
		flex-direction: column;
		row-gap: 0.8rem;
	}
    
    /* Mobile filter modal */
    body.wpjb-filters-open {
        overflow: hidden;
    }
    
    body.wpjb-filters-open .wpjb-filters-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
		max-width: calc(100% - 2rem);
		max-height: calc(100% - 6rem);
		margin: auto;
        border-radius: 0.8rem;
        overflow-y: auto;
		padding: 2.4rem;
    }
    
    .wpjb-result-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .wpjb-result-action {
        width: 100%;
    }
    
    .wpjb-result-button {
        width: 100%;
        text-align: center;
    }
}

/* Layout Grid (when using shortcodes) */
.wpjb-filters-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 991px) {
    .wpjb-filters-layout {
        grid-template-columns: 1fr;
    }
}