/**
 * WP Jobs Board Search Widget Styles
 */

/* Container */
.wpjb-search-widget {
	display: flex;
	flex-direction: column;
	align-items: center;
	
    max-width: 89.6rem;
	width: 100%;
	
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Tab Navigation */
.wpjb-search-tabs {
    display: flex;
	flex-direction: row;
	
	max-width: fit-content;
	
    border-radius: 0.8rem;
	
	margin-bottom: 3.2rem;
    padding: 0.4rem;
	
	background-color: #FFFFFF;
	
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
              0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.wpjb-tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.8rem;
	
	max-width: 24rem;
	width: 24rem;
	height: 4.8rem;
	
    padding: 1.2rem 2.4rem;

    background: transparent;
	
    color: #4b5563;
	stroke: #4b5563;
    font-size: 1.6rem;
    font-weight: 600;
	
    cursor: pointer;
	
    border-radius: 8px;
	
    transition: all 0.3s ease-out;
}

.wpjb-tab-button:hover {
	transition: all 0.3s ease-out;
}

.wpjb-tab-button-jobs:hover {
    color: #2563eb;
	stroke: #2563eb;
}

.wpjb-tab-button-professionals:hover {
	color: #ff6b35;
	stroke: #ff6b35;
}

.wpjb-tab-button-jobs.active {
	background-color: #2563eb;
	color: #FFFFFF;
	stroke: #FFFFFF;
}

.wpjb-tab-button-professionals.active {
	background-color: #ff6b35;
	color: #FFFFFF;
	stroke: #FFFFFF;
}

.wpjb-tab-icon {
    width: 1.6rem;
    height: 1.6rem;
}

/* Tab Content */
.wpjb-search-content {
	width: 100%;
	max-width: 84rem;
	
	background-color: #FFFFFF;
	
	padding: 2.4rem;
	
	border-radius: 1.2rem;
	
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.wpjb-tab-content {
    display: none;
}

.wpjb-tab-content.active {
    display: block;
}

/* Search Box */
.wpjb-search-box {
    position: relative;
	
    display: flex;
    column-gap: 1.6rem;
    align-items: center;
}

.wpjb-search-input-wrapper {
    position: relative;
	
	width: 100%
}

.wpjb-search-input::placeholder {
	color: rgba(17,24,39,0.3);
	font-weight: 500;
}

.wpjb-search-input {
    width: 100%;
	height: 4.8rem;
	
    padding: 0.8rem 1.2rem 0.8rem 4rem !important;
	
    font-size: 1.4rem !important;
	line-height: 1 !important;
	color: #111827 !important;
	font-weight: 600;
	
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
	
    background: #fff;
	
    transition: all 0.3s ease;
}

.wpjb-search-input:focus {
    border: 1px solid var(--bricks-color-aqgyjz);
}

.wpjb-search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
	
    transform: translateY(-50%);
	
    width: 2rem;
    height: 2rem;
	
    color: #999;
	
    pointer-events: none;
}

.wpjb-search-spinner {
    position: absolute;
    right: 20px;
    top: 50%;
	
	height: 2rem;
	
    transform: translateY(-50%);
	
    color: #3858e9;
}

.wpjb-search-button {
	display: flex;
	flex-direction: row;
	column-gap: 1.2rem;
	align-items: center;
	
    padding: 0.7rem 1.6rem;
	
	height: 4.8rem;
	
    background: #3858e9;
	
    color: white;
	font-size: 1.6rem;
    font-weight: 600;
	line-height: 1;

    border-radius: 0.6rem;

    cursor: pointer;
	
    transition: all 0.3s ease-out;
}

.wpjb-search-button:hover {
    background-color: #2d47c4;
}

.wpjb-search-button__icon {
	width: 1.6rem;
	height: 1.6rem;
}

/* Dropdown */
.wpjb-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 480px;
    overflow-y: auto;
}

.wpjb-dropdown-content {
    padding: 1.6rem;
}

/* Empty State */
.wpjb-empty-state {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
	
	max-height: 40rem;
	
	overflow-y: scroll;
	
    background: white;
	
    border-radius: 0.8rem;
	border: 1px solid #e2e8f0;
	
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              	0 4px 6px -4px rgba(0, 0, 0, 0.1);
    z-index: 999;
	
    padding: 1.6rem;
	
    display: none;
}

.wpjb-search-input:focus ~ .wpjb-empty-state {
    display: block;
}

.wpjb-search-input:not(:placeholder-shown) ~ .wpjb-empty-state {
    display: none;
}

