/* ============================================
   HERO SEARCH SECTION - Advanced Job Portal
   ============================================ */

/* Hero Section Container */
.bj-hero-premium {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f9 50%, #e0f2ff 100%);
    overflow: hidden;
    padding-top: 60px;
}

.bj-hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Hero Overlay */
.bj-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.04), transparent);
    pointer-events: none;
}

/* Content Container */
.bj-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0 40px;
}

/* Hero Title - SEO Optimized H1 */
.bj-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    max-width: 800px;
}

.bj-hero-title span {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.bj-hero-subtitle {
    font-size: 18px;
    color: #64748b;
    margin: 0 0 40px 0;
    line-height: 1.6;
    max-width: 600px;
}

/* ============================================
   MODE TOGGLE - Job Seeker vs Employer
   ============================================ */

.bj-search-mode-toggle {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    align-items: center;
}

.bj-mode-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bj-mode-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f0f4ff;
}

.bj-mode-btn.bj-mode-active {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

.bj-mode-btn.bj-mode-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.35);
}

/* ============================================
   SEARCH FORMS
   ============================================ */

.bj-search-forms {
    position: relative;
    margin-bottom: 30px;
}

.bj-search-form {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.bj-search-form.bj-search-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Search Fields Container */
.bj-search-fields {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr auto;
    gap: 16px;
    background: white;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    align-items: flex-end;
}

/* Individual Search Field */
.bj-search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bj-search-field label {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Input and Select Styling */
.bj-search-input,
.bj-search-select {
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.bj-search-input::placeholder {
    color: #cbd5e1;
}

.bj-search-input:focus,
.bj-search-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bj-search-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111827' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Suggestions Dropdown */
.bj-suggestions-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 4px;
}

.bj-suggestions-dropdown.active {
    display: block;
}

.bj-suggestion-item {
    padding: 10px 14px;
    color: #64748b;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.bj-suggestion-item:last-child {
    border-bottom: none;
}

.bj-suggestion-item:hover {
    background-color: #f9fafb;
    color: #2563eb;
    padding-left: 18px;
}

/* Search Button */
.bj-search-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 180px;
    justify-content: center;
}

.bj-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

.bj-search-btn:active {
    transform: translateY(0);
}

/* Employer CTA Button */
.bj-employer-cta {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    min-width: 220px;
}

/* ============================================
   TRENDING TAGS
   ============================================ */

.bj-trending-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.bj-trending-label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.bj-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bj-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bj-tag-badge:hover {
    border-color: #2563eb;
    background: #f0f4ff;
    color: #2563eb;
    transform: translateY(-2px);
}

.bj-tag-count {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 12px;
}

/* ============================================
   STATISTICS BAR (Trust Signal)
   ============================================ */

.bj-hero-stats {
    background: white;
    border-top: 1px solid #f0f0f0;
    padding: 30px 0;
    position: relative;
    z-index: 3;
    margin-top: 0;
}

.bj-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
}

.bj-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bj-stat-number {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bj-stat-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bj-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Trust Badge */
.bj-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #fef3ff 100%);
    border-radius: 8px;
    border: 1px solid #e0e7ff;
}

.bj-badge-text {
    font-weight: 600;
    color: #2563eb;
    font-size: 13px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .bj-hero-premium {
        min-height: 550px;
    }

    .bj-hero-title {
        font-size: 36px;
    }

    .bj-hero-subtitle {
        font-size: 16px;
    }

    .bj-search-fields {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }

    .bj-search-btn {
        grid-column: 1 / -1;
        min-width: auto;
    }

    .bj-stats-row {
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .bj-hero-premium {
        min-height: auto;
        padding-top: 40px;
    }

    .bj-hero-content {
        padding: 40px 0 24px;
    }

    .bj-hero-title {
        font-size: 28px;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .bj-hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .bj-search-mode-toggle {
        margin-bottom: 24px;
        gap: 10px;
    }

    .bj-mode-btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 13px;
    }

    .bj-search-fields {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .bj-search-btn {
        grid-column: auto;
        min-width: auto;
        width: 100%;
    }

    .bj-trending-tags {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .bj-trending-label {
        width: 100%;
    }

    .bj-tags-list {
        width: 100%;
    }

    .bj-stats-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bj-stat-item {
        justify-content: space-between;
    }

    .bj-trust-badge {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .bj-hero-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .bj-hero-subtitle {
        font-size: 13px;
    }

    .bj-search-fields {
        padding: 12px;
    }

    .bj-search-input,
    .bj-search-select {
        padding: 10px 12px;
        font-size: 13px;
    }

    .bj-stat-value {
        font-size: 22px;
    }

    .bj-stat-label {
        font-size: 11px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .bj-search-form,
    .bj-search-btn,
    .bj-tag-badge,
    .bj-mode-btn {
        transition: none;
    }

    .bj-search-btn:hover,
    .bj-tag-badge:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bj-hero-premium {
        background: linear-gradient(135deg, #1f2937 0%, #1a1f3a 50%, #1e2a4e 100%);
    }

    .bj-hero-title {
        color: #f9fafb;
    }

    .bj-hero-subtitle {
        color: #cbd5e1;
    }

    .bj-search-input,
    .bj-search-select {
        background: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }

    .bj-search-input::placeholder {
        color: #9ca3af;
    }

    .bj-tag-badge {
        background: #2d333e;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .bj-hero-stats {
        background: #1f2937;
        border-top-color: #4b5563;
    }
}
