:root {
    --primary-blue: #0066CC;
    --light-blue: #E6F0FF;
    --medium-blue: #1A73E8;
    --dark-blue: #0D47A1;
    --border-blue: #B3D4FC;
    --hover-blue: #1976D2;
    --success: #00C853;
    --warning: #FFA000;
    --error: #FF5252;
    --background: #FFFFFF;
    --surface: #F5F9FF;
    --text: #212B36;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0, 102, 204, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 102, 204, 0.15);
    --shadow-lg: 0 10px 15px rgba(0, 102, 204, 0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--surface);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* Header */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle {
    padding: 8px 16px;
    border: 2px solid var(--border-blue);
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-toggle:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.filter-toggle {
    padding: 8px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 48px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .hero {
        padding: 32px 0;
    }
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 24px;
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--light-blue);
    margin-bottom: 32px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.search-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    font-size: 16px;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--background);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

/* Main Content */
.main {
    padding: 32px 0;
    min-height: 60vh;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 280px 1fr;
    }
}

/* Filters Sidebar */
.filters {
    background: var(--background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    position: sticky;
    top: 80px;
}

@media (max-width: 1024px) {
    .filters {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    .filters.active {
        transform: translateX(0);
    }
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.filters-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
}

.clear-filters {
    padding: 6px 12px;
    border: 1px solid var(--error);
    background: transparent;
    color: var(--error);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filters:hover {
    background: var(--error);
    color: white;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--background);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s;
}

.select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
    transition: all 0.2s;
}

.checkbox-label:hover {
    color: var(--primary-blue);
}

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

/* Jobs Section */
.jobs-section {
    min-height: 400px;
}

.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.jobs-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.close-filters {
    padding: 8px 16px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Job Card */
.job-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-blue);
    transition: background 0.2s;
}

.job-card:hover::before {
    background: var(--primary-blue);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.vip {
    background: var(--warning);
    color: white;
}

.badge.new {
    background: var(--success);
    color: white;
}

.badge.salary {
    background: var(--medium-blue);
    color: white;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.job-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-company::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--light-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.job-deadline {
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-details {
    padding: 8px 16px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 16px;
}

.view-details:hover {
    background: var(--primary-blue);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 64px 32px;
}

.no-results svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.no-results p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    width: 100%;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--background);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px;
    border: none;
    background: var(--surface);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-body {
    padding: 60px 24px 24px;
    overflow-y: auto;
    flex: 1;
}

@media (max-width: 768px) {
    .modal-body {
        padding: 60px 16px 80px;
    }
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

@media (max-width: 768px) {
    .modal-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px;
    }
}

/* Job Detail Styles */
.job-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.job-detail-company {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.job-detail-section {
    margin-bottom: 24px;
}

.job-detail-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.job-detail-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.job-detail-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.job-detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-detail-meta-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.job-detail-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-blue);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: white;
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    text-align: center;
}

@media (min-width: 640px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-brand .logo-text {
    color: white;
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--border-blue);
    font-size: 14px;
}

.footer-links a {
    color: var(--border-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    text-align: center;
    font-size: 14px;
    color: var(--border-blue);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utility */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
