/* =========================================================
   Recruiter candidate search
   Layout + results + anonymized candidate cards. (Filters -> filter.css)
   Card visuals adapted from the .canidate-card preview in
   index.html, promoted here into a reusable stylesheet.
   ========================================================= */

.search-shell {
    display:flex;
    width:100%;
    margin: 0 auto;
    padding: 24px 0 64px;
}

.search-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
    width:100%;
}


/* ---------- Results toolbar control (filter panel styles now live in filter.css) ---------- */
.results-toolbar select {
    background: #00000045;
    border: 1px solid #ffffff20;
    border-radius: 6px;
    color: #eee;
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
}
.results-toolbar select:focus {
    outline: none;
    border-color: var(--color-info);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, .22);
}
.results-toolbar select option { background: #1a1a1c; color: #eee; }


/* ---------- Results ---------- */
.results-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding:0 20px; }

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom:1px solid #FFFFFF33;
    padding:4px 0;
}
.results-toolbar .result-count { font-size: 14px; color: #ccc; }
.results-toolbar .result-count b { color: #fff; }
.results-toolbar .sort-wrap { display: flex; align-items: center; gap: 8px; }
.results-toolbar .sort-wrap label { font-size: 12px; color: #999; white-space: nowrap; }
.results-toolbar .sort-wrap select { width: auto; }

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

/* ---------- Candidate card (anonymized pairing) ---------- */
.candidate-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #ffffff1a;
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color .25s ease, transform .25s ease;
    transition: background-color .25s ease;
}

.candidate-card:hover { 
    background-color:var(--color-darkest);
    border-color: var(--color-info); 
    transform: translateY(-2px); }

.cc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cc-id { font-size: 12px; letter-spacing: .04em; color: #8a8a8a; font-family: monospace; }
.cc-match {
    font-size: 11px;
    color: var(--color-info);
    border: 1px solid var(--color-info);
    border-radius: 99px;
    padding: 2px 8px;
    white-space: nowrap;
}
.cc-title { font-size: 18px; color: #fff; font-weight: 100; letter-spacing: .02em; }
.cc-summary {
    font-size: 12.5px;
    line-height: 1.45;
    color: #b6b6b6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-meta .tag {
    font-size: 11px;
    color: #cfcfcf;
    background: #ffffff0d;
    border: 1px solid #ffffff17;
    border-radius: 4px;
    padding: 2px 7px;
}
.cc-meta .tag i { color: var(--color-info); margin-right: 4px; }

.cc-skills { display: flex; flex-wrap: wrap; gap: 4px; }
.skill-pill {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #ffffff20;
    border-radius: 4px;
    font-size: 12px;
}
.skill-pill .nm { padding: 3px 7px; color: var(--color-lighter); background: var(--color-darker); }
.skill-pill .yrs { padding: 3px 7px; color: #cfe8ff; background: rgba(52, 152, 219, .28); }
.skill-pill.more { align-items: center; padding: 3px 7px; color: var(--color-info); border-style: dashed; }

.cc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.cc-links { display: flex; gap: 4px; }
.cc-links a {
    color: #aaa;
    padding: 4px 6px;
    font-size: 15px;
    transition: color .2s ease;
}
.cc-links a:hover { color: var(--color-info); }
.cc-view {
    font-size: 12px;
    color: var(--color-info);
    cursor: pointer;
    white-space: nowrap;
}
.cc-view:hover { text-decoration: underline; }

/* ---------- Empty / end states ---------- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #8a8a8a;
    border: 1px dashed #ffffff1f;
    border-radius: 10px;
}
.empty-state i { font-size: 32px; color: #4a4a4a; margin-bottom: 12px; display: block; }

.load-more-wrap { display: flex; justify-content: center; padding-top: 4px; }

@media (max-width: 1240px) {
    .search-shell { width: 100%; max-width: 100%; padding: 24px 16px 64px; }
}
@media (max-width: 820px) {
    .search-layout { grid-template-columns: 1fr; }
}