/* company-profile.component.scss */
.company-profile-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;

  h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, #2563EB 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.edit-button {
  background: #2563EB;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-family: 'Inter', '阿里巴巴普惠体', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    background: #1d4ed8;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
  }
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 0.8rem;
  padding: 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;

  label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
  }

  span {
    color: white;
  }

  input, textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 0.5rem;
    color: white;
    font-family: 'Inter', '阿里巴巴普惠体', sans-serif;
    transition: all 0.3s ease;

    &:focus {
      outline: none;
      border-color: #7C3AED;
      box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.3);
    }
  }

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

.job-openings {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
  }
}

.add-job-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 0.8rem;
  padding: 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 1rem;

  .form-row {
    display: flex;
    gap: 1rem;

    input {
      flex: 1;
    }
  }

  input, textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 0.5rem;
    color: white;
    font-family: 'Inter', '阿里巴巴普惠体', sans-serif;
    transition: all 0.3s ease;

    &:focus {
      outline: none;
      border-color: #7C3AED;
      box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.3);
    }
  }

  textarea {
    resize: vertical;
    min-height: 80px;
  }
}

.add-button {
  align-self: flex-end;
  background: #10B981;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-family: 'Inter', '阿里巴巴普惠体', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    background: #0d9f6e;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
  }
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 0.8rem;
  padding: 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.5);
  }
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;

  h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
  }
}

.remove-button {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 0.3rem;
  font-family: 'Inter', '阿里巴巴普惠体', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    background: #EF4444;
    color: white;
  }
}

.job-requirements {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;

  strong {
    color: white;
    font-weight: 500;
  }
}

.job-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}