/* TB Jobs Frontend Styles */

/* Job List */
.tb-jobs-list {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.tb-jobs-list.view-card {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.tb-jobs-list.view-list {
    grid-template-columns: 1fr;
}

/* Job Item */
.tb-job-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.tb-job-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.tb-job-item.is-featured {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffef5 0%, #fff 100%);
}

/* Featured Badge */
.tb-job-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Job Title */
.tb-job-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.tb-job-title a {
    color: #333;
    text-decoration: none;
}

.tb-job-title a:hover {
    color: #0073aa;
}

/* Job Company */
.tb-job-company {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Job Meta */
.tb-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

.tb-job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tb-job-meta .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

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

.tb-job-deadline {
    color: #d32f2f;
    font-size: 13px;
    font-weight: 500;
}

.tb-job-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.tb-job-link:hover {
    text-decoration: underline;
}

/* Job Filters */
.tb-jobs-filters {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.tb-jobs-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.tb-jobs-filter-item {
    flex: 1;
    min-width: 200px;
}

.tb-jobs-filter-item input,
.tb-jobs-filter-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tb-jobs-filter-submit {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.tb-jobs-filter-submit:hover {
    background: #005a87;
}

/* Pagination */
.tb-jobs-pagination {
    margin: 40px 0;
    text-align: center;
}

.tb-jobs-pagination ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 10px;
}

.tb-jobs-pagination li {
    display: inline-block;
}

.tb-jobs-pagination a,
.tb-jobs-pagination span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.tb-jobs-pagination .current span {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Single Job */
.tb-job-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0;
}

.tb-job-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.tb-job-header h1 {
    margin: 0 0 15px;
    font-size: 32px;
}

.tb-job-section {
    margin: 40px 0;
}

.tb-job-section h2 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.tb-job-apply-box {
    background: #f0f8ff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}

.tb-job-apply-box h3 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #0073aa;
}

.tb-job-apply-button {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.tb-job-apply-button:hover {
    background: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
    .tb-jobs-list.view-card {
        grid-template-columns: 1fr;
    }
    
    .tb-jobs-filter-form {
        flex-direction: column;
    }
    
    .tb-jobs-filter-item {
        width: 100%;
    }
    
    .tb-job-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .tb-job-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}