/* ============================================
   CAREERS PAGES STYLES
   Introl.com - Job listings and job detail pages
   ============================================ */

/* ============================================
   CAREERS HERO SECTION
   ============================================ */
.careers-hero-section {
  background: #080808;
  overflow: hidden;
}

.careers-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.careers-hero-content {
  display: flex;
  align-items: center;
  padding: 4rem;
  padding-left: max(4rem, calc((100vw - 1200px) / 2 + 2rem));
  background: linear-gradient(
    to right,
    #080808 0%,
    #080808 80%,
    rgba(8, 8, 8, 0.8) 100%
  );
}

.careers-hero-inner {
  max-width: 500px;
}

.careers-hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.careers-hero-image {
  position: relative;
  overflow: hidden;
}

.careers-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.careers-hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(to right, #080808, transparent);
  z-index: 1;
}

/* Image-first variant */
.careers-hero-section.image-first .careers-hero-image {
  order: -1;
}

.careers-hero-section.image-first .careers-hero-content {
  padding-left: 4rem;
  padding-right: max(4rem, calc((100vw - 1200px) / 2 + 2rem));
  background: linear-gradient(
    to left,
    #080808 0%,
    #080808 80%,
    rgba(8, 8, 8, 0.8) 100%
  );
}

.careers-hero-section.image-first .careers-hero-inner {
  margin-left: auto;
}

.careers-hero-section.image-first .careers-hero-image::before {
  left: auto;
  right: 0;
  background: linear-gradient(to left, #080808, transparent);
}

/* ============================================
   CAREERS FILTERS
   ============================================ */
.careers-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filter-search {
  flex: 2;
}

.filter-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-white);
  transition: var(--transition);
}

.filter-input::placeholder {
  color: var(--text-dim);
}

.filter-input:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0, 242, 0, 0.1);
}

.filter-dropdowns {
  flex: 2;
  display: flex;
  gap: 1rem;
}

.filter-select {
  flex: 1;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-white);
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888888' d='M2 4L6 8L10 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.filter-select:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0, 242, 0, 0.1);
}

.filter-select:hover {
  border-color: var(--text-secondary);
}

.filter-select option {
  background: var(--bg-primary);
  color: var(--text-white);
}

/* ============================================
   JOBS CONTAINER
   ============================================ */
.jobs-container {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

/* ============================================
   JOB CARD
   ============================================ */
.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
}

.job-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--text-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.job-card:hover {
  background: var(--bg-elevated);
}

.job-card:hover::before {
  opacity: 1;
}

.job-card:hover .job-arrow {
  color: var(--text-primary);
  transform: translateX(4px);
}

.job-card-content {
  flex: 1;
}

.job-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-white);
  margin: 0 0 0.5rem 0;
}

.job-location {
  font-size: 1rem;
  color: var(--text-gray);
  margin: 0 0 0.75rem 0;
}

.job-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.job-salary {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.job-type {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: var(--bg-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
}

.job-arrow {
  color: var(--text-dim);
  transition: var(--transition);
  margin-left: 1rem;
  flex-shrink: 0;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  display: none;
}

.no-results-title {
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.no-results-text {
  color: var(--text-gray);
}

/* Careers CTA */
.careers-cta {
  text-align: center;
  padding-top: 2rem;
}

.careers-cta p {
  margin-bottom: 1.5rem;
}

/* ============================================
   JOB DETAIL HERO
   ============================================ */
.job-hero {
  padding: 4rem 0 3rem;
  background: var(--bg-primary);
}

.job-hero-content {
  max-width: 800px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--text-primary);
}

.job-hero-location {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-top: 1rem;
}

/* ============================================
   JOB OVERVIEW GRID
   ============================================ */
.job-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.job-overview-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-overview-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.job-overview-value {
  font-size: 1rem;
  color: var(--text-white);
}

.job-overview-value.highlight {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   JOB CONTENT GRID
   ============================================ */
.job-content-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: start;
}

/* ============================================
   JOB DESCRIPTION
   ============================================ */
.job-description {
  max-width: 100%;
}

.job-section {
  margin-bottom: 3rem;
}

.job-section h2 {
  font-size: 1.75rem;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.job-section h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.job-section p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.job-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.job-section li {
  color: var(--text-gray);
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.job-section li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

/* ============================================
   APPLICATION FORM
   ============================================ */
.application-form-container {
  /* No sticky - form scrolls naturally with page */
}

.application-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
}

.application-form-card h2 {
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.form-group small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.required {
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-white);
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0, 242, 0, 0.1);
}

.form-group input[type="file"] {
  padding: 0.5rem;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888888' d='M2 4L6 8L10 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Location Autocomplete */
.location-input-container {
  position: relative;
}

.location-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color-strong);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 100;
}

.location-dropdown-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: var(--text-gray);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.location-dropdown-item:last-child {
  border-bottom: none;
}

.location-dropdown-item:hover,
.location-dropdown-item.highlighted {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Field Error Display */
.field-error {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: var(--radius);
}

.field-error.show {
  display: block;
}

/* Character Filter Feedback */
.character-filter-feedback {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  animation: slideDown 0.3s ease-out;
}

.character-filter-feedback.show {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cover Letter Toggle */
.cover-letter-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.toggle-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-btn:hover {
  border-color: var(--border-color-strong);
  color: var(--text-white);
}

.toggle-btn.active {
  background: var(--bg-card);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
  margin-top: 1rem;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(0, 242, 0, 0.1);
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
}

.form-message.error {
  display: block;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  color: #dc3545;
}

.legal-notice {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

.legal-notice a {
  color: var(--text-gray);
  text-decoration: underline;
}

.legal-notice a:hover {
  color: var(--text-primary);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
  .job-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 992px) {
  .careers-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .careers-hero-content {
    padding: 4rem 2rem;
    order: 2;
  }

  .careers-hero-inner {
    max-width: 100%;
    text-align: center;
  }

  .careers-hero-buttons {
    justify-content: center;
    flex-direction: column;
  }

  .careers-hero-buttons .btn {
    width: 100%;
  }

  .careers-hero-image {
    height: 50vh;
    order: 1;
  }

  .careers-hero-image::before {
    display: none;
  }

  .careers-hero-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #080808, transparent);
    z-index: 1;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  .careers-filters {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-search,
  .filter-dropdowns {
    width: 100%;
  }

  .filter-dropdowns {
    flex-direction: row;
  }

  .job-card {
    padding: 1.25rem 1.5rem;
  }

  .job-title {
    font-size: 1.1rem;
  }

  .job-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .job-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .job-section h2 {
    font-size: 1.5rem;
  }

  .application-form-card {
    padding: 1.5rem;
  }
}
