/* File: /public/css/job/apply.css
   Modern, roomy styling for job apply / refer page
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap");

:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --muted: #6b7280;
  --heading: #0b1220;
  --accent-1: #2563eb; /* blue */
  --accent-2: #7c3aed; /* purple */
  --accent-grad: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  --shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.1);
  --radius: 14px;
  --gap: 20px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

/* Page background and wrapper spacing */
body {
  background: var(--bg);
  color: var(--heading);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

.container.py-5 {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* Cards */
.card {
  background: var(--card);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Left main card (job details) */
.card.p-4 {
  padding: 28px;
}

/* Job title */
h3.mb-1 {
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: var(--heading);
  letter-spacing: -0.2px;
}

/* small muted */
.small.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* company link */
.card p,
.card .mb-3,
.card .mb-2,
.card .mb-3 > * {
  color: #374151;
  line-height: 1.6;
}

/* Skills */
.card .mb-2 strong {
  font-weight: 700;
  color: var(--heading);
}

.badge-skill {
  display: inline-block;
  margin: 8px 6px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.03);
}

/* Actions row */
.d-flex.gap-2.mt-4 {
  margin-top: 22px !important;
}

.btn-primary {
  background: var(--accent-grad);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
}

/* outline button for refer */
.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--heading);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}
.btn-outline-light:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent-1);
  border-color: rgba(37, 99, 235, 0.12);
}

/* Right sidebar card (status) */
.col-lg-4 .card.p-3 {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.col-lg-4 .small.muted {
  display: block;
  color: var(--muted);
}

.col-lg-4 .text-light {
  background: linear-gradient(90deg, #eef2ff, #ede9fe);
  color: #0b1220 !important;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: capitalize;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.06);
}

/* Responsive adjustments - make layout snug on smaller screens */
@media (max-width: 991.98px) {
  .row.g-4 {
    gap: 18px;
  }
  .col-lg-8,
  .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .card.p-4,
  .card.p-3 {
    padding: 18px;
  }
  .btn-primary,
  .btn-outline-light {
    width: 100%;
    justify-content: center;
  }
  .d-flex.gap-2.mt-4 {
    flex-direction: column;
    gap: 12px;
  }
}

/* Small cosmetics for links in company line */
.card a.text-light {
  color: var(--accent-1);
  font-weight: 600;
  text-decoration: none;
}
.card a.text-light:hover {
  text-decoration: underline;
  color: var(--accent-2);
}

/* subtle separator under title */
.card.p-4::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.03),
    rgba(15, 23, 42, 0)
  );
  margin-top: 16px;
  opacity: 0.9;
}

/* Utility: make small-muted consistent */
.small-muted,
.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Accessibility: focus styles for keyboard users */
a.btn:focus,
.btn:focus {
  outline: 3px solid rgba(37, 99, 235, 0.12);
  outline-offset: 2px;
}

/* Make card content breathe */
.card.p-4 .mb-3,
.card.p-4 .mb-2 {
  margin-bottom: 14px;
}

/* If you want skills as pills (optional) - apply in markup by wrapping each skill with .badge-skill */
