/**
 * Opportunities Feed CSS
 * Job listings table with filters — scrollable fixed-height container
 */

/* Container */
.opportunities-feed {
    width: 100%;
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1B1917;
}

/* Header: title + filters row */
.opportunities-feed__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.opportunities-feed__title {
    font-family: 'Besley', Georgia, serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    color: #1B1917;
    flex-shrink: 0;
}

/* Filters */
.opportunities-feed__filters {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.opportunities-feed__filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.opportunities-feed__filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #1B1917;
    letter-spacing: 0.02em;
}

.opportunities-feed__filter-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #FBF7F5;
    border: 1px solid #1B1917;
    border-radius: 0;
    padding: 8px 30px 8px 12px;
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1B1917;
    cursor: pointer;
    min-width: 200px;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2713%27%20height%3D%2714%27%20viewBox%3D%270%200%2013%2014%27%20fill%3D%27none%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cpath%20d%3D%27M0.837694%208.66997L1.99769%207.44997L5.61769%2010.85L5.61769%200.0899655L7.3377%200.0899656L7.33769%2010.85L10.9777%207.44997L12.1377%208.66997L6.47769%2013.91L0.837694%208.66997Z%27%20fill%3D%27%231B1917%27%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s ease;
}

.opportunities-feed__filter-select:hover {
    border-color: #666;
}

.opportunities-feed__filter-select:focus {
    outline: none;
    border-color: #1B1917;
    box-shadow: 0 0 0 1px #1B1917;
}

/* Clear filters button */
.opportunities-feed__clear-filters {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #1B1917;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    margin-top: 24px;
    flex-shrink: 0;
    padding: 0;
}

.opportunities-feed__clear-filters.visible {
    display: flex;
}

.opportunities-feed__clear-filters:hover {
    background: #1B1917;
    color: #FBF7F5;
}

.opportunities-feed__clear-filters:hover svg line {
    stroke: #FBF7F5;
}

.opportunities-feed__clear-filters svg {
    width: 14px;
    height: 14px;
}

/* Table header */
.opportunities-feed__table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 140px;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid #1B1917;
    margin-bottom: 0;
}

.opportunities-feed__col-label {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.02em;
}

/* Scrollable list */
.opportunities-feed__list {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.opportunities-feed__list::-webkit-scrollbar {
    width: 4px;
}

.opportunities-feed__list::-webkit-scrollbar-track {
    background: transparent;
}

.opportunities-feed__list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* Job row */
.opportunities-feed__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 140px;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid #EEE8E6;
    align-items: center;
    transition: opacity 0.2s ease;
}

.opportunities-feed__row:last-child {
    border-bottom: none;
}

.opportunities-feed__role {
    font-size: 20px;
    font-weight: 500;
    color: #1B1917;
    line-height: 1.3;
}

.opportunities-feed__role a {
    color: #1B1917;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.opportunities-feed__role a:hover {
    text-decoration: underline;
}

.opportunities-feed__location,
.opportunities-feed__department {
    font-size: 15px;
    font-weight: 400;
    color: #666;
}

.opportunities-feed__cta {
    text-align: right;
}

.opportunities-feed__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    border: 1px solid #1B1917;
    border-radius: 999px;
        border-radius: 0px;
    background: #FBF7F5;
    color: #1B1917;
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.opportunities-feed__cta-link:hover {
    background: #1B1917;
    color: #FBF7F5;
}

.opportunities-feed__cta-link:hover .opportunities-feed__arrow {
    color: #FBF7F5;
}

.opportunities-feed__arrow {
    font-size: 16px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.opportunities-feed__cta-link:hover .opportunities-feed__arrow {
    transform: translateX(3px);
}

/* Empty state */
.opportunities-feed__empty {
    padding: 60px 24px;
    text-align: center;
    color: #888;
    font-size: 16px;
}

/* Loading state */
.opportunities-feed__loading {
    padding: 60px 24px;
    text-align: center;
    color: #888;
    font-size: 15px;
}

/* Responsive */
@media only screen and (max-width: 1000px) {
    .opportunities-feed__header {
        flex-direction: column;
        gap: 20px;
    }

    .opportunities-feed__title {
        font-size: 36px;
    }

    .opportunities-feed__filters {
        width: 100%;
    }

    .opportunities-feed__filter-select {
        min-width: 160px;
    }
}

@media only screen and (max-width: 768px) {
    .opportunities-feed__table-header {
        display: none;
    }

    .opportunities-feed__row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 0;
    }

    .opportunities-feed__role {
        font-size: 18px;
    }

    .opportunities-feed__location::before {
        content: 'Location: ';
        font-weight: 500;
        color: #1B1917;
    }

    .opportunities-feed__department::before {
        content: 'Department: ';
        font-weight: 500;
        color: #1B1917;
    }

    .opportunities-feed__cta {
        text-align: left;
        margin-top: 4px;
    }

    .opportunities-feed__filter-select {
        min-width: 100%;
        flex: 1;
    }

    .opportunities-feed__filters {
        flex-direction: column;
    }

    .opportunities-feed__filter-group {
        width: 100%;
    }

    .opportunities-feed__clear-filters {
        margin-top: 0;
    }

    .opportunities-feed__list {
        max-height: 400px;
    }
}
