/**
 * Slinky Careers CSS
 */

/* General Styles */
.slinky-careers-container {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.slinky-careers-container * {
    box-sizing: border-box;
}

.slinky-careers-container a {
    text-decoration: none;
    color: #0073aa;
}

.slinky-careers-container a:hover {
    color: #00a0d2;
}

/* View Toggle */
.slinky-careers-view-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.slinky-careers-view-toggle button {
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    border-radius: 3px;
}

.slinky-careers-view-toggle button.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Grid View */
.slinky-careers-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 576px) {
    .slinky-careers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .slinky-careers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* List View */
.slinky-careers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Job Card */
.slinky-careers-job-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.slinky-careers-job-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.slinky-careers-job-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f7f7f7;
}

.slinky-careers-job-card-content {
    padding: 1.5rem;
}

.slinky-careers-job-card-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.slinky-careers-job-card-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.slinky-careers-job-card-meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.slinky-careers-job-card-meta-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.slinky-careers-job-card-excerpt {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.slinky-careers-job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.slinky-careers-job-card-date {
    font-size: 0.85rem;
    color: #666;
}

.slinky-careers-job-card-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #0073aa;
    color: white;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.slinky-careers-job-card-link:hover {
    background: #005177;
    color: white;
}

/* List View Specific */
.slinky-careers-list .slinky-careers-job-card {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .slinky-careers-list .slinky-careers-job-card {
        flex-direction: row;
    }

    .slinky-careers-list .slinky-careers-job-card-image {
        width: 200px;
        height: auto;
    }

    .slinky-careers-list .slinky-careers-job-card-content {
        flex: 1;
    }
}

/* Single Job */
.slinky-careers-single-job {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.slinky-careers-single-job-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.slinky-careers-single-job-title {
    margin: 0 0 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.slinky-careers-single-job-meta {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .slinky-careers-single-job-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

.slinky-careers-single-job-meta-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #f7f7f7;
    border-radius: 3px;
}

.slinky-careers-single-job-meta-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #666;
}

.slinky-careers-single-job-meta-value {
    font-size: 1rem;
}

.slinky-careers-single-job-content {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.slinky-careers-apply-button {
    margin: 2rem 0;
    text-align: center;
}

.slinky-careers-apply-button .button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #0073aa;
    color: white;
    border-radius: 3px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s ease;
    text-decoration: none;
}

.slinky-careers-apply-button .button:hover {
    background: #005177;
    color: white;
}

/* Taxonomy Terms */
.slinky-careers-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.slinky-careers-term {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #333;
    transition: background 0.3s ease;
}

.slinky-careers-term:hover {
    background: #e0e0e0;
}

/* Pagination */
.slinky-careers-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.slinky-careers-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f7f7f7;
    color: #333;
    text-decoration: none;
}

.slinky-careers-pagination .page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.slinky-careers-pagination .page-numbers:hover:not(.current) {
    background: #e0e0e0;
}