/**
 * Job Board - Job Type Archive Styles
 * Follows same structure as category SEO sections
 * Brand Colors: var(--gfi-color-brand) (primary), var(--gfi-color-black) (black), var(--gfi-color-white) (white)
 * Version: 2.0 - OPTIMIZED
 */

/* ========================================
   JOB TYPE PAGE WRAPPER
   ======================================== */

body.job-type-archive #job-board-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: var(--gfi-color-white);
}

/* ========================================
   HEADER ADJUSTMENTS
   ======================================== */

body.job-type-archive .job-board-main-header {
    padding: 120px 20px 30px 20px;
    margin-top: 0;
    background: linear-gradient(180deg, #f8f9fa 0%, var(--gfi-color-white) 100%);
    border-bottom: 1px solid var(--gfi-color-base-01);
}

body.job-type-archive .discover-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.job-type-archive .discover-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gfi-color-black);
    margin: 0;
    padding-top: 0;
    text-align: center;
}

body.job-type-archive .type-description {
    font-size: var(--gfi-font-body-m);
    line-height: 1.6;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin-top: 12px;
    margin-bottom: 28px;
}

/* ========================================
   JOB TYPE BREADCRUMB
   ======================================== */

body.job-type-archive .job-type-breadcrumb-wrapper {
    position: static;
    width: 100%;
    margin-bottom: 12px;
    padding-left: 220px;
}

body.job-type-archive .job-type-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: var(--gfi-space-3);
    padding: 6px 14px;
    background-color: var(--gfi-color-base-01);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gfi-color-brand-accent);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

body.job-type-archive .job-type-breadcrumb:hover {
    background-color: #e8f7f2;
    color: var(--gfi-color-cta-bg-hover);
    border-color: var(--gfi-color-brand);
    transform: translateX(-3px);
}

body.job-type-archive .job-type-breadcrumb .breadcrumb-back-arrow {
    font-size: var(--gfi-font-body-s);
    transition: transform 0.3s ease;
}

body.job-type-archive .job-type-breadcrumb:hover .breadcrumb-back-arrow {
    transform: translateX(-3px);
}

/* ========================================
   ENHANCED PAGINATION
   ======================================== */

body.job-type-archive .job-board-pagination {
    display: flex;
    justify-content: center;
    margin: 50px 0 30px;
}

body.job-type-archive .job-board-pagination .pagination-list {
    display: flex;
    list-style: none;
    gap: var(--gfi-space-1);
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

body.job-type-archive .job-board-pagination li {
    margin: 0;
}

body.job-type-archive .job-board-pagination a,
body.job-type-archive .job-board-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: var(--gfi-color-white);
    color: var(--gfi-color-black);
    text-decoration: none;
    font-size: var(--gfi-font-body-s);
    font-weight: 500;
    transition: all 0.3s ease;
}

body.job-type-archive .job-board-pagination a:hover {
    background: var(--gfi-color-cta-bg);
    color: var(--gfi-color-white);
    border-color: var(--gfi-color-brand);
    transform: translateY(-2px);
}

body.job-type-archive .job-board-pagination .current {
    background: var(--gfi-color-cta-bg);
    color: var(--gfi-color-white);
    border-color: var(--gfi-color-brand);
    font-weight: 600;
}

body.job-type-archive .job-board-pagination a[rel="prev"],
body.job-type-archive .job-board-pagination a[rel="next"] {
    font-weight: 600;
    min-width: auto;
    padding: 0 18px;
    border-color: var(--gfi-color-brand);
}

body.job-type-archive .job-board-pagination a[rel="prev"]:hover,
body.job-type-archive .job-board-pagination a[rel="next"]:hover {
    background: var(--gfi-color-cta-bg);
    color: var(--gfi-color-white);
}

/* ========================================
   JOB TYPE FILTERS
   ======================================== */

body.job-type-archive .job-board-sidebar .job-filter-widget {
    margin-bottom: 25px;
}

body.job-type-archive .job-board-sidebar .widget-title {
    font-size: var(--gfi-font-body-m);
    font-weight: 600;
    color: var(--gfi-color-contrast-02);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: var(--gfi-space-1);
}

body.job-type-archive .job-board-sidebar .widget-title::before {
    content: "📊";
    font-size: var(--gfi-font-body-s);
}

/* ========================================
   CATEGORY FILTER IN TYPE PAGES
   ======================================== */

body.job-type-archive .category-dropdown-menu {
    z-index: 1001; /* Higher than other dropdowns */
}

