/* =====================================================
   Teamz — Job Details Sliding Drawer CSS
   ===================================================== */

/* Sliding Details Drawer */
#jobDetailsDrawer {
  position: fixed;
  top: 0;
  right: -800px;
  width: 800px;
  height: 100%;
  background: #fff;
  z-index: 1001;
  box-shadow: -10px 0 35px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Backdrop Overlay */
#drawerBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Scrollable Drawer Body */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  background: #f8fafc;
}

.drawer-left-col {
  padding: 30px;
  background: #fff;
  border-right: 1.5px solid var(--border);
}

.drawer-right-col {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Skeleton Loading Shimmer Effect */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-title {
  width: 75%;
  height: 32px;
  margin: 15px 0 10px;
}

.skeleton-meta {
  width: 45%;
  height: 18px;
  margin-bottom: 25px;
}

.skeleton-text {
  width: 100%;
  height: 16px;
  margin-bottom: 12px;
}

.skeleton-text-short {
  width: 65%;
  height: 16px;
  margin-bottom: 25px;
}

.skeleton-box {
  width: 100%;
  height: 110px;
  border-radius: 16px;
}

/* ── Mobile Responsive Drawer styling ── */
@media (max-width: 768px) {
  #jobDetailsDrawer {
    width: 100% !important;
    right: -100% !important;
  }
  .drawer-body {
    grid-template-columns: 1fr !important;
  }
  .drawer-left-col {
    border-right: none !important;
    padding: 20px;
  }
  .drawer-right-col {
    padding: 20px;
    background: #fff;
    border-top: 1.5px solid var(--border);
  }
}
