/* BULLETPROOF JOB SEARCH CSS - ENHANCED VISUAL DESIGN */
/* Modern, visually appealing styling with sophisticated effects */

/* Root Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-hover: #5568d3;
    --success-color: #10b981;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --background-light: #f7fafc;
    --background-card: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-small: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Container */
.job-search-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Header */
.search-header-section {
    background: var(--primary-gradient);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.search-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.main-heading {
    color: white;
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 15px 0;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.sub-heading {
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Search Box */
.search-box-wrapper {
    background: var(--background-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.search-box-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0.8;
}

.search-inputs-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-field {
    flex: 1;
}

.text-input,
.select-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.text-input:focus,
.select-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.search-button {
    padding: 16px 36px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.search-button:hover::before {
    left: 100%;
}

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

/* Filter Toggle */
.toggle-filters-btn {
    width: 100%;
    padding: 16px;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.toggle-filters-btn::after {
    content: '▼';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.toggle-filters-btn:hover {
    background: #edf2f7;
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.toggle-filters-btn.active::after {
    transform: rotate(180deg);
}

/* Filters Panel */
.filters-panel {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.filters-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-field {
    flex: 1;
}

.filter-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: 0.025em;
}

.checkbox-row {
    margin: 24px 0;
    background: var(--background-light);
    padding: 20px;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
}

.checkbox-label:hover {
    background: rgba(102, 126, 234, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-clear,
.btn-apply {
    padding: 14px 28px;
    border-radius: var(--border-radius-small);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-clear {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-clear:hover {
    background: var(--background-light);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.btn-apply {
    background: var(--primary-gradient);
    border: none;
    color: white;
    position: relative;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Job Cards */
.jobs-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.job-card {
    background: var(--background-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-card:hover {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.job-card:hover::before {
    opacity: 1;
}

.job-card-content {
    padding: 32px;
}

.job-header {
    margin-bottom: 20px;
}

.job-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.badge-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.badge-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.job-title-link {
    margin: 0 0 16px 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
}

.job-title-link a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.job-title-link a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.company-name-display {
    margin: 0 0 16px 0;
    font-size: 19px;
    color: var(--primary-color);
    line-height: 1.5;
    font-weight: 600;
}

.company-name-display strong {
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.meta-separator {
    color: var(--border-color);
    font-weight: 600;
}

.job-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 20px 0;
    font-size: 16px;
}

.skills-list {
    margin-bottom: 24px;
}

.skills-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 2px solid var(--background-light);
    flex-wrap: wrap;
    gap: 20px;
}

.job-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.salary-info {
    font-weight: 700;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: var(--border-radius-small);
}

.exp-info {
    text-transform: capitalize;
    background: var(--background-light);
    padding: 6px 12px;
    border-radius: var(--border-radius-small);
    font-weight: 500;
}

.view-btn {
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.view-btn:hover::before {
    left: 100%;
}

/* Pagination */
.pagination-box {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 12px 18px;
    background: var(--background-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.page-btn.active {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: white;
}

.page-btn.active::before {
    opacity: 1;
}

/* Empty State */
.empty-box {
    background: var(--background-card);
    padding: 80px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.empty-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.empty-icon {
    font-size: 72px;
    margin-bottom: 24px;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.empty-box h3 {
    font-size: 28px;
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.empty-box p {
    color: var(--text-muted);
    margin: 0 0 28px 0;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover::before {
    left: 100%;
}

/* RESPONSIVE - Mobile */
@media (max-width: 768px) {
    .job-search-container {
        padding: 16px;
    }

    .main-heading {
        font-size: 32px;
    }

    .sub-heading {
        font-size: 18px;
    }

    .search-header-section {
        padding: 40px 24px;
    }

    .search-box-wrapper {
        padding: 24px;
    }

    .search-inputs-row {
        flex-direction: column;
        gap: 16px;
    }

    .search-button {
        width: 100%;
    }

    .filters-row {
        flex-direction: column;
        gap: 16px;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .btn-clear,
    .btn-apply {
        width: 100%;
        text-align: center;
    }

    .job-title-link {
        font-size: 22px;
    }

    .job-card-content {
        padding: 24px;
    }

    .job-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .search-header-section {
        padding: 32px 20px;
    }

    .search-box-wrapper {
        padding: 20px;
    }

    .job-card-content {
        padding: 20px;
    }

    .main-heading {
        font-size: 28px;
    }

    .sub-heading {
        font-size: 16px;
    }

    .job-title-link {
        font-size: 20px;
    }
}

/* Loading States */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Focus States for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}