body.job-type-archive .category-option.selected {
    background-color: #e8f7f2;
}

body.job-type-archive .category-option input[type="checkbox"]:checked {
    border-color: var(--gfi-color-brand) !important;
    background-color: var(--gfi-color-cta-bg) !important;
}

/* ========================================
   EMPLOYER CTA IN TYPE PAGES
   ======================================== */

body.job-type-archive .employer-cta-box {
    margin-top: 30px;
    background: var(--gfi-color-cta-bg);
    border-radius: 12px;
    padding: 0 !important;
    border: none;
    box-shadow: 0 2px 8px rgba(78, 204, 163, 0.2);
}

body.job-type-archive .employer-cta-title {
    color: var(--gfi-color-white);
}

body.job-type-archive .employer-cta-text {
    color: rgba(255, 255, 255, 0.95);
}

body.job-type-archive .employer-cta-button {
    background: var(--gfi-color-white);
    color: var(--gfi-color-black);
}

body.job-type-archive .employer-cta-button:hover {
    background: var(--gfi-color-black);
    color: var(--gfi-color-brand-accent);
}

/* ========================================
   NO JOBS MESSAGE
   ======================================== */

body.job-type-archive .no-jobs-found {
    text-align: center;
    padding: 60px 20px;
    background: var(--gfi-color-white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    border-style: dashed;
}

body.job-type-archive .no-jobs-found p {
    font-size: var(--gfi-font-body-m);
    color: #555;
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
}

/* ========================================
   JOB TYPE CHIPS (Homepage)
   ======================================== */

.job-type-quick-links-wrapper {
    max-width: 700px;
    margin: var(--gfi-space-3) auto 0;
    text-align: center;
}

.job-type-quick-links-wrapper .quick-links-label {
    display: block;
    font-size: var(--gfi-font-body-s);
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
}

.job-type-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.job-type-quick-links .job-type-chip {
    display: inline-flex;
    align-items: center;
    padding: var(--gfi-space-1) var(--gfi-space-2);
    background: var(--gfi-color-white);
    border: 2px solid #e0e0e0;
    color: var(--gfi-color-black);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 6px;
}

.job-type-quick-links .job-type-chip:hover {
    background: var(--gfi-color-cta-bg);
    border-color: var(--gfi-color-brand);
    color: var(--gfi-color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 204, 163, 0.25);
}

.job-type-quick-links .job-type-count {
    font-size: 11px;
    color: var(--gfi-color-mid-03);
    background: var(--gfi-color-base-01);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.job-type-quick-links .job-type-chip:hover .job-type-count {
    color: var(--gfi-color-white);
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   AJAX PAGINATION STYLES
   ======================================== */

body.job-type-archive .pagination-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: var(--gfi-color-white);
    color: var(--gfi-color-black);
    text-decoration: none;
    font-size: var(--gfi-font-body-s);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

body.job-type-archive .pagination-button:hover {
    background: var(--gfi-color-cta-bg);
    color: var(--gfi-color-white);
    border-color: var(--gfi-color-brand);
    transform: translateY(-2px);
}

body.job-type-archive .pagination-button:focus {
    outline: 2px solid var(--gfi-color-brand);
    outline-offset: 2px;
}

body.job-type-archive .pagination-button.current {
    background: var(--gfi-color-cta-bg);
    color: var(--gfi-color-white);
    border-color: var(--gfi-color-brand);
    font-weight: 600;
}

body.job-type-archive .pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.job-type-archive .pagination-button.disabled:hover {
    background: var(--gfi-color-white);
    color: var(--gfi-color-black);
    border-color: #e0e0e0;
    transform: none;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   TYPE-SPECIFIC COLORS (Optional)
   ======================================== */

body.job-type-archive.term-full-time .job-type-chip:hover,
body.job-type-archive.term-part-time .job-type-chip:hover,
body.job-type-archive.term-contract .job-type-chip:hover,
body.job-type-archive.term-internship .job-type-chip:hover {
    background: var(--gfi-color-cta-bg);
    border-color: var(--gfi-color-brand);
}

/* ========================================
   LOADING STATES
   ======================================== */

body.job-type-archive .ajax-loading-overlay {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

body.job-type-archive .loading-spinner {
    border: 4px solid var(--gfi-color-base-01);
    border-top: 4px solid var(--gfi-color-brand);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

body.job-type-archive .loading-text {
    color: var(--gfi-color-brand-accent);
    font-size: var(--gfi-font-body-s);
    font-weight: 500;
}

/* ========================================
   SEARCH BAR FOCUS
   ======================================== */

body.job-type-archive .primary-filter-inputs:focus-within {
    border-color: var(--gfi-color-brand);
    box-shadow: 0 4px 12px rgba(78, 204, 163, 0.15);
}

/* ========================================
   TRANSITIONS
   ======================================== */

body.job-type-archive {
    animation: fadeInPage 0.3s ease-in;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

body.job-type-archive .job-type-breadcrumb:focus,
body.job-type-archive .job-type-chip:focus,
body.job-type-archive .pagination-button:focus {
    outline: 2px solid var(--gfi-color-brand);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    body.job-type-archive .job-type-breadcrumb,
    body.job-type-archive .job-type-chip,
    body.job-type-archive .pagination-button {
        transition: none;
    }
    
    body.job-type-archive .job-type-breadcrumb:hover,
    body.job-type-archive .job-type-chip:hover {
        transform: none;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 1024px) {
    body.job-type-archive .job-board-main-header {
        padding: 100px 20px 25px;
    }
    
    body.job-type-archive .discover-header h1 {
        font-size: 28px;
    }
    
    body.job-type-archive .type-description {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    body.job-type-archive .job-board-pagination a,
    body.job-type-archive .job-board-pagination span,
    body.job-type-archive .pagination-button {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    body.job-type-archive .job-board-main-header {
        padding: 90px 15px 20px;
    }
    
    body.job-type-archive .discover-header h1 {
        font-size: 24px;
    }
    
    body.job-type-archive .type-description {
        font-size: var(--gfi-font-body-s);
    }
    
    /* Hide breadcrumb on mobile */
    body.job-type-archive .job-type-breadcrumb-wrapper {
        display: none;
    }
    
    /* Mobile job type chips */
    .job-type-quick-links {
        gap: var(--gfi-space-1);
    }
    
    .job-type-quick-links .job-type-chip {
        padding: 6px 12px;
        font-size: var(--gfi-font-caption);
    }
    
    .job-type-quick-links .job-type-count {
        font-size: 10px;
        padding: 1px 5px;
    }
    
    body.job-type-archive .job-board-pagination a,
    body.job-type-archive .job-board-pagination span,
    body.job-type-archive .pagination-button {
        min-width: 36px;
        height: 36px;
        font-size: var(--gfi-font-caption);
        padding: 0 10px;
    }
}

@media (max-width: 767px) {
    body.job-type-archive .job-board-pagination .pagination-list {
        gap: var(--gfi-space-0-5);
    }
}

@media (max-width: 480px) {
    body.job-type-archive .job-board-main-header {
        padding: var(--gfi-space-10) 12px 20px;
    }
    
    body.job-type-archive .discover-header h1 {
        font-size: 22px;
    }
    
    body.job-type-archive .no-jobs-found {
        padding: var(--gfi-space-5) 15px;
    }
    
    body.job-type-archive .no-jobs-found p {
        font-size: var(--gfi-font-body-s);
    }
}

/* ========================================
   ENHANCED AJAX LOADING
   ======================================== */

body.job-type-archive #ajax-job-container {
    position: relative;
    min-height: 200px;
}

body.job-type-archive #job-listings-content.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ========================================
   CONSISTENT BORDER RADIUS
   ======================================== */

body.job-type-archive .job-board-sidebar,
body.job-type-archive .category-dropdown-menu,
body.job-type-archive .employer-cta-box,
body.job-type-archive .no-jobs-found {
    border-radius: 12px;
}

/* ========================================
   CONSISTENT SPACING
   ======================================== */

body.job-type-archive .job-board-content {
    padding-top: 0;
    margin-top: 0;
}

/* ========================================
   CATEGORY FILTER DROPDOWN ENHANCEMENT
   ======================================== */

body.job-type-archive .category-option {
    border-radius: 6px;
    margin: 2px 5px;
}

body.job-type-archive .category-option:hover {
    background-color: #f0f7ff;
}

body.job-type-archive .category-option.selected:hover {
    background-color: #e8f7f2;
}

/* Match the shared job-board filter typography on job type archives. */
body.job-type-archive .job-board-sidebar .widget-title {
    font-family: 'Louize', serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    color: var(--gfi-color-contrast-03) !important;
    margin: 0 0 14px 0;
    font-variant-numeric: lining-nums !important;
    font-feature-settings: "lnum" 1, "onum" 0 !important;
}

body.job-type-archive .job-board-sidebar .widget-title::before {
    content: none;
}


