/* Sarkari job wishlist: Save button on the job page (Views/Jobs/details.cshtml) and the
   Private / Sarkari switch on Student > My Wishlist (Views/Student/WishlistJobs.cshtml). */

/* ---------- Save button on the job page ---------- */
.gw-box { margin: 12px 0; display: flex; flex-direction: column; align-items: stretch; gap: 6px; font-family: 'Inter', 'Segoe UI', Arial, sans-serif; }
.gw-save {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; padding: 0 16px;
    border: 2px solid #e11d48; border-radius: 12px; background: #fff; color: #e11d48; font-weight: 800; font-size: .95rem;
    text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.gw-save i { font-size: 1.1rem; }
.gw-save:hover, .gw-save:focus-visible { background: #fff1f2; color: #be123c; text-decoration: none; box-shadow: 0 6px 16px rgba(225, 29, 72, .18); outline: none; }
.gw-save:focus-visible { box-shadow: 0 0 0 3px rgba(225, 29, 72, .3); }
.gw-save.is-saved { background: linear-gradient(120deg, #e11d48, #f43f5e); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(225, 29, 72, .28); }
.gw-save.is-saved:hover { color: #fff; filter: brightness(1.05); }
.gw-save.is-busy { opacity: .85; cursor: progress; }
.gw-save.gw-pop i { animation: gwPop .6s ease; }
.gw-save-link { font-size: .84rem; font-weight: 700; color: #be123c; text-align: center; }
.gw-save-link:hover { color: #9f1239; }
.gw-save-hint, .gw-save-msg { font-size: .78rem; color: #64748b; text-align: center; }
.gw-save-msg:empty { display: none; }
.gw-save-msg.is-bad { color: #b91c1c; }
@keyframes gwPop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }

/* ---------- My Wishlist: Private / Sarkari switch ---------- */
.gw-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 16px; border-radius: 14px; background: #f1f5f9; border: 1px solid #e2e8f0; }
.gw-switch button {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px;
    background: transparent; color: #475569; font-weight: 700; font-size: .92rem; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s;
}
.gw-switch button span { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: #e2e8f0; color: #334155; font-size: .76rem; }
.gw-switch button.is-on { background: #fff; color: #0f172a; box-shadow: 0 2px 8px rgba(15, 23, 42, .1); }
.gw-switch button.is-on span { background: #e11d48; color: #fff; }
.gw-switch button:focus-visible { outline: 2px solid #e11d48; outline-offset: 2px; }

/* Sarkari cards reuse the .sj-card design from Content/student-jobs/sj.css */
.gw-logo { background: linear-gradient(135deg, #f97316, #e11d48) !important; color: #fff !important; font-size: 1.1rem; }
.gw-card .sj-title a { color: inherit; text-decoration: none; }
.gw-card .sj-title a:hover { color: #e11d48; }
@media (max-width: 575px) {
    .gw-switch { display: flex; }
    .gw-switch button { flex: 1 1 0; justify-content: center; padding: 0 10px; font-size: .86rem; }
}
html[data-theme="dark"] .gw-save:not(.is-saved) { background: transparent; }
html[data-theme="dark"] .gw-switch { background: #111c31; border-color: #334155; }
html[data-theme="dark"] .gw-switch button { color: #cbd5e1; }
html[data-theme="dark"] .gw-switch button.is-on { background: #1e293b; color: #f8fafc; }
@media (prefers-reduced-motion: reduce) { .gw-save.gw-pop i { animation: none; } }
