/* ── Saved Jobs — Heart Animation + Cards ────────────────── */

/* Heart button — sprite-based animation adapted from Twitter heart.
   Uses a 29-frame horizontal sprite strip. Customized: orange burst
   particles via CSS hue-rotate, brand fill color via filter. */
.save-heart {
    width: 50px;
    height: 50px;
    background: url("/static/img/heart-sprite.png") no-repeat;
    background-size: 2900% 100%;
    background-position: 0 0;
    cursor: pointer;
    transition: background-position 1s steps(28);
    transition-duration: 0s;
    flex-shrink: 0;
    /* Shift red → our orange via hue-rotate + increase saturation */
    filter: hue-rotate(-10deg) saturate(1.4) brightness(1.1);
}

.save-heart.is-active {
    transition-duration: 0.8s;
    background-position: 100% 0;
}

/* Unsaved state: grayscale heart outline */
.save-heart:not(.is-active) {
    filter: grayscale(1) brightness(1.6) opacity(0.5);
}

.save-heart:not(.is-active):hover {
    filter: grayscale(0.5) brightness(1.3) opacity(0.7);
}

/* Title row with heart */
.jb-detail__title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.jb-detail__title-row .jb-detail__title {
    flex: 1;
    min-width: 0;
}

/* ── Saved Jobs Cards (dashboard / saved-jobs page) ────── */

.saved-jobs__grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.saved-job-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-surface, #111);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    border-radius: var(--radius-md, 10px);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}

.saved-job-card:hover {
    border-color: var(--border-color, rgba(255,255,255,0.15));
    background: var(--bg-elevated, #161616);
}

.saved-job-card__info {
    flex: 1;
    min-width: 0;
}

.saved-job-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, rgba(255,255,255,0.95));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.saved-job-card__company {
    font-size: 0.8125rem;
    color: var(--text-secondary, rgba(255,255,255,0.6));
    margin-top: 0.125rem;
}

.saved-job-card__location {
    font-size: 0.75rem;
    color: var(--text-muted, rgba(255,255,255,0.4));
    margin-top: 0.125rem;
}

.saved-job-card__logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.saved-job-card__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.saved-job-card__unsave {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--text-muted, rgba(255,255,255,0.4));
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}

.saved-job-card__unsave:hover {
    color: var(--danger-color, #ef4444);
    background: rgba(239, 68, 68, 0.1);
}

/* Empty state */
.saved-jobs__empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted, rgba(255,255,255,0.4));
}

.saved-jobs__empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted, rgba(255,255,255,0.25));
}

.saved-jobs__empty p {
    font-size: 0.875rem;
    margin: 0;
}
