/* ============================================================
   OPPORTUNITIES.CSS - PRISTINE PREMIUM UI (STRICT BRAND)
   ============================================================ */

:root {
  --ff-head: 'Bricolage Grotesque', sans-serif;
  --ff-body: 'Plus Jakarta Sans', sans-serif;
}

.opp-page { background: var(--bg); font-family: var(--ff-body); color: var(--text); }

/* Hero */
.opp-hero { background: var(--mnuc-navy); position: relative; overflow: hidden; padding: 72px 20px 56px; text-align: center; border-bottom-left-radius: 40px; border-bottom-right-radius: 40px; }
.opp-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.opp-hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(201, 162, 39, 0.15); border: 1px solid rgba(201, 162, 39, 0.3); color: var(--mnuc-gold); font-size: 0.75rem; font-weight: 700; margin-bottom: 16px; }
.opp-hero h1 { font-family: var(--ff-head); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 12px; letter-spacing: -0.02em; }
.opp-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.75); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.opp-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.opp-btn-ghost-hero { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.2); }
.opp-btn-ghost-hero:hover { background: rgba(255,255,255,0.15); }

/* Main & Tabs */
.opp-main { padding: 40px 0 80px; }
.opp-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.opp-tab { padding: 8px 16px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text-muted); font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.18s; font-family: var(--ff-body); }
.opp-tab:hover { border-color: var(--mnuc-navy); color: var(--mnuc-navy); }
.opp-tab.active { background: var(--mnuc-navy); color: var(--mnuc-gold); border-color: var(--mnuc-navy); }

/* Grid & Cards */
.opp-grid { display: grid; gap: 16px; }
.opp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s; cursor: pointer; }
.opp-card:hover { border-color: rgba(0,82,255,0.25); box-shadow: 0 8px 28px rgba(14,32,64,0.08); transform: translateY(-2px); }
.opp-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.opp-ico svg { width: 24px; height: 24px; }
.opp-body { min-width: 0; }
.opp-title { font-family: var(--ff-head); font-size: 1.05rem; font-weight: 700; color: var(--mnuc-navy); margin-bottom: 4px; }
.opp-meta { font-size: 0.82rem; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.opp-meta span { display: flex; align-items: center; gap: 4px; }
.opp-meta svg { width: 14px; height: 14px; color: var(--mnuc-gold); }
.opp-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: 0.72rem; font-weight: 800; text-transform: capitalize; letter-spacing: 0.02em; }
.badge svg { width: 12px; height: 12px; }
.badge-blue { background: rgba(0, 82, 255, 0.1); color: var(--mnuc-blue); }
.badge-green { background: rgba(5, 150, 105, 0.1); color: var(--green); }
.badge-gold { background: rgba(201, 162, 39, 0.1); color: var(--mnuc-gold); }
.badge-navy { background: rgba(14, 32, 64, 0.1); color: var(--mnuc-navy); }

/* SVG Color Helpers */
.svg-blue { background: rgba(0, 82, 255, 0.1); color: var(--mnuc-blue); }
.svg-green { background: rgba(5, 150, 105, 0.1); color: var(--green); }
.svg-gold { background: rgba(201, 162, 39, 0.1); color: var(--mnuc-gold); }

/* Empty State */
.opp-empty { text-align: center; padding: 64px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.opp-empty .empty-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--text-muted); margin: 0 auto 16px; }
.opp-empty h3 { font-family: var(--ff-head); font-size: 1.15rem; font-weight: 800; color: var(--mnuc-navy); margin-bottom: 8px; }
.opp-empty p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }

/* Skeleton */
.skeleton-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; }
.skel-avatar { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%); background-size: 200% 100%; animation: skel 1.4s infinite; }
.skel-body { display: grid; gap: 8px; }
.skel-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%); background-size: 200% 100%; animation: skel 1.4s infinite; }
.skel-line.w-60 { width: 60%; } .skel-line.w-50 { width: 50%; } .skel-line.w-40 { width: 40%; } .skel-line.w-30 { width: 30%; }
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Modal */
.opp-modal { max-width: 540px; }
.modal-body { padding-top: 4px; }
.modal-footer-text { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; }

/* Detail Bottom Sheet */
.opp-detail-overlay { position: fixed; inset: 0; background: rgba(14,32,64,0.6); backdrop-filter: blur(4px); z-index: 800; display: none; align-items: flex-end; justify-content: center; padding: 0; }
.opp-detail-overlay.open { display: flex; }
.opp-detail-panel { background: var(--surface); border-radius: 24px 24px 0 0; width: min(100%, 640px); max-height: 88vh; overflow-y: auto; padding: 16px 24px 40px; box-shadow: 0 -12px 48px rgba(0,0,0,0.18); animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.opp-detail-head { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.opp-detail-close { background: var(--bg); border: none; cursor: pointer; color: var(--text-muted); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: all 0.15s; }
.opp-detail-close:hover { background: var(--border); color: var(--text); }
.opp-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.opp-detail-ico { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; }
.opp-detail-ico svg { width: 28px; height: 28px; }
.opp-detail-title { font-family: var(--ff-head); font-size: 1.4rem; font-weight: 800; color: var(--mnuc-navy); margin-bottom: 4px; line-height: 1.2; }
.opp-detail-company { font-size: 0.92rem; color: var(--text-muted); font-weight: 600; }
.opp-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.opp-detail-desc { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 24px; white-space: pre-wrap; }
.opp-detail-actions { display: grid; gap: 10px; }

/* Responsive */
@media(max-width: 600px) {
  .opp-card { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px; }
  .opp-right { flex-direction: row; grid-column: 1 / -1; justify-content: space-between; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
  .form-grid { grid-template-columns: 1fr !important; }
}