/* =========================
   JOB DRAWER STYLE
========================= */

.job-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.job-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

/* Overlay */
.job-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.job-drawer.active .job-drawer-overlay {
  opacity: 1;
}

/* Panel */
.job-drawer-content {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 46rem;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.35s ease-in-out;
  display: flex;
  flex-direction: column;
}

.job-drawer.active .job-drawer-content {
  transform: translateX(0);
}

/* Header */
.drawer-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.drawer-back {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  margin-right: 10px;
}

/* Scroll */
.drawer-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 140px;
}

/* Card */
.drawer-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 8px 8px 16px rgba(0,0,0,0.08),
              -8px -8px 16px rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.05);
}

.drawer-card h4 {
  margin-bottom: 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

/* Header Card */
.drawer-job-header {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.drawer-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.drawer-badge {
  display: inline-block;
  background: #fff3e6;
  color: #ff7a00;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  margin-top: 5px;
}

/* Meta */
.drawer-meta div {
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* ✅ FIX ADDED — spacing between label and value */
.drawer-meta strong,
.drawer-grid strong {
  margin-right: 6px;
}

/* Meta icons styling */
.meta-icon {
  color: #043A53;
  width: 20px;
  margin-right: 8px;
  font-size: 14px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Grid */
.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 14px;
}

.drawer-grid div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Tags */
.drawer-tags span {
  display: inline-block;
  background: #eef5ff;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  margin: 4px 6px 0 0;
}

/* CTA */
.drawer-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 46rem;
  padding: 20px;
  border-top: 1px solid #eee;
  background: #fff;
  text-align: center;
  z-index: 10;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.drawer-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px 0;
  display: inline-block;
  text-decoration: none;
}

/* Description toggle styles */
.drawer-description-container {
  position: relative;
}

.drawer-description-container p {
  margin-bottom: 10px;
  line-height: 1.6;
  white-space: pre-line;
}

.description-toggle-container {
  margin-top: 8px;
  text-align: left;
}

.description-toggle {
  background: none;
  border: none;
  color: #043A53;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 0;
  font-size: 14px;
  text-decoration: underline;
  display: inline-block;
  transition: color 0.3s ease;
}

.description-toggle:hover {
  color: #0a5e7e;
}

.view-more, .view-less {
  display: inline-block;
}

/* Null value styling */
#drawerReference:empty::before,
#drawerJobId:empty::before,
#drawerLocation:empty::before,
#drawerSalary:empty::before,
#drawerDescription:empty::before {
  content: "Not Specified";
  color: #999;
  font-style: italic;
}

/* Copy icon styling */
.copy-icon {
  cursor: pointer;
  margin-left: 8px;
  color: #666;
  transition: color 0.3s ease;
}

.copy-icon:hover {
  color: #043A53;
}

/* Skill tags */
.skill-tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin: 0 4px 4px 0;
  color: #333;
}

/* Benefits list */
#drawerBenefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

#drawerBenefits li {
  padding: 4px 0;
  position: relative;
  padding-left: 20px;
}

#drawerBenefits li:before {
  content: "•";
  color: #043A53;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.social-url-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  flex-wrap: wrap;
}

#drawerSocial {
  font-size: 14px;
  color: #333;
  word-break: break-all;
}

.social-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #043A53;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  line-height: 1;
}

.social-link-icon:hover {
  color: #0a5e7e;
  transform: scale(1.1);
}

.social-link-icon i {
  font-size: 16px;
}

.hidden-id {
  display: none !important;
}



.login-btn {
  color: #043A53;              /* Your brand color */
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.login-btn:hover {
  color: #0a5e7e;
  border-bottom: 2px solid #0a5e7e;
}


/* Mobile */
@media (max-width: 768px) {
  .job-drawer-content {
    width: 100%;
  }

  .drawer-grid {
    grid-template-columns: 1fr;
  }

  .social-url-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-link-icon {
    align-self: flex-start;
  }

  .drawer-meta div,
  .drawer-grid div {
    flex-wrap: wrap;
  }

  .meta-icon {
    width: 18px;
  }
}