.wpjb-empty-section {
    margin-bottom: 2.4rem;
	padding-bottom: 2.4rem;
	
	border-bottom: 1px solid #e2e8f0;
}

.wpjb-empty-section:last-child {
    margin-bottom: 0;
	padding-bottom: 0;
	
	border: none;
}

.wpjb-empty-title {
	display: flex;
	flex-direction: row;
	column-gap: 0.8rem;
	align-items: center;
	
    font-size: 14px !important;
    font-weight: 700;
    color: #374151;
	
	margin-bottom: 1.2rem;
}

.wpjb-empty-title__icon {
	width: 1.6rem;
	height: 1.6rem;
	stroke: #374151;
}

.wpjb-empty-items {
    display: flex;
    flex-direction: column;
    row-gap: 0.4rem;
}

.wpjb-empty-item {
    display: flex;
    align-items: center;
	justify-content: space-between;
    gap: 10px;
	
    padding: 0.8rem;
	
    color: #111827;
	font-size: 1.6rem;
	font-weight: 600;
	
    border-radius: 0.6rem;
	
    transition: all 0.3s ease-out;
}

.wpjb-empty-item:hover {
    background-color: #f9fafb;
}

.wpjb-empty-item-secondary {
	font-weight: 500;
	font-size: 1.4rem;
}

.wpjb-job-location,.wpjb-job-schedule,.wpjb-professional-location,.wpjb-professional-rate {
	color: #4b5563;
	font-size: 1.4rem;
	font-weight: 500;
}

.wpjb-item-count {
    color: #6b7280;
    font-size: 1.2rem;
	font-weight: 600;
}

/* Search Results Styles */
.wpjb-result-group {
    margin-bottom: 2.4rem;
	padding-bottom: 2.4rem;
	
	border-bottom: 1px solid #e2e8f0;
}

.wpjb-result-group:last-child {
    margin-bottom: 0;
	padding-bottom: 0;
	
	border-bottom: none;
}

.wpjb-result-group-title {
    display: flex;
	flex-direction: row;
	column-gap: 0.8rem;
	align-items: center;
	
    font-size: 14px !important;
    font-weight: 700;
    color: #374151;
	
	margin-bottom: 1.2rem;
}

.wpjb-result-group-title__icon {
	width: 1.6rem;
	height: 1.6rem;
	stroke: #374151;
}

.wpjb-result-items {
    display: flex;
    flex-direction: column;
}

.wpjb-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
	
    padding: 1.2rem;
	
    border-radius: 0.6rem;
    transition: background-color 0.3s ease-out;
}

.wpjb-result-item:hover {
    background-color: #f9fafb;
}

.wpjb-result-main {
    flex: 1;
    min-width: 0;
}

.wpjb-result-main h5 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #111827;
}

.wpjb-result-meta {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.wpjb-result-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976d2;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    margin-left: 8px;
}

.wpjb-result-extra {
    flex-shrink: 0;
    font-size: 14px;
    color: #666;
    margin-left: 12px;
}

/* Term Results */
.wpjb-result-term {
    padding: 0.8rem;
}

.wpjb-result-term-name {
    font-size: 1.4rem;
	color: #111827;
	font-weight: 500;
}

.wpjb-result-term-count {
    flex-shrink: 0;
    padding: 2px 8px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 12px;
    margin-left: 8px;
}

/* View All Link */
.wpjb-view-all {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid #eee;
}

.wpjb-view-all a {
    color: #4a69e2;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.wpjb-view-all a:hover {
    text-decoration: underline;
}

/* No Results */
.wpjb-no-results {
    padding: 1.6rem;
	
    text-align: center;
}

.wpjb-no-results p {
    color: #111827;
    font-size: 1.6rem;
	font-weight: 700;
}

/* Responsive */
@media (max-width: 1000px) {
	.wpjb-search-input {
		font-size: 1.6rem !important;
	}
}

@media (max-width: 530px) {
	.wpjb-search-tabs {
		min-width: 100%;
	}
	
	.wpjb-tab-button {
		width: 100%;
	}
}

@media (max-width: 475px) {
	.wpjb-search-tabs {
		flex-direction: column;
	}
	
	.wpjb-tab-button {
		max-width: 100%;
		
		font-weight: 500;
	}
	
	.wpjb-search-box {
		flex-direction: column;
		row-gap: 0.8rem;
	}
	
	.wpjb-search-button {
		width: 100%;
    	justify-content: center;
	}
}