/* Job Listing Page Styles */
.job-listing-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

.job-listing-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Header */
.job-listing-page .page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.job-listing-page .page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.job-listing-page .page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Filters */
.job-listing-page .filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.job-listing-page .filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
}

.job-listing-page .filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.job-listing-page .filter-group select,
.job-listing-page .filter-group input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: border-color 0.3s ease;
}

.job-listing-page .filter-group select:focus,
.job-listing-page .filter-group input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Jobs Grid */
.job-listing-page .jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.job-listing-page .job-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.job-listing-page .job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #4285f4;
}

.job-listing-page .job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4285f4, #34a853, #fbbc04, #ea4335);
}

/* Company Header */
.job-listing-page .company-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.job-listing-page .company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: #f5f5f5;
    border: 2px solid #f0f0f0;
    font-weight: 600;
    font-size: 1.2rem;
}

.job-listing-page .company-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    margin: 0;
}

.job-listing-page .company-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.job-listing-page .company-rating .stars {
    color: #ffc107;
    font-weight: bold;
}

/* Job Content */
.job-listing-page .job-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
    margin-top: 0;
}

.job-listing-page .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.job-listing-page .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 6px;
}

.job-listing-page .job-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skills */
.job-listing-page .job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.job-listing-page .skill-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Job Footer */
.job-listing-page .job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.job-listing-page .salary {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

.job-listing-page .apply-btn {
    background: #4285f4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.job-listing-page .apply-btn:hover {
    background: #3367d6;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Job Type Badge */
.job-listing-page .job-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.job-listing-page .job-type.contract {
    background: #ffc107;
    color: #333;
}

.job-listing-page .job-type.part-time {
    background: #17a2b8;
}

.job-listing-page .job-type.freelance {
    background: #6f42c1;
}

.job-listing-page .job-type.internship {
    background: #fd7e14;
}

/* Load More */
.job-listing-page .load-more {
    text-align: center;
    margin-top: 40px;
}

.job-listing-page .load-more-btn {
    background: transparent;
    color: #4285f4;
    border: 2px solid #4285f4;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-listing-page .load-more-btn:hover {
    background: #4285f4;
    color: white;
}

.job-listing-page .load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* No Jobs State */
.job-listing-page .no-jobs {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    grid-column: 1 / -1;
}

.job-listing-page .no-jobs h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

/* Loading State */
.job-listing-page .loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.job-listing-page .loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .job-listing-page .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-listing-page .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .job-listing-page .filter-group {
        min-width: auto;
    }

    .job-listing-page .job-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .job-listing-page .apply-btn {
        text-align: center;
    }

    .job-listing-page .page-header h1 {
        font-size: 2rem;
    }

    .job-listing-page .company-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .job-listing-page .job-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .job-listing-page .container {
        padding: 10px;
    }

    .job-listing-page .job-card {
        padding: 20px;
    }

    .job-listing-page .page-header {
        padding: 30px 20px;
    }

    .job-listing-page .page-header h1 {
        font-size: 1.8rem;
    }
}

/* Animation for new jobs loading */
.job-listing-page .job-card.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for better UX */
.job-listing-page .job-card .apply-btn {
    transform: scale(1);
    transition: all 0.2s ease;
}

.job-listing-page .job-card:hover .apply-btn {
    transform: scale(1.05);
}

/* Focus states for accessibility */
.job-listing-page .job-card:focus {
    outline: 3px solid #4285f4;
    outline-offset: 2px;
}

.job-listing-page .apply-btn:focus {
    outline: 3px solid #4285f4;
    outline-offset: 2px;
}