/* EduNaukri Job Marketplace */

.jm-hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
}
.jm-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.jm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--ed-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.jm-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0.5rem 0 0.35rem;
  color: var(--ed-on-surface);
}
.jm-hero__subtitle {
  color: var(--ed-on-surface-variant);
  max-width: 42rem;
  margin: 0;
}

.jm-search {
  background: #fff;
  border: 1px solid var(--ed-border-card);
  border-radius: 20px;
  padding: 0.75rem;
  box-shadow: var(--ed-shadow-sophisticated);
}
.jm-search__row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.jm-search__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: var(--ed-surface-container-low);
  margin: 0;
}
.jm-search__field i {
  color: var(--ed-primary);
}
.jm-search__field input {
  border: 0;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 0.9375rem;
}

.jm-body {
  padding: 1.5rem 0 3rem;
}
.jm-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.jm-sidebar {
  position: sticky;
  top: 1rem;
  background: #fff;
  border: 1px solid var(--ed-border-card);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--ed-shadow-sophisticated);
}
.jm-sidebar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.jm-sidebar__title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}
.jm-sidebar__reset {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ed-primary);
}
.jm-filter-group {
  margin-bottom: 0.75rem;
}
.jm-filter-group--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.jm-filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ed-on-surface-variant);
  margin-bottom: 0.25rem;
}
.jm-filter-checks {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.75rem 0;
}
.jm-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 0;
}

.jm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.jm-toolbar__left,
.jm-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.jm-results-count {
  margin: 0;
  color: var(--ed-on-surface-variant);
  font-size: 0.9375rem;
}
.jm-personalized-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}
.jm-sort select {
  min-width: 160px;
  border-radius: 12px;
}
.jm-filter-toggle {
  border: 1px solid var(--ed-border-card);
  background: #fff;
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.jm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.jm-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--ed-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
.jm-chip--clear {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.jm-jobs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.jm-jobs--related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.jm-job-card {
  background: #fff;
  border: 1px solid var(--ed-border-card);
  border-radius: 20px;
  padding: 1.1rem 1.15rem;
  box-shadow: var(--ed-shadow-sophisticated);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.jm-job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ed-shadow-sophisticated-hover);
}
.jm-job-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.jm-job-card__brand {
  display: flex;
  gap: 0.85rem;
  min-width: 0;
}
.jm-job-card__logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.jm-job-card__company {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ed-on-surface-variant);
}
.jm-job-card__title {
  font-size: 1.0625rem;
  font-weight: 800;
  margin: 0.15rem 0 0;
  line-height: 1.3;
}
.jm-job-card__title a {
  color: inherit;
  text-decoration: none;
}
.jm-job-card__title a:hover {
  color: var(--ed-primary);
}
.jm-job-card__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}
.jm-match-badge {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  white-space: nowrap;
}
.jm-match-badge--lg {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
}
.jm-fresh-badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
}
.jm-featured-badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
}
.jm-job-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.jm-job-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.jm-skill-tag {
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  background: var(--ed-surface-container);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ed-on-surface-variant);
}
.jm-job-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(199, 196, 216, 0.25);
}
.jm-job-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--ed-on-surface-variant);
}
.jm-job-card__stats i {
  color: var(--ed-primary);
}
.jm-job-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.jm-applied-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #15803d;
  font-size: 0.8125rem;
  font-weight: 700;
}
.jm-applied-label--lg {
  font-size: 0.9375rem;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.1);
}

.jm-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border-radius: 20px;
  border: 1px dashed var(--ed-border-card);
}
.jm-empty i {
  font-size: 2rem;
  color: var(--ed-primary);
  margin-bottom: 0.75rem;
}

.jm-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.jm-page-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--ed-border-card);
  background: #fff;
  font-weight: 600;
  text-decoration: none;
  color: var(--ed-on-surface);
}
.jm-page-info {
  font-size: 0.875rem;
  color: var(--ed-on-surface-variant);
}

