/*
 * results.css — CareerZoneHub Results Listing
 * Mobile-first, green theme, no inline styles
 */

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.res-hero {
    background: linear-gradient(135deg, #065f46 0%, #059669 60%, #10b981 100%);
    padding: 44px 0 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.res-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%; height: 32px;
    background: #f8fafc;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.res-hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.res-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}

.res-shape-1 { width: 360px; height: 360px; top: -100px; right: -60px; }
.res-shape-2 { width: 180px; height: 180px; bottom: -40px; left: -40px; }

.res-hero-content {
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.res-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.92);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}

.res-hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.res-hero-content > p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 22px;
    line-height: 1.55;
}

/* Search */
.res-search-form { max-width: 540px; margin-bottom: 22px; }

.res-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.res-search-box:focus-within { border-color: #fbbf24; }

.res-search-box > i {
    padding: 0 12px 0 18px;
    color: #94a3b8;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.res-search-box input {
    flex: 1;
    border: none;
    padding: 13px 6px;
    font-size: 16px;
    color: #0f172a;
    outline: none;
    background: transparent;
    min-width: 0;
}

.res-search-box input::placeholder { color: #94a3b8; }

.res-search-clear {
    padding: 0 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.res-search-clear:hover { color: #ef4444; }

.res-search-box button {
    padding: 13px 22px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.res-search-box button:hover { background: linear-gradient(135deg, #047857, #065f46); }

/* Stats */
.res-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 14px 20px;
}

.res-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
}

.res-stat i { font-size: 1.2rem; color: rgba(255,255,255,0.7); }
.res-stat strong { display: block; font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.1; }
.res-stat span   { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.4px; }

.res-stat-div { width: 1px; height: 36px; background: rgba(255,255,255,0.2); flex-shrink: 0; }

@media (max-width: 479px) {
    .res-stats { flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; }
    .res-stat-div { display: none; }
    .res-stat { padding: 0; justify-content: center; }
}

/* ══════════════════════════════════════
   FILTER BAR
══════════════════════════════════════ */
.res-filter-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 60px;
    z-index: 30;
}

.res-filter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 12px;
    flex-wrap: wrap;
}

.res-filter-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

.res-filter-scroll::-webkit-scrollbar { display: none; }

.res-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.res-tab:hover     { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.res-tab-active    { background: #059669; border-color: #059669; color: #fff; }
.res-tab i         { font-size: 0.78rem; }

.res-count {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.res-count strong { color: #059669; font-size: 1rem; }

.res-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #d1fae5;
    color: #065f46;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 600;
}

.res-tag a { color: inherit; text-decoration: none; }
.res-tag a:hover { color: #ef4444; }

/* ══════════════════════════════════════
   SECTION
══════════════════════════════════════ */
.res-section { padding: 28px 0 52px; background: #f8fafc; }

/* ══════════════════════════════════════
   GRID
══════════════════════════════════════ */
.res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

@media (max-width: 639px)  { .res-grid { grid-template-columns: 1fr; gap: 12px; } }
@media (min-width: 640px) and (max-width: 1023px) { .res-grid { grid-template-columns: repeat(2,1fr); } }

/* ══════════════════════════════════════
   RESULT CARD
══════════════════════════════════════ */
.res-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    opacity: 0;
    transform: translateY(14px);
}

.res-card.card-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.38s ease, transform 0.38s ease, box-shadow 0.22s, border-color 0.22s;
}

.res-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    border-color: #6ee7b7;
}

.res-card-bar  { height: 4px; flex-shrink: 0; }
.bar-new       { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-result    { background: linear-gradient(90deg, #059669, #6ee7b7); }

/* Body */
.res-card-body {
    padding: 16px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* Badges */
.res-badges { display: flex; flex-wrap: wrap; gap: 5px; }

.resbadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fff;
}

.resbadge-result { background: #059669; }
.resbadge-new    { background: #10b981; }
.resbadge-phase  { background: #7c3aed; }

/* Title */
.res-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.res-card-title a { color: inherit; text-decoration: none; transition: color 0.18s; }
.res-card-title a:hover { color: #059669; }

/* Org */
.res-card-org {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: #059669;
    font-weight: 600;
}

.res-card-org i { font-size: 0.78rem; flex-shrink: 0; }

/* Linked job */
.res-card-job {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
}

.res-card-job i { font-size: 0.75rem; color: #059669; flex-shrink: 0; }
.res-card-job a { color: inherit; text-decoration: none; }
.res-card-job a:hover { color: #059669; }

/* Meta pills */
.res-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 4px; }

.resmeta-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #334155;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    border: 1px solid #e2e8f0;
}

.resmeta-pill i { color: #059669; font-size: 0.7rem; }
.resmeta-pill strong { color: #0f172a; }
.pill-new { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.pill-new i { color: #10b981; }

/* Description */
.res-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.res-card-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

/* Buttons */
.resbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
}

.resbtn-primary { background: #059669; color: #fff; }
.resbtn-primary:hover { background: #047857; transform: translateY(-1px); }

.resbtn-outline { background: #fff; color: #059669; border: 1.5px solid #a7f3d0; }
.resbtn-outline:hover { background: #ecfdf5; }

@media (max-width: 479px) {
    .res-card-footer { flex-direction: column; }
    .resbtn { width: 100%; flex: none; }
}

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.res-empty {
    text-align: center;
    padding: 64px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.res-empty-icon {
    width: 72px; height: 72px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem; color: #059669;
}

.res-empty h3 { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.res-empty p  { font-size: 0.9rem; color: #64748b; margin-bottom: 24px; line-height: 1.6; }

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.res-pagination {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }

.pag-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 16px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600;
    text-decoration: none; color: #334155;
    background: #fff; border: 1.5px solid #e2e8f0;
    transition: all 0.2s; min-width: 40px; justify-content: center;
}

.pag-btn:hover:not(.pag-disabled):not(.pag-active) { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.pag-active   { background: #059669; border-color: #059669; color: #fff; }
.pag-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.pag-dots     { display: inline-flex; align-items: center; padding: 9px 6px; color: #94a3b8; font-size: 0.85rem; }
.pag-info     { font-size: 0.8rem; color: #94a3b8; margin: 0; }

/* ══════════════════════════════════════
   CATEGORY BROWSE
══════════════════════════════════════ */
.res-categories { margin-top: 52px; }

.res-cat-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}

.res-cat-heading i { color: #059669; }

.res-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

@media (max-width: 639px) { .res-cat-grid { grid-template-columns: 1fr; gap: 10px; } }

.res-cat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s;
    color: inherit;
}

.res-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.09);
    border-color: #6ee7b7;
}

.res-cat-icon {
    width: 42px; height: 42px;
    background: #d1fae5;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #059669;
    flex-shrink: 0;
    transition: all 0.2s;
}

.res-cat-card:hover .res-cat-icon { background: #059669; color: #fff; }

.res-cat-info { flex: 1; min-width: 0; }
.res-cat-info strong { display: block; font-size: 0.9rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-cat-info span   { display: block; font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }

.res-cat-arrow { font-size: 0.75rem; color: #cbd5e1; flex-shrink: 0; transition: all 0.2s; }
.res-cat-card:hover .res-cat-arrow { color: #059669; transform: translateX(3px); }