/* Jobs Page Specific Styles */

/* Override main margin for jobs page */
.jobs-main {
    margin-top: 100px;
}

/* Jobs Hero Section */
.jobs-hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0 60px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.jobs-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.jobs-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.2;
}

.jobs-hero-subtitle {
    font-size: 1.25rem;
    color: #7f8c8d;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Advanced Search */
.advanced-search {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.search-input,
.category-select,
.type-select,
.experience-select {
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus,
.category-select:focus,
.type-select:focus,
.experience-select:focus {
    outline: none;
    border-color: #0267c3;
    box-shadow: 0 0 0 3px rgba(2, 103, 195, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #0267c3 0%, #034ea2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 103, 195, 0.3);
}

/* Quick Filters */
.quick-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-label {
    font-weight: 500;
    color: #6c757d;
}

.quick-filter {
    background: white;
    border: 2px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-filter:hover,
.quick-filter.active {
    background: #0267c3;
    border-color: #0267c3;
    color: white;
}

/* Jobs Listing Section */
.jobs-listing {
    padding: 60px 0;
    min-height: calc(100vh - 500px);
}

.jobs-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* Sidebar */
.jobs-sidebar {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.filter-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.clear-filters {
    background: none;
    border: none;
    color: #0267c3;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

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

.filter-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #34495e;
}

/* Custom Checkbox */
.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    position: relative;
    padding-left: 30px;
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-checkbox:hover .checkmark {
    border-color: #0267c3;
}

.filter-checkbox input:checked ~ .checkmark {
    background-color: #0267c3;
    border-color: #0267c3;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.filter-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.filter-checkbox .checkmark:after {
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Jobs Content */
.jobs-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px 30px;
    border-bottom: 2px solid #f8f9fa;
    background: #fafbfc;
}

.jobs-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* Jobs Grid */
.jobs-grid {
    padding: 20px;
}

.job-card {
    background: white;
    border: 2px solid #f1f3f4;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.job-card:hover {
    border-color: #0267c3;
    box-shadow: 0 8px 25px rgba(2, 103, 195, 0.15);
    transform: translateY(-2px);
}

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

.job-company {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
}

.company-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.company-info p {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.job-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.job-type {
    background: #e8f5e8;
    color: #27ae60;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.job-posted {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.job-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.job-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apply-btn {
    background: linear-gradient(135deg, #0267c3 0%, #034ea2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 103, 195, 0.3);
}

/* Job Actions for Senior Frontend Developer */
.job-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.view-details-btn {
    background: white;
    color: #0267c3;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #0267c3;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(2, 103, 195, 0.2);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    padding: 40px 20px;
}

.load-more-btn {
    background: white;
    border: 2px solid #0267c3;
    color: #0267c3;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #0267c3;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.jobs-footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Active nav link */
.nav-links a.active {
    color: #0267c3;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .jobs-container {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .jobs-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .jobs-main {
        margin-top: 80px;
    }
    
    .jobs-hero {
        padding: 60px 0 40px 0;
    }
    
    .jobs-hero h1 {
        font-size: 2rem;
    }
    
    .jobs-hero-subtitle {
        font-size: 1rem;
    }
    
    .advanced-search {
        padding: 20px;
    }
    
    .search-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quick-filters {
        justify-content: flex-start;
    }
    
    .jobs-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .jobs-sidebar {
        order: 2;
        position: static;
    }
    
    .jobs-content {
        order: 1;
    }
    
    .jobs-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .jobs-hero h1 {
        font-size: 1.8rem;
    }
    
    .advanced-search {
        padding: 15px;
    }
    
    .jobs-sidebar {
        padding: 20px;
    }
    
    .job-card {
        padding: 20px;
    }
    
    .job-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .job-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .job-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .view-details-btn,
    .apply-btn {
        text-align: center;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0267c3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* No Results Styling */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.clear-search-btn {
    background: linear-gradient(135deg, #0267c3 0%, #034ea2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 103, 195, 0.3);
}