/* Detail page */
.jm-detail {
  padding: 1.5rem 0 3rem;
}
.jm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ed-on-surface-variant);
  margin-bottom: 1rem;
}
.jm-breadcrumb a {
  color: var(--ed-primary);
  text-decoration: none;
  font-weight: 600;
}
.jm-detail__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  align-items: start;
}
.jm-detail__main {
  background: #fff;
  border: 1px solid var(--ed-border-card);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--ed-shadow-sophisticated);
}
.jm-detail__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(199, 196, 216, 0.25);
}
.jm-detail__brand {
  display: flex;
  gap: 1rem;
}
.jm-detail__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
}
.jm-detail__company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ed-on-surface-variant);
  margin: 0.35rem 0 0.65rem;
}
.jm-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.jm-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  min-width: 180px;
}
.jm-detail__section {
  margin-bottom: 1.5rem;
}
.jm-detail__section h2 {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}
.jm-detail__prose {
  color: var(--ed-on-surface-variant);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.jm-aside-card {
  background: #fff;
  border: 1px solid var(--ed-border-card);
  border-radius: 20px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--ed-shadow-sophisticated);
}
.jm-aside-card h3 {
  font-size: 0.9375rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.jm-aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.jm-aside-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(199, 196, 216, 0.2);
}
.jm-aside-list li:last-child {
  border-bottom: 0;
}
.jm-aside-list span {
  color: var(--ed-on-surface-variant);
}
.jm-aside-text {
  font-size: 0.8125rem;
  color: var(--ed-on-surface-variant);
  line-height: 1.6;
}
.jm-aside-meta {
  font-size: 0.8125rem;
  color: var(--ed-on-surface-variant);
  margin: 0.35rem 0 0;
}
.jm-aside-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ed-primary);
}

.jm-related {
  margin-top: 2rem;
}
.jm-related__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.jm-apply-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  z-index: 2000;
  padding: 1rem;
}
.jm-apply-modal[hidden] {
  display: none;
}
.jm-apply-modal__dialog {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--ed-shadow-sophisticated-hover);
}
.jm-apply-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

@media (max-width: 991.98px) {
  .jm-layout {
    grid-template-columns: 1fr;
  }
  .jm-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 88vw);
    z-index: 1050;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    max-height: 100vh;
  }
  .jm-sidebar.is-open {
    transform: translateX(0);
  }
  .jm-search__row {
    grid-template-columns: 1fr;
  }
  .jm-detail__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .jm-job-card__top {
    flex-direction: column;
  }
  .jm-job-card__badges {
    flex-direction: row;
    align-items: flex-start;
  }
}

.ed-icon-btn.is-saved,
.jsd-save-btn.is-saved,
.ed-btn.is-saved {
  color: var(--ed-primary, #6750a4);
}

.ed-icon-btn.is-saved i,
.jsd-save-btn.is-saved i {
  color: inherit;
}

.jsd-save-btn.is-saving,
.ed-icon-btn.is-saving {
  opacity: 0.65;
  pointer-events: none;
}

.jsd-save-btn--pulse,
.ed-icon-btn.jsd-save-btn--pulse {
  animation: jmSavePulse 0.42s ease;
}

@keyframes jmSavePulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Share Modal Styles */
.jm-share-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.jm-share-btn-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--ed-border-card);
  border-radius: 12px;
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ed-on-surface);
  text-decoration: none;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.jm-share-btn-action:hover {
  background: var(--ed-surface-container);
  border-color: #cbd5e1;
  text-decoration: none;
}
.jm-share-btn-action i {
  font-size: 1.25rem;
}
.jm-share-btn-action.whatsapp { color: #16a34a; }
.jm-share-btn-action.linkedin { color: #0284c7; }
.jm-share-btn-action.twitter { color: #0f1419; }
.jm-share-btn-action.facebook { color: #1877f2; }
.jm-share-btn-action.telegram { color: #0088cc; }
