/* Modern Vacancy Page Styles */

/* Hero Section */
.vacancy-hero {
  background: var(--color-white);
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 2rem 0;
}

.vacancy-hero__container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .vacancy-hero__container {
    flex-direction: row;
    align-items: flex-start;
  }
}

.vacancy-hero__logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vacancy-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vacancy-hero__content {
  flex: 1;
}

.vacancy-hero__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.vacancy-hero__subtitle {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.vacancy-hero__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.vacancy-hero__flag {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
}

.vacancy-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.vacancy-hero__badge {
  background: var(--gray-50);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.vacancy-hero__badge--premium {
  background: #fff8e6;
  border-color: #ffd54f;
  color: #e65100;
}

.vacancy-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.vacancy-hero__cta {
  background: var(--color-blue);
  border: none;
  color: var(--color-white);
  border-radius: var(--radius);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.vacancy-hero__cta:hover,
.vacancy-hero__cta:focus {
  background: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: var(--elev-1);
  color: var(--color-white);
}

.vacancy-hero__save {
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,.1);
  color: var(--gray-700);
  border-radius: var(--radius);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  transition: all var(--dur-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.vacancy-hero__save:hover,
.vacancy-hero__save:focus {
  background: var(--gray-50);
  border-color: rgba(0,0,0,.2);
  transform: translateY(-1px);
}

/* Summary Section */
.vacancy-summary {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

.vacancy-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.vacancy-summary__item {
  display: flex;
  flex-direction: column;
}

.vacancy-summary__label {
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

.vacancy-summary__value {
  font-weight: 600;
  color: var(--color-black);
}

/* Content Sections */
.vacancy-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--elev-1);
}

.vacancy-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.vacancy-description {
  line-height: 1.6;
  color: var(--gray-900);
}

.vacancy-description p {
  margin-bottom: 1rem;
}

.vacancy-description ul,
.vacancy-description ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.vacancy-description li {
  margin-bottom: 0.5rem;
}

.vacancy-details__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vacancy-details__item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.vacancy-details__item:last-child {
  border-bottom: none;
}

.vacancy-details__label {
  font-weight: 500;
  color: var(--gray-700);
}

.vacancy-details__value {
  font-weight: 500;
  color: var(--color-black);
  text-align: right;
}

/* Tags Section */
.vacancy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.vacancy-tag {
  background: var(--gray-50);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}

.vacancy-tag:hover,
.vacancy-tag:focus {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Company Card */
.company-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--elev-1);
  margin-bottom: 2rem;
}

.company-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.company-card__logo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.company-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-card__info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 0.5rem 0;
}

.company-card__description {
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.company-card__cta {
  display: inline-block;
  background: var(--gray-50);
  border: 1px solid rgba(0,0,0,.1);
  color: var(--gray-700);
  border-radius: var(--radius);
  font-weight: 500;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
}

.company-card__cta:hover,
.company-card__cta:focus {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

/* Location Section */
.vacancy-location {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--elev-1);
  margin-bottom: 2rem;
}

.vacancy-location__placeholder {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--gray-700);
}

.vacancy-location__placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--gray-700);
}

/* Related Jobs */
.related-jobs {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--elev-1);
}

.related-jobs__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 1.5rem 0;
}

.related-job {
  display: block;
  text-decoration: none;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.08);
  margin-bottom: 1rem;
  transition: all var(--dur-fast) var(--ease);
}

.related-job:hover,
.related-job:focus {
  border-color: var(--color-blue);
  box-shadow: var(--elev-1);
  transform: translateY(-2px);
}

.related-job__title {
  font-weight: 600;
  color: var(--color-black);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.related-job__location {
  font-size: 0.875rem;
  color: var(--gray-700);
  margin: 0 0 0.5rem 0;
}

.related-job__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.related-job__badge {
  background: var(--gray-50);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* Sticky CTA */
.vacancy-cta-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 1rem;
  z-index: 1020;
  display: flex;
  gap: 1rem;
}

.vacancy-cta-sticky .vacancy-hero__cta,
.vacancy-cta-sticky .vacancy-hero__save {
  flex: 1;
  margin: 0;
  justify-content: center;
}

/* Breadcrumbs */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
}

.breadcrumb-item.active {
  color: var(--gray-700);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .vacancy-hero__title {
    font-size: 1.5rem;
  }
  
  .vacancy-hero__subtitle {
    font-size: 1rem;
  }
  
  .vacancy-section,
  .company-card,
  .vacancy-location,
  .related-jobs {
    padding: 1.5rem;
  }
  
  .vacancy-summary {
    padding: 1rem;
  }
  
  .vacancy-summary__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  /* Mobile breadcrumb truncation */
  .breadcrumb-item:not(:last-child):not(:nth-last-child(2)) {
    display: none;
  }
  
  .breadcrumb-item:not(:last-child):nth-last-child(2)::before {
    content: "… › ";
  }
}

@media (min-width: 992px) {
  .vacancy-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
  
  .vacancy-main {
    order: 1;
  }
  
  .vacancy-sidebar {
    order: 2;
  }
}

/* Modal Styles */
.apply-modal .modal-content {
  border-radius: var(--radius-lg);
}

.apply-modal__header {
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 1.5rem;
}

.apply-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0;
}

.apply-modal__body {
  padding: 1.5rem;
}

.apply-modal__company {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.apply-modal__logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.apply-modal__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apply-modal__company-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 0.25rem 0;
}

.apply-modal__company-description {
  color: var(--gray-700);
  margin: 0 0 0.5rem 0;
}

.apply-modal__contacts {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.apply-modal__contact-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.apply-modal__contact-item:last-child {
  border-bottom: none;
}

.apply-modal__contact-label {
  font-weight: 500;
  color: var(--gray-700);
}

.apply-modal__contact-value {
  font-weight: 500;
  color: var(--color-black);
}

.apply-modal__disclaimer {
  background: #fff8e6;
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.875rem;
  color: #e65100;
  margin-bottom: 1.5rem;
}

.apply-modal__copy-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.apply-modal__copy-btn {
  flex: 1;
  min-width: 120px;
  background: var(--color-blue);
  border: none;
  color: var(--color-white);
  border-radius: var(--radius);
  font-weight: 500;
  padding: 0.75rem;
  font-size: 0.875rem;
  transition: all var(--dur-fast) var(--ease);
}

.apply-modal__copy-btn:hover,
.apply-modal__copy-btn:focus {
  background: #0b5ed7;
  transform: translateY(-1px);
}

.apply-modal__copy-btn--copied {
  background: #4caf50;
}

/* Expired job warning */
.job-expired-alert {
  background: #fff8e6;
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.875rem;
  color: #e65100;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.job-expired-alert i {
  font-size: 1.25rem;
}