/* Greenhouse Jobs Board Styles */

.greenhouse-jobs-board {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Job Alert Box */
.job-alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    margin-bottom: 32px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.job-alert .svg-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.job-alert .icon--primary-color {
    fill: #3b82f6;
}

.job-alert > div {
    flex: 1;
}

.job-alert .body {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.job-alert .body--medium {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.job-alert .link {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.job-alert .link:hover {
    color: #2563eb;
}

/* Filters Section */
.greenhouse-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.greenhouse-filter-group {
    display: flex;
    flex-direction: column;
}

.greenhouse-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #111827;
}

#greenhouse-search,
.greenhouse-department,
.greenhouse-office {
    padding: 6px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.2s ease;
    color: #111827;
}

.greenhouse-search::placeholder {
    color: #9ca3af;
}

.greenhouse-department,
.greenhouse-office {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23111827' d='M2.5 4.5l3.5 3.5 3.5-3.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right;
    background-size: 25px;
    padding-right: 10px;
}

/* Ensure arrow shows on all browsers */
.greenhouse-department::-ms-expand,
.greenhouse-office::-ms-expand {
    display: none;
}

/* Jobs Count */
.greenhouse-jobs-count {
    font-size: 24px;
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 30px;
}

.jobs-total {
    font-weight: 700;
}

/* Jobs List */
.greenhouse-jobs-list {
    margin-top: 20px;
}

.greenhouse-department-section {
    margin-bottom: 40px;
    transition: opacity 0.3s ease;
}

.greenhouse-department-section.hidden {
    display: none;
}

.greenhouse-department-title {
    font-size: 24px;
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #4a90e2;
}

/* Job Item */
.greenhouse-job-item {
    border-bottom: 1px solid #e0e0e0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.greenhouse-job-item.hidden {
    display: none;
}

.greenhouse-job-link {
    display: block;
    padding: 16px 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.greenhouse-job-link:hover {
    background-color: #d5e2f6;
}

.greenhouse-job-title {
    font-size: 18px;
    line-height: 25px;
    font-weight: 600;
    color: #000;
    margin: 0;
    transition: color 0.2s ease;
}

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

.greenhouse-job-location {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* No Results Message */
.greenhouse-no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

.greenhouse-no-results p {
    margin: 0 0 8px 0;
}

.greenhouse-no-results p:last-child {
    margin-bottom: 0;
}

/* Error Message */
.greenhouse-error {
    background-color: #fee;
    color: #c00;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #c00;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .greenhouse-filters {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .job-alert {
        padding: 20px;
        gap: 12px;
    }
    
    .job-alert .body--medium {
        font-size: 15px;
    }
    
    .job-alert .body {
        font-size: 13px;
    }
    
    .greenhouse-jobs-count {
        font-size: 20px;
    }
    
    .greenhouse-department-title {
        font-size: 24px;
    }
    
    .greenhouse-job-title {
        font-size: 16px;
    }
}

/* Loading Animation */
.greenhouse-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.greenhouse-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}
