/* Custom Styles for Search Results Page */
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

/* CRITICAL: Keep everything in one section - no gap between search and results */
.hero-section {
    padding: 2rem 0 0 !important;
}

/* Search Box - Compact */
.search-container {
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.search-box {
    display: flex;
    border: 2px solid var(--primary-black);
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    flex-grow: 1;
    border: none;
    padding: 10px 16px;
    font-size: 0.95rem;
    outline: none;
}

.search-btn {
    background-color: var(--primary-black);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: var(--dark-gray);
}

.search-helper {
    margin-top: 6px;
    color: var(--medium-gray);
    font-size: 0.8rem;
}

/* REMOVE the separate results section spacing - keep in same section */
.results-section {
    padding-top: 0 !important;
    padding-bottom: 2rem !important;
    margin-top: 0 !important;
}

/* Much Smaller, Compact Result Cards */
.result-card {
    background: white;
    padding: 15px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-gray);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.result-card hr {
    margin: 10px 0;
}

.employee-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--primary-black);
    line-height: 1.3;
}

.employee-id {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 6px;
}

.job-record {
    border-left: 3px solid var(--border-gray);
    padding-left: 10px;
    margin-bottom: 10px;
}

.job-title-line {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

.rating-summary {
    color: var(--gold);
    font-size: 0.95rem;
    margin-top: 6px;
    display: block;
}

.employer-line {
    font-size: 0.85rem;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Locked Details - Very Compact */
.locked-details {
    position: relative;
    overflow: hidden;
    padding: 12px;
    border-radius: 6px;
    background: var(--light-gray);
    margin-top: 10px;
    min-height: 120px;
}

.locked-text {
    filter: blur(4px);
    opacity: 0.4;
    user-select: none;
    pointer-events: none;
    font-size: 0.85rem;
    line-height: 1.4;
}

.locked-text p {
    margin-bottom: 6px;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    padding: 10px;
}

.lock-overlay h5 {
    color: var(--primary-black);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.lock-overlay p {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.btn-upgrade {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Dispute Button - Compact */
.dispute-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0;
}

.result-card .text-center.mt-4 {
    margin-top: 0.8rem !important;
}

/* Verification Badge Sizing - Smaller */
.badge-level-1,
.badge-level-2,
.badge-level-3 {
    font-size: 1.5rem !important;
}

/* Verification Badge Colors */
.badge-level-1 {
    color: var(--medium-gray);
}

.badge-level-2 {
    color: var(--primary-blue);
}

.badge-level-3 {
    color: var(--gold);
}

/* Reduce Gap Between Cards significantly */
.results-section .row.g-4 {
    row-gap: 1rem !important;
}

/* Make the top section more compact */
.result-card .d-flex.justify-content-between {
    margin-bottom: 8px;
}

.result-card .text-end span {
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .employee-name {
        font-size: 1.2rem;
    }
    
    .result-card {
        padding: 12px 15px;
    }
    
    .search-container {
        margin-bottom: 1rem;
    }
    
    .locked-details {
        min-height: 100px;
    }
}



/* ============================================
   UNIFIED SEARCH RESULTS PAGE - SINGLE SECTION
   ============================================ */

/* Main Section - Everything in One Place */
.unified-search-section {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
}

/* Compact Header */
.search-results-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
}

.results-count-badge {
    font-size: 1rem;
    color: var(--medium-gray);
    margin: 0;
}

.count-number {
    display: inline-block;
    background: var(--success-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    margin: 0 0.25rem;
}

.no-results-text {
    color: var(--dark-gray);
}

/* Inline Search - No Gap from Results */
.inline-search-wrapper {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.search-form-inline {
    margin-bottom: 0.5rem;
}

.search-box {
    background: white;
    border-radius: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 10px;
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-black);
    box-shadow: 0 12px 45px rgba(0,0,0,0.15);
}

.search-input {
    flex: 1;
    border: none;
    padding: 18px 30px;
    font-size: 1.05rem;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: var(--primary-black);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 35px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--dark-gray);
    transform: scale(1.03);
}

.search-helper {
    text-align: center;
    margin-top: 0.5rem;
    color: var(--medium-gray);
    font-size: 0.85rem;
}

/* Results Grid - Starts Immediately */
.results-grid {
    max-width: 900px;
    margin: 0 auto;
}

/* Compact Result Cards */
.result-card-compact {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--border-gray);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.result-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Result Header */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.employee-details {
    flex: 1;
}

.employee-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-black);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.employee-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.national-id-text {
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.national-id-text i {
    margin-right: 0.25rem;
}

.rating-display {
    color: var(--gold);
    font-size: 1rem;
}

.rating-value {
    color: var(--dark-gray);
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Verification Status */
.verification-status {
    text-align: right;
    min-width: 120px;
}

.verification-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.25rem;
}

.verification-icon.level-3 {
    color: var(--gold);
}

.verification-icon.level-2 {
    color: var(--primary-blue);
}

.verification-icon.level-1 {
    color: var(--medium-gray);
}

.verification-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.reports-total {
    font-size: 0.85rem;
    color: var(--success-green);
    font-weight: 600;
    margin: 0;
}

/* Divider */
.divider-line {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid var(--border-gray);
}

/* Job Record */
.job-record {
    background: var(--light-gray);
    border-left: 3px solid var(--primary-blue);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.job-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.job-icon {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.job-info {
    flex: 1;
}

.employer-name-line {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.job-category-location {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin: 0;
}

.job-title-duration {
    font-weight: 600;
    color: var(--primary-black);
    font-size: 0.9rem;
    margin: 0;
}

/* Locked Details */
.locked-details {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--light-gray);
    margin-top: 1rem;
    min-height: 140px;
}

.locked-text {
    padding: 1rem;
    filter: blur(4px);
    opacity: 0.3;
    user-select: none;
    pointer-events: none;
    font-size: 0.85rem;
}

.locked-section-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.locked-item {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.locked-item-review {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

.lock-icon {
    font-size: 2rem;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
}

.lock-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.lock-description {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.btn-upgrade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.65rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Dispute Section */
.dispute-section {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.dispute-btn {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.dispute-btn:hover {
    color: var(--dark-gray);
    text-decoration: underline;
}

/* No Results State */
.no-results-container {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.no-results-icon {
    font-size: 4rem;
    color: var(--border-gray);
    margin-bottom: 1.5rem;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
}

.no-results-text {
    color: var(--medium-gray);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.btn-back-home {
    background: var(--primary-black);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: var(--dark-gray);
    color: white;
    transform: translateY(-2px);
}

/* Modal Styling */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid var(--light-gray);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 991px) {
    .unified-search-section {
        padding: 120px 0 60px;
    }
    
    .results-title {
        font-size: 1.75rem;
    }
    
    .search-input {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
    
    .employee-name {
        font-size: 1.25rem;
    }
    
    .result-card-compact {
        padding: 1.25rem;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .unified-search-section {
        padding: 100px 0 50px;
    }
    
    .results-title {
        font-size: 1.5rem;
    }
    
    .results-count-badge {
        font-size: 0.9rem;
    }
    
    /* Stack Search Box Vertically */
    .search-box {
        flex-direction: column;
        padding: 15px;
        border-radius: 20px;
    }
    
    .search-input {
        width: 100%;
        padding: 12px 20px;
        margin-bottom: 0.75rem;
    }
    
    .search-btn {
        width: 100%;
        padding: 12px 25px;
    }
    
    /* Stack Result Header */
    .result-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .verification-status {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .verification-icon {
        font-size: 1.75rem;
        margin-bottom: 0;
    }
    
    .verification-label {
        font-size: 0.8rem;
    }
    
    .employee-name {
        font-size: 1.15rem;
    }
    
    .employee-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .result-card-compact {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .job-record {
        padding: 0.85rem;
    }
    
    .locked-details {
        min-height: 120px;
    }
    
    .lock-icon {
        font-size: 1.75rem;
    }
    
    .lock-title {
        font-size: 1rem;
    }
    
    .lock-description {
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .unified-search-section {
        padding: 90px 0 40px;
    }
    
    .results-title {
        font-size: 1.35rem;
    }
    
    .inline-search-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .employee-name {
        font-size: 1.1rem;
    }
    
    .verification-icon {
        font-size: 1.5rem;
    }
    
    .job-icon {
        font-size: 1rem;
    }
    
    .result-card-compact {
        padding: 0.875rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 399px) {
    .results-title {
        font-size: 1.2rem;
    }
    
    .employee-name {
        font-size: 1rem;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .search-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .unified-search-section {
        padding: 80px 0 40px;
    }
    
    .search-box {
        flex-direction: row;
    }
    
    .search-input {
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .search-btn {
        width: auto;
    }
}